From 14773a36fb0f8b1c973479987953ddb68401b435 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 18 Apr 2025 09:23:10 +0000 Subject: [PATCH] CodeGen from PR 34044 in Azure/azure-rest-api-specs Merge f2255e22836251907bd1f7f2c28ef40c08f0b259 into dce18ad6d9dbc9e8c9912339f2c542f168ac4cb0 --- common/config/rush/pnpm-lock.yaml | 174 +- .../CHANGELOG.md | 216 +- .../arm-recoveryservices-siterecovery/LICENSE | 2 +- .../README.md | 10 +- .../_meta.json | 8 +- .../api-extractor.json | 6 +- .../package.json | 24 +- .../arm-recoveryservices-siterecovery.api.md | 1217 +++++- .../sample.env | 5 +- .../src/lroImpl.ts | 4 + .../src/models/index.ts | 1318 ++++++- .../src/models/mappers.ts | 3445 ++++++++++++++--- .../src/models/parameters.ts | 94 +- .../clusterRecoveryPointOperations.ts | 94 + .../src/operations/clusterRecoveryPoints.ts | 267 ++ .../src/operations/index.ts | 3 + .../src/operations/migrationRecoveryPoints.ts | 36 +- .../src/operations/recoveryPoints.ts | 36 +- .../operations/replicationAlertSettings.ts | 42 +- .../src/operations/replicationAppliances.ts | 30 +- .../src/operations/replicationEvents.ts | 36 +- .../src/operations/replicationFabrics.ts | 120 +- .../src/operations/replicationJobs.ts | 84 +- .../operations/replicationLogicalNetworks.ts | 36 +- .../operations/replicationMigrationItems.ts | 174 +- .../operations/replicationNetworkMappings.ts | 102 +- .../src/operations/replicationNetworks.ts | 66 +- .../src/operations/replicationPolicies.ts | 72 +- .../operations/replicationProtectableItems.ts | 36 +- .../operations/replicationProtectedItems.ts | 294 +- .../replicationProtectionClusters.ts | 1780 +++++++++ .../replicationProtectionContainerMappings.ts | 114 +- .../replicationProtectionContainers.ts | 265 +- .../replicationProtectionIntents.ts | 42 +- .../operations/replicationRecoveryPlans.ts | 162 +- .../replicationRecoveryServicesProviders.ts | 114 +- ...eplicationStorageClassificationMappings.ts | 90 +- .../replicationStorageClassifications.ts | 66 +- .../src/operations/replicationVaultHealth.ts | 18 +- .../src/operations/replicationVaultSetting.ts | 48 +- .../src/operations/replicationvCenters.ts | 102 +- .../supportedOperatingSystemsOperations.ts | 6 +- .../src/operations/targetComputeSizes.ts | 30 +- .../clusterRecoveryPointOperations.ts | 36 + .../clusterRecoveryPoints.ts | 36 + .../src/operationsInterfaces/index.ts | 3 + .../migrationRecoveryPoints.ts | 8 +- .../operationsInterfaces/recoveryPoints.ts | 8 +- .../replicationAlertSettings.ts | 12 +- .../replicationAppliances.ts | 4 +- .../operationsInterfaces/replicationEvents.ts | 8 +- .../replicationFabrics.ts | 64 +- .../operationsInterfaces/replicationJobs.ts | 40 +- .../replicationLogicalNetworks.ts | 8 +- .../replicationMigrationItems.ts | 84 +- .../replicationNetworkMappings.ts | 36 +- .../replicationNetworks.ts | 12 +- .../replicationPolicies.ts | 32 +- .../replicationProtectableItems.ts | 8 +- .../replicationProtectedItems.ts | 164 +- .../replicationProtectionClusters.ts | 462 +++ .../replicationProtectionContainerMappings.ts | 44 +- .../replicationProtectionContainers.ts | 88 +- .../replicationProtectionIntents.ts | 12 +- .../replicationRecoveryPlans.ts | 94 +- .../replicationRecoveryServicesProviders.ts | 44 +- ...eplicationStorageClassificationMappings.ts | 28 +- .../replicationStorageClassifications.ts | 12 +- .../replicationVaultHealth.ts | 12 +- .../replicationVaultSetting.ts | 16 +- .../replicationvCenters.ts | 36 +- .../supportedOperatingSystemsOperations.ts | 4 +- .../targetComputeSizes.ts | 4 +- .../src/siteRecoveryManagementClient.ts | 19 +- .../test/sampleTest.ts | 40 + .../test/snippets.spec.ts | 19 +- .../tsconfig.json | 5 +- 77 files changed, 10003 insertions(+), 2387 deletions(-) create mode 100644 sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/clusterRecoveryPointOperations.ts create mode 100644 sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/clusterRecoveryPoints.ts create mode 100644 sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionClusters.ts create mode 100644 sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/clusterRecoveryPointOperations.ts create mode 100644 sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/clusterRecoveryPoints.ts create mode 100644 sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectionClusters.ts create mode 100644 sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 42422b4e57cf..825575c31294 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1537,10 +1537,6 @@ packages: resolution: {integrity: sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA==} engines: {node: '>=0.1.90'} - '@cspotcode/source-map-support@0.8.1': - resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} - engines: {node: '>=12'} - '@esbuild/aix-ppc64@0.25.2': resolution: {integrity: sha512-wCIboOL2yXZym2cgm6mlA742s9QeJ8DjGVaL39dLN4rRwrOgOyYSnOaFPhKZGLb2ngj4EyfAFjsNJwPXZvseag==} engines: {node: '>=18'} @@ -1809,9 +1805,6 @@ packages: '@jridgewell/trace-mapping@0.3.25': resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} - '@jridgewell/trace-mapping@0.3.9': - resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} - '@js-sdsl/ordered-map@4.4.2': resolution: {integrity: sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==} @@ -2333,7 +2326,7 @@ packages: version: 0.0.0 '@rush-temp/ai-inference@file:projects/ai-inference.tgz': - resolution: {integrity: sha512-aQ6qV+QuFeI3+m2eAWZXEyDl9nq3Ua/1sAObUXkydQHbiiBIS0tZdYiAz5/Zlv73N2MHIsxpwqcyQLViJlgcRQ==, tarball: file:projects/ai-inference.tgz} + resolution: {integrity: sha512-KS0X60g5Y01lloI256SUR7+8BCD1mYvSN1I1ZM6KDimpE9mxBwlZUt1AZmJZtR31QpxOi/qidfvBJ8lhiJyTUQ==, tarball: file:projects/ai-inference.tgz} version: 0.0.0 '@rush-temp/ai-language-conversations@file:projects/ai-language-conversations.tgz': @@ -2349,7 +2342,7 @@ packages: version: 0.0.0 '@rush-temp/ai-projects@file:projects/ai-projects.tgz': - resolution: {integrity: sha512-TMZ5sJJc5tTLVgAjNS+13PJg2yAK56FnDZPst0bcLbd4lIipuTfP6lv0D3Kkg81j/Q0hI8o9NRVct4wHjtUWrw==, tarball: file:projects/ai-projects.tgz} + resolution: {integrity: sha512-u0RjBMrCRGABwTKjUqGKBaxKoVqVs7x84q19m9HccnnKdCnVooEqm2PxFhbpBthYFeiFcF6D0gaLF4NZHoldjg==, tarball: file:projects/ai-projects.tgz} version: 0.0.0 '@rush-temp/ai-text-analytics@file:projects/ai-text-analytics.tgz': @@ -3141,7 +3134,7 @@ packages: version: 0.0.0 '@rush-temp/arm-recoveryservices-siterecovery@file:projects/arm-recoveryservices-siterecovery.tgz': - resolution: {integrity: sha512-yuiXweX2sBiEpJF4JLopkGBUSfKAfsJdpMqoMtj+C8dNoqGR4UbZdn9fMzBM+t7SEIEBAn4JahwSlQyJTEzIRA==, tarball: file:projects/arm-recoveryservices-siterecovery.tgz} + resolution: {integrity: sha512-fmp5ILWlYSBPbGftdrkM2Xf4xtrDEVZgKOqUAXEKEWGHA9vjRzVLWB5XXwWCZ45655gafMUKMCUkBKYpdhMawg==, tarball: file:projects/arm-recoveryservices-siterecovery.tgz} version: 0.0.0 '@rush-temp/arm-recoveryservices@file:projects/arm-recoveryservices.tgz': @@ -3545,7 +3538,7 @@ packages: version: 0.0.0 '@rush-temp/dev-tool@file:projects/dev-tool.tgz': - resolution: {integrity: sha512-0sIbWtMzIfR65kiGHhGIR87inePfEOBUf5i4Xzr5d3/d7wheGZRoGa5xdBO3/epMpeIOM8tAcfBWJi3uAHEMJQ==, tarball: file:projects/dev-tool.tgz} + resolution: {integrity: sha512-Mc+huNSvbZwevmMntdGQdCU276BQ79+5ggArqk+K+yrS2R/SoEfl3fEpo3LhClbvjbZ1vlScKL42EhKtl0NaFw==, tarball: file:projects/dev-tool.tgz} version: 0.0.0 '@rush-temp/developer-devcenter@file:projects/developer-devcenter.tgz': @@ -3653,7 +3646,7 @@ packages: version: 0.0.0 '@rush-temp/logger@file:projects/logger.tgz': - resolution: {integrity: sha512-Tmw0M/+OY8obUMzkrxK4ND8xcynZJKskq7QdFI+dEryYgRDP/KSAJNiLnfKZrScUV7vO6QpvpvrObnLqr5jDOw==, tarball: file:projects/logger.tgz} + resolution: {integrity: sha512-/rGXEMjZBho/TTCakfBw91SeGKCnH7aaYyKl7ys3Nj2GasLTNybtmO8u2fsyK69JZhYv79vhABPevzgX2W+e1Q==, tarball: file:projects/logger.tgz} version: 0.0.0 '@rush-temp/maps-common@file:projects/maps-common.tgz': @@ -3697,11 +3690,11 @@ packages: version: 0.0.0 '@rush-temp/monitor-opentelemetry@file:projects/monitor-opentelemetry.tgz': - resolution: {integrity: sha512-Sm1vEDljQVzVy44Wn9+7e0MeRrbAErcj5CWDwlOg8Y4um17bAAySG4CvtCSGNbrb36zI0OU87BIgeHs04PgK0Q==, tarball: file:projects/monitor-opentelemetry.tgz} + resolution: {integrity: sha512-obF9utW36UmUFtcBH1bkkMEt0NSkuTAwNPYlvG6ZgB1y5Purun9wTxvlQGcyB34YzXndJxwKJeFCeqADX0aHUA==, tarball: file:projects/monitor-opentelemetry.tgz} version: 0.0.0 '@rush-temp/monitor-query@file:projects/monitor-query.tgz': - resolution: {integrity: sha512-gfPx8/W5N3//hjGxhPlNyti2TFu23bO9jUEdfKqWQ6JO1ttZgeC9xQDYz0SXb7UL6xql1L7RSz91O9hQ7SfsMQ==, tarball: file:projects/monitor-query.tgz} + resolution: {integrity: sha512-ZRW3T6bfDKeuO/12XAat4YwHFYkijTnJNnrL7OiGUxFHqB/mhu31wIxGcGyqKz/guEPCdXuQYqNU8WeUdnUwag==, tarball: file:projects/monitor-query.tgz} version: 0.0.0 '@rush-temp/notification-hubs@file:projects/notification-hubs.tgz': @@ -3777,7 +3770,7 @@ packages: version: 0.0.0 '@rush-temp/perf-monitor-opentelemetry@file:projects/perf-monitor-opentelemetry.tgz': - resolution: {integrity: sha512-Wp/W1huU1sjsxIJt1/c5O8G1jKc3lzLQWyXQyjYxWlF3v+lpGbIaqCxevnIh8AGcu1VLAmPN86oNm4VnOXKozA==, tarball: file:projects/perf-monitor-opentelemetry.tgz} + resolution: {integrity: sha512-QtV7OPWFzewMKq3h1VoX2C/6kHVk5+XlETk/+8f6JGuu7T6sjC6JFYfVqo1U3wXLGZGrwQkgvanP1pxbyT0kGQ==, tarball: file:projects/perf-monitor-opentelemetry.tgz} version: 0.0.0 '@rush-temp/perf-monitor-query@file:projects/perf-monitor-query.tgz': @@ -3995,18 +3988,6 @@ packages: '@ts-morph/common@0.26.1': resolution: {integrity: sha512-Sn28TGl/4cFpcM+jwsH1wLncYq3FtN/BIpem+HOygfBWPT5pAeS5dB4VFVzV8FbnOKHpDLZmvAl4AjPEev5idA==} - '@tsconfig/node10@1.0.11': - resolution: {integrity: sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==} - - '@tsconfig/node12@1.0.11': - resolution: {integrity: sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==} - - '@tsconfig/node14@1.0.3': - resolution: {integrity: sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==} - - '@tsconfig/node16@1.0.4': - resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} - '@types/archiver@6.0.3': resolution: {integrity: sha512-a6wUll6k3zX6qs5KlxIggs1P1JcYJaTCx2gnlr+f0S1yd2DoaEwoIK10HmBaLnZwWneBz+JBm0dwcZu0zECBcQ==} @@ -4323,10 +4304,6 @@ packages: peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 - acorn-walk@8.3.4: - resolution: {integrity: sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==} - engines: {node: '>=0.4.0'} - acorn@8.14.1: resolution: {integrity: sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==} engines: {node: '>=0.4.0'} @@ -4402,9 +4379,6 @@ packages: resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} engines: {node: '>= 8'} - arg@4.1.3: - resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} - argparse@1.0.10: resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} @@ -4722,9 +4696,6 @@ packages: resolution: {integrity: sha512-VC2Gs20JcTyeQob6UViBLnyP0bYHkBh6EiKzot9vi2DmeGlFT9Wd7VG3NBrkNx/jYvFBeyDOMMHdHQhbtKLgHQ==} engines: {node: '>=16'} - create-require@1.1.1: - resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} - cross-env@7.0.3: resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==} engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'} @@ -4827,10 +4798,6 @@ packages: resolution: {integrity: sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==} engines: {node: '>=8'} - diff@4.0.2: - resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} - engines: {node: '>=0.3.1'} - dir-glob@3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} @@ -5711,9 +5678,6 @@ packages: resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==} engines: {node: '>=10'} - make-error@1.3.6: - resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} - map-obj@1.0.1: resolution: {integrity: sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==} engines: {node: '>=0.10.0'} @@ -6180,11 +6144,21 @@ packages: engines: {node: '>=18'} hasBin: true + playwright-core@1.52.0: + resolution: {integrity: sha512-l2osTgLXSMeuLZOML9qYODUQoPPnUsKsb5/P6LJ2e6uPKXUdPK5WYhN4z03G+YNbWmGDY4YENauNu4ZKczreHg==} + engines: {node: '>=18'} + hasBin: true + playwright@1.51.1: resolution: {integrity: sha512-kkx+MB2KQRkyxjYPc3a0wLZZoDczmppyGJIvQ43l+aZihkaVvmu/21kiyaHeHjiFxjxNNFnUncKmcGIyOojsaw==} engines: {node: '>=18'} hasBin: true + playwright@1.52.0: + resolution: {integrity: sha512-JAwMNMBlxJ2oD1kce4KPtMkDeKGHQstdpFPcPH3maElAXon/QZeTvtsfXmTMRyO9TslfoYOXkSsvao2nE1ilTw==} + engines: {node: '>=18'} + hasBin: true + polite-json@5.0.0: resolution: {integrity: sha512-OLS/0XeUAcE8a2fdwemNja+udKgXNnY6yKVIXqAD2zVRx1KvY6Ato/rZ2vdzbxqYwPW0u6SCNC/bAMPNzpzxbw==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} @@ -6788,20 +6762,6 @@ packages: ts-morph@25.0.1: resolution: {integrity: sha512-QJEiTdnz1YjrB3JFhd626gX4rKHDLSjSVMvGGG4v7ONc3RBwa0Eei98G9AT9uNFDMtV54JyuXsFeC+OH0n6bXQ==} - ts-node@10.9.2: - resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} - hasBin: true - peerDependencies: - '@swc/core': '>=1.2.50' - '@swc/wasm': '>=1.2.50' - '@types/node': '*' - typescript: '>=2.7' - peerDependenciesMeta: - '@swc/core': - optional: true - '@swc/wasm': - optional: true - tshy@2.0.1: resolution: {integrity: sha512-U5fC+3pMaGfmULhPTVpxKMd62AcX13yfsFrjhAP/daTLG6LFRLIuxqYOmkejJ4MT/s5bEa29+1Jy/9mXkMiMfA==} engines: {node: 16 >=16.17 || 18 >=18.15.0 || >=20.6.1} @@ -6960,9 +6920,6 @@ packages: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} hasBin: true - v8-compile-cache-lib@3.0.1: - resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} - validate-npm-package-license@3.0.4: resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==} @@ -7166,10 +7123,6 @@ packages: resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==} engines: {node: '>=12'} - yn@3.1.1: - resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} - engines: {node: '>=6'} - yocto-queue@0.1.0: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} @@ -7787,10 +7740,6 @@ snapshots: '@colors/colors@1.6.0': {} - '@cspotcode/source-map-support@0.8.1': - dependencies: - '@jridgewell/trace-mapping': 0.3.9 - '@esbuild/aix-ppc64@0.25.2': optional: true @@ -7979,11 +7928,6 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.0 - '@jridgewell/trace-mapping@0.3.9': - dependencies: - '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.5.0 - '@js-sdsl/ordered-map@4.4.2': {} '@jsdoc/salty@0.2.9': @@ -15839,10 +15783,10 @@ snapshots: dependencies: '@azure/core-lro': 2.7.2 '@types/node': 18.19.86 - '@vitest/browser': 3.1.1(playwright@1.51.1)(vite@6.2.6(@types/node@22.7.9)(tsx@4.19.3)(yaml@2.7.1))(vitest@3.1.1) + '@vitest/browser': 3.1.1(playwright@1.52.0)(vite@6.2.6(@types/node@22.7.9)(tsx@4.19.3)(yaml@2.7.1))(vitest@3.1.1) '@vitest/coverage-istanbul': 3.1.1(vitest@3.1.1) dotenv: 16.5.0 - playwright: 1.51.1 + playwright: 1.52.0 tslib: 2.8.1 typescript: 5.8.3 vitest: 3.1.1(@types/debug@4.1.12)(@types/node@18.19.86)(@vitest/browser@3.1.1)(tsx@4.19.3)(yaml@2.7.1) @@ -19440,7 +19384,6 @@ snapshots: strip-json-comments: 5.0.1 tar: 7.4.3 ts-morph: 25.0.1 - ts-node: 10.9.2(@types/node@18.19.86)(typescript@5.8.3) tshy: 2.0.1 tslib: 2.8.1 tsx: 4.19.3 @@ -19451,8 +19394,6 @@ snapshots: yaml: 2.7.1 transitivePeerDependencies: - '@edge-runtime/vm' - - '@swc/core' - - '@swc/wasm' - '@types/debug' - '@vitest/browser' - '@vitest/ui' @@ -22699,14 +22640,6 @@ snapshots: minimatch: 9.0.5 path-browserify: 1.0.1 - '@tsconfig/node10@1.0.11': {} - - '@tsconfig/node12@1.0.11': {} - - '@tsconfig/node14@1.0.3': {} - - '@tsconfig/node16@1.0.4': {} - '@types/archiver@6.0.3': dependencies: '@types/readdir-glob': 1.1.5 @@ -23044,6 +22977,25 @@ snapshots: - utf-8-validate - vite + '@vitest/browser@3.1.1(playwright@1.52.0)(vite@6.2.6(@types/node@22.7.9)(tsx@4.19.3)(yaml@2.7.1))(vitest@3.1.1)': + dependencies: + '@testing-library/dom': 10.4.0 + '@testing-library/user-event': 14.6.1(@testing-library/dom@10.4.0) + '@vitest/mocker': 3.1.1(vite@6.2.6(@types/node@22.7.9)(tsx@4.19.3)(yaml@2.7.1)) + '@vitest/utils': 3.1.1 + magic-string: 0.30.17 + sirv: 3.0.1 + tinyrainbow: 2.0.0 + vitest: 3.1.1(@types/debug@4.1.12)(@types/node@22.7.9)(@vitest/browser@3.1.1)(tsx@4.19.3)(yaml@2.7.1) + ws: 8.18.1 + optionalDependencies: + playwright: 1.52.0 + transitivePeerDependencies: + - bufferutil + - msw + - utf-8-validate + - vite + '@vitest/coverage-istanbul@3.1.1(vitest@3.1.1)': dependencies: '@istanbuljs/schema': 0.1.3 @@ -23122,10 +23074,6 @@ snapshots: dependencies: acorn: 8.14.1 - acorn-walk@8.3.4: - dependencies: - acorn: 8.14.1 - acorn@8.14.1: {} agent-base@7.1.3: {} @@ -23202,8 +23150,6 @@ snapshots: normalize-path: 3.0.0 picomatch: 2.3.1 - arg@4.1.3: {} - argparse@1.0.10: dependencies: sprintf-js: 1.0.3 @@ -23537,8 +23483,6 @@ snapshots: p-filter: 3.0.0 p-map: 6.0.0 - create-require@1.1.1: {} - cross-env@7.0.3: dependencies: cross-spawn: 7.0.6 @@ -23615,8 +23559,6 @@ snapshots: detect-libc@2.0.3: {} - diff@4.0.2: {} - dir-glob@3.0.1: dependencies: path-type: 4.0.0 @@ -24614,8 +24556,6 @@ snapshots: dependencies: semver: 7.7.1 - make-error@1.3.6: {} - map-obj@1.0.1: {} map-obj@4.3.0: {} @@ -25048,12 +24988,20 @@ snapshots: playwright-core@1.51.1: {} + playwright-core@1.52.0: {} + playwright@1.51.1: dependencies: playwright-core: 1.51.1 optionalDependencies: fsevents: 2.3.2 + playwright@1.52.0: + dependencies: + playwright-core: 1.52.0 + optionalDependencies: + fsevents: 2.3.2 + polite-json@5.0.0: {} possible-typed-array-names@1.1.0: {} @@ -25727,24 +25675,6 @@ snapshots: '@ts-morph/common': 0.26.1 code-block-writer: 13.0.3 - ts-node@10.9.2(@types/node@18.19.86)(typescript@5.8.3): - dependencies: - '@cspotcode/source-map-support': 0.8.1 - '@tsconfig/node10': 1.0.11 - '@tsconfig/node12': 1.0.11 - '@tsconfig/node14': 1.0.3 - '@tsconfig/node16': 1.0.4 - '@types/node': 18.19.86 - acorn: 8.14.1 - acorn-walk: 8.3.4 - arg: 4.1.3 - create-require: 1.1.1 - diff: 4.0.2 - make-error: 1.3.6 - typescript: 5.8.3 - v8-compile-cache-lib: 3.0.1 - yn: 3.1.1 - tshy@2.0.1: dependencies: chalk: 5.4.1 @@ -25886,8 +25816,6 @@ snapshots: uuid@8.3.2: {} - v8-compile-cache-lib@3.0.1: {} - validate-npm-package-license@3.0.4: dependencies: spdx-correct: 3.2.0 @@ -26018,7 +25946,7 @@ snapshots: optionalDependencies: '@types/debug': 4.1.12 '@types/node': 18.19.86 - '@vitest/browser': 3.1.1(playwright@1.51.1)(vite@6.2.6(@types/node@22.7.9)(tsx@4.19.3)(yaml@2.7.1))(vitest@3.1.1) + '@vitest/browser': 3.1.1(playwright@1.52.0)(vite@6.2.6(@types/node@22.7.9)(tsx@4.19.3)(yaml@2.7.1))(vitest@3.1.1) transitivePeerDependencies: - jiti - less @@ -26058,7 +25986,7 @@ snapshots: optionalDependencies: '@types/debug': 4.1.12 '@types/node': 20.17.30 - '@vitest/browser': 3.1.1(playwright@1.51.1)(vite@6.2.6(@types/node@22.7.9)(tsx@4.19.3)(yaml@2.7.1))(vitest@3.1.1) + '@vitest/browser': 3.1.1(playwright@1.52.0)(vite@6.2.6(@types/node@22.7.9)(tsx@4.19.3)(yaml@2.7.1))(vitest@3.1.1) transitivePeerDependencies: - jiti - less @@ -26098,7 +26026,7 @@ snapshots: optionalDependencies: '@types/debug': 4.1.12 '@types/node': 22.7.9 - '@vitest/browser': 3.1.1(playwright@1.51.1)(vite@6.2.6(@types/node@22.7.9)(tsx@4.19.3)(yaml@2.7.1))(vitest@3.1.1) + '@vitest/browser': 3.1.1(playwright@1.52.0)(vite@6.2.6(@types/node@22.7.9)(tsx@4.19.3)(yaml@2.7.1))(vitest@3.1.1) transitivePeerDependencies: - jiti - less @@ -26217,8 +26145,6 @@ snapshots: y18n: 5.0.8 yargs-parser: 21.1.1 - yn@3.1.1: {} - yocto-queue@0.1.0: {} yoctocolors-cjs@2.1.2: {} diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/CHANGELOG.md b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/CHANGELOG.md index fe43a8b265e5..b92f3c6ece73 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/CHANGELOG.md +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/CHANGELOG.md @@ -1,15 +1,211 @@ # Release History - -## 5.2.1 (Unreleased) - + +## 5.3.0 (2025-04-18) + ### Features Added -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added operation group ClusterRecoveryPointOperations + - Added operation group ClusterRecoveryPoints + - Added operation group ReplicationProtectionClusters + - Added operation ReplicationProtectionContainers.beginSwitchClusterProtection + - Added operation ReplicationProtectionContainers.beginSwitchClusterProtectionAndWait + - Added Interface A2AApplyClusterRecoveryPointInput + - Added Interface A2AClusterRecoveryPointDetails + - Added Interface A2AClusterTestFailoverInput + - Added Interface A2AClusterUnplannedFailoverInput + - Added Interface A2AProtectedItemDetail + - Added Interface A2AReplicationProtectionClusterDetails + - Added Interface A2ASharedDiskIRErrorDetails + - Added Interface A2ASharedDiskReplicationDetails + - Added Interface A2ASwitchClusterProtectionInput + - Added Interface ApplyClusterRecoveryPointInput + - Added Interface ApplyClusterRecoveryPointInputProperties + - Added Interface ApplyClusterRecoveryPointProviderSpecificInput + - Added Interface ClusterFailoverJobDetails + - Added Interface ClusterProviderSpecificRecoveryPointDetails + - Added Interface ClusterRecoveryPoint + - Added Interface ClusterRecoveryPointCollection + - Added Interface ClusterRecoveryPointGetOptionalParams + - Added Interface ClusterRecoveryPointProperties + - Added Interface ClusterRecoveryPointsListByReplicationProtectionClusterNextOptionalParams + - Added Interface ClusterRecoveryPointsListByReplicationProtectionClusterOptionalParams + - Added Interface ClusterSwitchProtectionJobDetails + - Added Interface ClusterTestFailoverCleanupInput + - Added Interface ClusterTestFailoverCleanupInputProperties + - Added Interface ClusterTestFailoverInput + - Added Interface ClusterTestFailoverInputProperties + - Added Interface ClusterTestFailoverJobDetails + - Added Interface ClusterTestFailoverProviderSpecificInput + - Added Interface ClusterUnplannedFailoverInput + - Added Interface ClusterUnplannedFailoverInputProperties + - Added Interface ClusterUnplannedFailoverProviderSpecificInput + - Added Interface InMageRcmAddDisksInput + - Added Interface InMageRcmUnProtectedDiskDetails + - Added Interface ManagedRunCommandScriptInput + - Added Interface ProtectedClustersQueryParameter + - Added Interface RegisteredClusterNodes + - Added Interface ReplicationClusterProviderSpecificSettings + - Added Interface ReplicationProtectionCluster + - Added Interface ReplicationProtectionClusterCollection + - Added Interface ReplicationProtectionClusterProperties + - Added Interface ReplicationProtectionClustersApplyRecoveryPointHeaders + - Added Interface ReplicationProtectionClustersApplyRecoveryPointOptionalParams + - Added Interface ReplicationProtectionClustersCreateHeaders + - Added Interface ReplicationProtectionClustersCreateOptionalParams + - Added Interface ReplicationProtectionClustersFailoverCommitHeaders + - Added Interface ReplicationProtectionClustersFailoverCommitOptionalParams + - Added Interface ReplicationProtectionClustersGetOperationResultsOptionalParams + - Added Interface ReplicationProtectionClustersGetOptionalParams + - Added Interface ReplicationProtectionClustersListByReplicationProtectionContainersNextOptionalParams + - Added Interface ReplicationProtectionClustersListByReplicationProtectionContainersOptionalParams + - Added Interface ReplicationProtectionClustersListNextOptionalParams + - Added Interface ReplicationProtectionClustersListOptionalParams + - Added Interface ReplicationProtectionClustersPurgeHeaders + - Added Interface ReplicationProtectionClustersPurgeOptionalParams + - Added Interface ReplicationProtectionClustersRepairReplicationHeaders + - Added Interface ReplicationProtectionClustersRepairReplicationOptionalParams + - Added Interface ReplicationProtectionClustersTestFailoverCleanupHeaders + - Added Interface ReplicationProtectionClustersTestFailoverCleanupOptionalParams + - Added Interface ReplicationProtectionClustersTestFailoverHeaders + - Added Interface ReplicationProtectionClustersTestFailoverOptionalParams + - Added Interface ReplicationProtectionClustersUnplannedFailoverHeaders + - Added Interface ReplicationProtectionClustersUnplannedFailoverOptionalParams + - Added Interface ReplicationProtectionContainersSwitchClusterProtectionHeaders + - Added Interface ReplicationProtectionContainersSwitchClusterProtectionOptionalParams + - Added Interface ReplicationProtectionContainersSwitchProtectionHeaders + - Added Interface SecurityProfileProperties + - Added Interface SharedDiskReplicationItemProperties + - Added Interface SharedDiskReplicationProviderSpecificSettings + - Added Interface SwitchClusterProtectionInput + - Added Interface SwitchClusterProtectionInputProperties + - Added Interface SwitchClusterProtectionProviderSpecificInput + - Added Interface UserCreatedResourceTag + - Added Type Alias ApplyClusterRecoveryPointProviderSpecificInputUnion + - Added Type Alias ClusterProviderSpecificRecoveryPointDetailsUnion + - Added Type Alias ClusterRecoveryPointGetResponse + - Added Type Alias ClusterRecoveryPointsListByReplicationProtectionClusterNextResponse + - Added Type Alias ClusterRecoveryPointsListByReplicationProtectionClusterResponse + - Added Type Alias ClusterRecoveryPointType + - Added Type Alias ClusterTestFailoverProviderSpecificInputUnion + - Added Type Alias ClusterUnplannedFailoverProviderSpecificInputUnion + - Added Type Alias DiskState + - Added Type Alias FailoverDirection + - Added Type Alias LinuxLicenseType + - Added Type Alias ReplicationClusterProviderSpecificSettingsUnion + - Added Type Alias ReplicationProtectionClustersApplyRecoveryPointResponse + - Added Type Alias ReplicationProtectionClustersCreateResponse + - Added Type Alias ReplicationProtectionClustersFailoverCommitResponse + - Added Type Alias ReplicationProtectionClustersGetOperationResultsResponse + - Added Type Alias ReplicationProtectionClustersGetResponse + - Added Type Alias ReplicationProtectionClustersListByReplicationProtectionContainersNextResponse + - Added Type Alias ReplicationProtectionClustersListByReplicationProtectionContainersResponse + - Added Type Alias ReplicationProtectionClustersListNextResponse + - Added Type Alias ReplicationProtectionClustersListResponse + - Added Type Alias ReplicationProtectionClustersPurgeResponse + - Added Type Alias ReplicationProtectionClustersRepairReplicationResponse + - Added Type Alias ReplicationProtectionClustersTestFailoverCleanupResponse + - Added Type Alias ReplicationProtectionClustersTestFailoverResponse + - Added Type Alias ReplicationProtectionClustersUnplannedFailoverResponse + - Added Type Alias ReplicationProtectionContainersSwitchClusterProtectionResponse + - Added Type Alias SecurityConfiguration + - Added Type Alias SharedDiskReplicationProviderSpecificSettingsUnion + - Added Type Alias SwitchClusterProtectionProviderSpecificInputUnion + - Interface A2AEnableProtectionInput has a new optional parameter protectionClusterId + - Interface A2AReplicationDetails has a new optional parameter isClusterInfraReady + - Interface A2AReplicationDetails has a new optional parameter protectionClusterId + - Interface HyperVReplicaAzureDiskInputDetails has a new optional parameter diskSizeInGB + - Interface HyperVReplicaAzureDiskInputDetails has a new optional parameter iops + - Interface HyperVReplicaAzureDiskInputDetails has a new optional parameter sectorSizeInBytes + - Interface HyperVReplicaAzureDiskInputDetails has a new optional parameter throughputInMbps + - Interface HyperVReplicaAzureEnableProtectionInput has a new optional parameter linuxLicenseType + - Interface HyperVReplicaAzureEnableProtectionInput has a new optional parameter targetVmSecurityProfile + - Interface HyperVReplicaAzureEnableProtectionInput has a new optional parameter userSelectedOSName + - Interface HyperVReplicaAzureManagedDiskDetails has a new optional parameter diskSizeInGB + - Interface HyperVReplicaAzureManagedDiskDetails has a new optional parameter iops + - Interface HyperVReplicaAzureManagedDiskDetails has a new optional parameter sectorSizeInBytes + - Interface HyperVReplicaAzureManagedDiskDetails has a new optional parameter targetDiskAccountType + - Interface HyperVReplicaAzureManagedDiskDetails has a new optional parameter throughputInMbps + - Interface HyperVReplicaAzureReplicationDetails has a new optional parameter linuxLicenseType + - Interface HyperVReplicaAzureReplicationDetails has a new optional parameter targetVmSecurityProfile + - Interface HyperVReplicaAzureUpdateReplicationProtectedItemInput has a new optional parameter linuxLicenseType + - Interface HyperVReplicaAzureUpdateReplicationProtectedItemInput has a new optional parameter userSelectedOSName + - Interface InMageRcmDiskInput has a new optional parameter diskSizeInGB + - Interface InMageRcmDiskInput has a new optional parameter iops + - Interface InMageRcmDiskInput has a new optional parameter sectorSizeInBytes + - Interface InMageRcmDiskInput has a new optional parameter throughputInMbps + - Interface InMageRcmDisksDefaultInput has a new optional parameter diskSizeInGB + - Interface InMageRcmDisksDefaultInput has a new optional parameter iops + - Interface InMageRcmDisksDefaultInput has a new optional parameter sectorSizeInBytes + - Interface InMageRcmDisksDefaultInput has a new optional parameter throughputInMbps + - Interface InMageRcmEnableProtectionInput has a new optional parameter linuxLicenseType + - Interface InMageRcmEnableProtectionInput has a new optional parameter seedManagedDiskTags + - Interface InMageRcmEnableProtectionInput has a new optional parameter sqlServerLicenseType + - Interface InMageRcmEnableProtectionInput has a new optional parameter targetManagedDiskTags + - Interface InMageRcmEnableProtectionInput has a new optional parameter targetNicTags + - Interface InMageRcmEnableProtectionInput has a new optional parameter targetVmSecurityProfile + - Interface InMageRcmEnableProtectionInput has a new optional parameter targetVmTags + - Interface InMageRcmEnableProtectionInput has a new optional parameter userSelectedOSName + - Interface InMageRcmNicDetails has a new optional parameter targetNicName + - Interface InMageRcmNicInput has a new optional parameter targetNicName + - Interface InMageRcmProtectedDiskDetails has a new optional parameter customTargetDiskName + - Interface InMageRcmProtectedDiskDetails has a new optional parameter diskSizeInGB + - Interface InMageRcmProtectedDiskDetails has a new optional parameter diskState + - Interface InMageRcmProtectedDiskDetails has a new optional parameter iops + - Interface InMageRcmProtectedDiskDetails has a new optional parameter sectorSizeInBytes + - Interface InMageRcmProtectedDiskDetails has a new optional parameter throughputInMbps + - Interface InMageRcmReplicationDetails has a new optional parameter linuxLicenseType + - Interface InMageRcmReplicationDetails has a new optional parameter osName + - Interface InMageRcmReplicationDetails has a new optional parameter seedManagedDiskTags + - Interface InMageRcmReplicationDetails has a new optional parameter sqlServerLicenseType + - Interface InMageRcmReplicationDetails has a new optional parameter supportedOSVersions + - Interface InMageRcmReplicationDetails has a new optional parameter targetManagedDiskTags + - Interface InMageRcmReplicationDetails has a new optional parameter targetNicTags + - Interface InMageRcmReplicationDetails has a new optional parameter targetVmSecurityProfile + - Interface InMageRcmReplicationDetails has a new optional parameter targetVmTags + - Interface InMageRcmReplicationDetails has a new optional parameter unprotectedDisks + - Interface InMageRcmTestFailoverInput has a new optional parameter osUpgradeVersion + - Interface InMageRcmUnplannedFailoverInput has a new optional parameter osUpgradeVersion + - Interface InMageRcmUpdateReplicationProtectedItemInput has a new optional parameter linuxLicenseType + - Interface InMageRcmUpdateReplicationProtectedItemInput has a new optional parameter sqlServerLicenseType + - Interface InMageRcmUpdateReplicationProtectedItemInput has a new optional parameter targetManagedDiskTags + - Interface InMageRcmUpdateReplicationProtectedItemInput has a new optional parameter targetNicTags + - Interface InMageRcmUpdateReplicationProtectedItemInput has a new optional parameter targetVmTags + - Interface InMageRcmUpdateReplicationProtectedItemInput has a new optional parameter userSelectedOSName + - Interface OSDetails has a new optional parameter userSelectedOSName + - Interface UpdateDiskInput has a new optional parameter diskSizeInGB + - Interface UpdateDiskInput has a new optional parameter iops + - Interface UpdateDiskInput has a new optional parameter throughputInMbps + - Interface VMwareCbtDiskInput has a new optional parameter diskSizeInGB + - Interface VMwareCbtDiskInput has a new optional parameter iops + - Interface VMwareCbtDiskInput has a new optional parameter sectorSizeInBytes + - Interface VMwareCbtDiskInput has a new optional parameter throughputInMbps + - Interface VMwareCbtEnableMigrationInput has a new optional parameter linuxLicenseType + - Interface VMwareCbtEnableMigrationInput has a new optional parameter userSelectedOSName + - Interface VMwareCbtMigrateInput has a new optional parameter postMigrationSteps + - Interface VMwareCbtMigrationDetails has a new optional parameter linuxLicenseType + - Interface VMwareCbtProtectedDiskDetails has a new optional parameter diskSizeInGB + - Interface VMwareCbtProtectedDiskDetails has a new optional parameter iops + - Interface VMwareCbtProtectedDiskDetails has a new optional parameter sectorSizeInBytes + - Interface VMwareCbtProtectedDiskDetails has a new optional parameter throughputInMbps + - Interface VMwareCbtTestMigrateInput has a new optional parameter postMigrationSteps + - Interface VMwareCbtUpdateDiskInput has a new optional parameter diskSizeInGB + - Interface VMwareCbtUpdateDiskInput has a new optional parameter iops + - Interface VMwareCbtUpdateDiskInput has a new optional parameter throughputInMbps + - Interface VMwareCbtUpdateMigrationItemInput has a new optional parameter linuxLicenseType + - Interface VMwareCbtUpdateMigrationItemInput has a new optional parameter userSelectedOSName + - Type of parameter instanceType of interface AddDisksProviderSpecificInput is changed from "A2A" to "A2A" | "InMageRcm" + - Type of parameter instanceType of interface JobDetails is changed from "AsrJobDetails" | "ExportJobDetails" | "FailoverJobDetails" | "SwitchProtectionJobDetails" | "TestFailoverJobDetails" to "AsrJobDetails" | "ClusterFailoverJobDetails" | "ClusterSwitchProtectionJobDetails" | "ClusterTestFailoverJobDetails" | "ExportJobDetails" | "FailoverJobDetails" | "SwitchProtectionJobDetails" | "TestFailoverJobDetails" + - Added Enum KnownClusterRecoveryPointType + - Added Enum KnownDiskState + - Added Enum KnownFailoverDirection + - Added Enum KnownLinuxLicenseType + - Added Enum KnownSecurityConfiguration + - Enum KnownDiskAccountType has a new value PremiumV2LRS + - Enum KnownDiskAccountType has a new value PremiumZRS + - Enum KnownDiskAccountType has a new value StandardSSDZRS + - Enum KnownDiskAccountType has a new value UltraSSDLRS + + ## 5.2.0 (2024-02-09) ### Features Added @@ -546,4 +742,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/LICENSE b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/LICENSE index b2f52a2bad4e..63447fd8bbbf 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/LICENSE +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/LICENSE @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE. \ No newline at end of file diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/README.md b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/README.md index a58b0fa5a822..eaa35b18e963 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/README.md +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/README.md @@ -2,6 +2,8 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure SiteRecoveryManagement client. + + [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-recoveryservices-siterecovery) | [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-recoveryservices-siterecovery) | @@ -42,7 +44,6 @@ npm install @azure/identity ``` You will also need to **register a new AAD application and grant access to Azure SiteRecoveryManagement** 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://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). @@ -62,16 +63,14 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur import { InteractiveBrowserCredential } from "@azure/identity"; import { SiteRecoveryManagementClient } from "@azure/arm-recoveryservices-siterecovery"; -const subscriptionId = "00000000-0000-0000-0000-000000000000"; const credential = new InteractiveBrowserCredential({ tenantId: "", - clientId: "", -}); + clientId: "" + }); const client = new SiteRecoveryManagementClient(credential, subscriptionId); ``` ### JavaScript Bundle - To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). ## Key concepts @@ -107,7 +106,6 @@ If you'd like to contribute to this library, please read the [contributing guide - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js) - [azure_cli]: https://learn.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ [azure_sub]: https://azure.microsoft.com/free/ diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/_meta.json b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/_meta.json index f3f285bf06af..6b6adca565d2 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/_meta.json +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/_meta.json @@ -1,8 +1,8 @@ { - "commit": "a342331c3ce13271517cf24978534f1ad2f88665", + "commit": "5f58edc44823413241cdfcb4810d889d9d4ba825", "readme": "specification/recoveryservicessiterecovery/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\\recoveryservicessiterecovery\\resource-manager\\readme.md --use=@autorest/typescript@6.0.15 --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/recoveryservicessiterecovery/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.4", - "use": "@autorest/typescript@6.0.15" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.26", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/api-extractor.json b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/api-extractor.json index 31c4ef909080..ec30fed98c5d 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/api-extractor.json +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "dist/esm/index.d.ts", + "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", "docModel": { "enabled": true }, @@ -11,7 +11,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "dist/arm-recoveryservices-siterecovery.d.ts" + "publicTrimmedFilePath": "./types/arm-recoveryservices-siterecovery.d.ts" }, "messages": { "tsdocMessageReporting": { @@ -28,4 +28,4 @@ } } } -} +} \ No newline at end of file diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/package.json b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/package.json index 47ad97ecdd51..c4e02ae549d1 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/package.json +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for SiteRecoveryManagementClient.", - "version": "5.2.1", + "version": "5.3.0", "engines": { "node": ">=18.0.0" }, "dependencies": { "@azure/abort-controller": "^2.1.2", "@azure/core-auth": "^1.9.0", - "@azure/core-client": "^1.9.2", + "@azure/core-client": "^1.9.3", "@azure/core-lro": "^2.5.4", "@azure/core-paging": "^1.6.2", - "@azure/core-rest-pipeline": "^1.19.0", + "@azure/core-rest-pipeline": "^1.19.1", "tslib": "^2.8.1" }, "keywords": [ @@ -25,20 +25,20 @@ ], "license": "MIT", "main": "./dist/commonjs/index.js", - "module": "./dist/esm/index.js", + "module": "./dist-esm/src/index.js", "types": "./dist/commonjs/index.d.ts", "devDependencies": { "@azure-tools/test-credential": "^2.0.0", "@azure-tools/test-recorder": "^4.1.0", "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.6.0", + "@azure/identity": "^4.9.0", "@azure/logger": "^1.1.4", "@types/node": "^18.0.0", "@vitest/browser": "^3.0.9", "@vitest/coverage-istanbul": "^3.0.9", "dotenv": "^16.0.0", - "playwright": "^1.50.1", + "playwright": "^1.52.0", "typescript": "~5.8.2", "vitest": "^3.0.9" }, @@ -71,7 +71,7 @@ "integration-test:browser": "echo skipped", "integration-test:node": "dev-tool run test:vitest --esm", "lint": "echo skipped", - "minify": "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", @@ -93,14 +93,6 @@ }, "autoPublish": true, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-recoveryservices-siterecovery?view=azure-node-preview" - }, "type": "module", "tshy": { "project": "./tsconfig.src.json", @@ -141,4 +133,4 @@ } } } -} +} \ No newline at end of file diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/review/arm-recoveryservices-siterecovery.api.md b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/review/arm-recoveryservices-siterecovery.api.md index cb6f5c3b0471..e9235b05743a 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/review/arm-recoveryservices-siterecovery.api.md +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/review/arm-recoveryservices-siterecovery.api.md @@ -17,11 +17,37 @@ export interface A2AAddDisksInput extends AddDisksProviderSpecificInput { vmManagedDisks?: A2AVmManagedDiskInputDetails[]; } +// @public +export interface A2AApplyClusterRecoveryPointInput extends ApplyClusterRecoveryPointProviderSpecificInput { + instanceType: "A2A"; +} + // @public export interface A2AApplyRecoveryPointInput extends ApplyRecoveryPointProviderSpecificInput { instanceType: "A2A"; } +// @public +export interface A2AClusterRecoveryPointDetails extends ClusterProviderSpecificRecoveryPointDetails { + instanceType: "A2A"; + nodes?: string[]; + recoveryPointSyncType?: RecoveryPointSyncType; +} + +// @public +export interface A2AClusterTestFailoverInput extends ClusterTestFailoverProviderSpecificInput { + clusterRecoveryPointId?: string; + individualNodeRecoveryPoints?: string[]; + instanceType: "A2A"; +} + +// @public +export interface A2AClusterUnplannedFailoverInput extends ClusterUnplannedFailoverProviderSpecificInput { + clusterRecoveryPointId?: string; + individualNodeRecoveryPoints?: string[]; + instanceType: "A2A"; +} + // @public export interface A2AContainerCreationInput extends ReplicationProviderSpecificContainerCreationInput { instanceType: "A2A"; @@ -103,6 +129,7 @@ export interface A2AEnableProtectionInput extends EnableProtectionProviderSpecif instanceType: "A2A"; multiVmGroupId?: string; multiVmGroupName?: string; + protectionClusterId?: string; recoveryAvailabilitySetId?: string; recoveryAvailabilityZone?: string; recoveryAzureNetworkId?: string; @@ -198,6 +225,20 @@ export interface A2AProtectedDiskDetails { tfoDiskName?: string; } +// @public +export interface A2AProtectedItemDetail { + diskEncryptionInfo?: DiskEncryptionInfo; + recoveryAvailabilitySetId?: string; + recoveryAvailabilityZone?: string; + recoveryBootDiagStorageAccountId?: string; + recoveryCapacityReservationGroupId?: string; + recoveryProximityPlacementGroupId?: string; + recoveryResourceGroupId?: string; + recoveryVirtualMachineScaleSetId?: string; + replicationProtectedItemName?: string; + vmManagedDisks?: A2AVmManagedDiskInputDetails[]; +} + // @public export interface A2AProtectedManagedDiskDetails { allowedDiskLevelOperation?: string[]; @@ -290,6 +331,7 @@ export interface A2AReplicationDetails extends ReplicationProviderSpecificSettin readonly initialRecoveryFabricLocation?: string; readonly initialRecoveryZone?: string; instanceType: "A2A"; + isClusterInfraReady?: boolean; isReplicationAgentCertificateUpdateRequired?: boolean; isReplicationAgentUpdateRequired?: boolean; lastHeartbeat?: Date; @@ -307,6 +349,7 @@ export interface A2AReplicationDetails extends ReplicationProviderSpecificSettin primaryFabricLocation?: string; protectedDisks?: A2AProtectedDiskDetails[]; protectedManagedDisks?: A2AProtectedManagedDiskDetails[]; + protectionClusterId?: string; recoveryAvailabilitySet?: string; recoveryAvailabilityZone?: string; readonly recoveryAzureGeneration?: string; @@ -361,6 +404,31 @@ export interface A2AReplicationIntentDetails extends ReplicationProtectionIntent vmManagedDisks?: A2AProtectionIntentManagedDiskInputDetails[]; } +// @public +export interface A2AReplicationProtectionClusterDetails extends ReplicationClusterProviderSpecificSettings { + clusterManagementId?: string; + failoverRecoveryPointId?: string; + initialPrimaryExtendedLocation?: ExtendedLocation; + initialPrimaryFabricLocation?: string; + initialPrimaryZone?: string; + initialRecoveryExtendedLocation?: ExtendedLocation; + initialRecoveryFabricLocation?: string; + initialRecoveryZone?: string; + instanceType: "A2A"; + lastRpoCalculatedTime?: Date; + lifecycleId?: string; + multiVmGroupCreateOption?: MultiVmGroupCreateOption; + multiVmGroupId?: string; + multiVmGroupName?: string; + primaryAvailabilityZone?: string; + primaryExtendedLocation?: ExtendedLocation; + primaryFabricLocation?: string; + recoveryAvailabilityZone?: string; + recoveryExtendedLocation?: ExtendedLocation; + recoveryFabricLocation?: string; + rpoInSeconds?: number; +} + // @public export interface A2AReprotectInput extends ReverseReplicationProviderSpecificInput { instanceType: "A2A"; @@ -375,6 +443,40 @@ export interface A2AReprotectInput extends ReverseReplicationProviderSpecificInp // @public export type A2ARpRecoveryPointType = string; +// @public +export interface A2ASharedDiskIRErrorDetails { + readonly errorCode?: string; + readonly errorCodeEnum?: string; + readonly errorMessage?: string; + readonly possibleCauses?: string; + readonly recommendedAction?: string; +} + +// @public +export interface A2ASharedDiskReplicationDetails extends SharedDiskReplicationProviderSpecificSettings { + failoverRecoveryPointId?: string; + instanceType: "A2A"; + lastRpoCalculatedTime?: Date; + managementId?: string; + monitoringJobType?: string; + monitoringPercentageCompletion?: number; + primaryFabricLocation?: string; + protectedManagedDisks?: A2AProtectedManagedDiskDetails[]; + recoveryFabricLocation?: string; + rpoInSeconds?: number; + sharedDiskIRErrors?: A2ASharedDiskIRErrorDetails[]; + unprotectedDisks?: A2AUnprotectedDiskDetails[]; +} + +// @public +export interface A2ASwitchClusterProtectionInput extends SwitchClusterProtectionProviderSpecificInput { + instanceType: "A2A"; + policyId?: string; + // (undocumented) + protectedItemsDetail?: A2AProtectedItemDetail[]; + recoveryContainerId?: string; +} + // @public export interface A2ASwitchProtectionInput extends SwitchProtectionProviderSpecificInput { diskEncryptionInfo?: DiskEncryptionInfo; @@ -481,11 +583,11 @@ export interface AddDisksInputProperties { // @public export interface AddDisksProviderSpecificInput { - instanceType: "A2A"; + instanceType: "A2A" | "InMageRcm"; } // @public (undocumented) -export type AddDisksProviderSpecificInputUnion = AddDisksProviderSpecificInput | A2AAddDisksInput; +export type AddDisksProviderSpecificInputUnion = AddDisksProviderSpecificInput | A2AAddDisksInput | InMageRcmAddDisksInput; // @public export interface AddRecoveryServicesProviderInput { @@ -601,6 +703,26 @@ export interface ApplianceSpecificDetails { // @public (undocumented) export type ApplianceSpecificDetailsUnion = ApplianceSpecificDetails | InMageRcmApplianceSpecificDetails; +// @public +export interface ApplyClusterRecoveryPointInput { + properties: ApplyClusterRecoveryPointInputProperties; +} + +// @public +export interface ApplyClusterRecoveryPointInputProperties { + clusterRecoveryPointId?: string; + individualNodeRecoveryPoints?: string[]; + providerSpecificDetails: ApplyClusterRecoveryPointProviderSpecificInputUnion; +} + +// @public +export interface ApplyClusterRecoveryPointProviderSpecificInput { + instanceType: "A2A"; +} + +// @public (undocumented) +export type ApplyClusterRecoveryPointProviderSpecificInputUnion = ApplyClusterRecoveryPointProviderSpecificInput | A2AApplyClusterRecoveryPointInput; + // @public export interface ApplyRecoveryPointInput { properties: ApplyRecoveryPointInputProperties; @@ -721,6 +843,143 @@ export interface AzureVmDiskDetails { // @public export type ChurnOptionSelected = string; +// @public +export interface ClusterFailoverJobDetails extends JobDetails { + instanceType: "ClusterFailoverJobDetails"; + protectedItemDetails?: FailoverReplicationProtectedItemDetails[]; +} + +// @public +export interface ClusterProviderSpecificRecoveryPointDetails { + instanceType: "A2A"; +} + +// @public (undocumented) +export type ClusterProviderSpecificRecoveryPointDetailsUnion = ClusterProviderSpecificRecoveryPointDetails | A2AClusterRecoveryPointDetails; + +// @public +export interface ClusterRecoveryPoint { + id?: string; + name?: string; + properties?: ClusterRecoveryPointProperties; + type?: string; +} + +// @public +export interface ClusterRecoveryPointCollection { + nextLink?: string; + value?: ClusterRecoveryPoint[]; +} + +// @public +export interface ClusterRecoveryPointGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ClusterRecoveryPointGetResponse = ClusterRecoveryPoint; + +// @public +export interface ClusterRecoveryPointOperations { + get(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicationProtectionClusterName: string, recoveryPointName: string, options?: ClusterRecoveryPointGetOptionalParams): Promise; +} + +// @public +export interface ClusterRecoveryPointProperties { + providerSpecificDetails?: ClusterProviderSpecificRecoveryPointDetailsUnion; + recoveryPointTime?: Date; + recoveryPointType?: ClusterRecoveryPointType; +} + +// @public +export interface ClusterRecoveryPoints { + listByReplicationProtectionCluster(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicationProtectionClusterName: string, options?: ClusterRecoveryPointsListByReplicationProtectionClusterOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ClusterRecoveryPointsListByReplicationProtectionClusterNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ClusterRecoveryPointsListByReplicationProtectionClusterNextResponse = ClusterRecoveryPointCollection; + +// @public +export interface ClusterRecoveryPointsListByReplicationProtectionClusterOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ClusterRecoveryPointsListByReplicationProtectionClusterResponse = ClusterRecoveryPointCollection; + +// @public +export type ClusterRecoveryPointType = string; + +// @public +export interface ClusterSwitchProtectionJobDetails extends JobDetails { + instanceType: "ClusterSwitchProtectionJobDetails"; + newReplicationProtectionClusterId?: string; +} + +// @public +export interface ClusterTestFailoverCleanupInput { + properties: ClusterTestFailoverCleanupInputProperties; +} + +// @public +export interface ClusterTestFailoverCleanupInputProperties { + comments?: string; +} + +// @public +export interface ClusterTestFailoverInput { + properties: ClusterTestFailoverInputProperties; +} + +// @public +export interface ClusterTestFailoverInputProperties { + failoverDirection?: FailoverDirection; + networkId?: string; + networkType?: string; + providerSpecificDetails?: ClusterTestFailoverProviderSpecificInputUnion; +} + +// @public +export interface ClusterTestFailoverJobDetails extends JobDetails { + comments?: string; + instanceType: "ClusterTestFailoverJobDetails"; + networkFriendlyName?: string; + networkName?: string; + networkType?: string; + protectedItemDetails?: FailoverReplicationProtectedItemDetails[]; + testFailoverStatus?: string; +} + +// @public +export interface ClusterTestFailoverProviderSpecificInput { + instanceType: "A2A"; +} + +// @public (undocumented) +export type ClusterTestFailoverProviderSpecificInputUnion = ClusterTestFailoverProviderSpecificInput | A2AClusterTestFailoverInput; + +// @public +export interface ClusterUnplannedFailoverInput { + properties: ClusterUnplannedFailoverInputProperties; +} + +// @public +export interface ClusterUnplannedFailoverInputProperties { + failoverDirection?: string; + providerSpecificDetails?: ClusterUnplannedFailoverProviderSpecificInputUnion; + sourceSiteOperations?: string; +} + +// @public +export interface ClusterUnplannedFailoverProviderSpecificInput { + instanceType: "A2A"; +} + +// @public (undocumented) +export type ClusterUnplannedFailoverProviderSpecificInputUnion = ClusterUnplannedFailoverProviderSpecificInput | A2AClusterUnplannedFailoverInput; + // @public export interface ComputeSizeErrorDetails { message?: string; @@ -930,6 +1189,9 @@ export interface DiskEncryptionKeyInfo { // @public export type DiskReplicationProgressHealth = string; +// @public +export type DiskState = string; + // @public export interface DiskVolumeDetails { label?: string; @@ -1224,6 +1486,9 @@ export type FabricSpecificUpdateNetworkMappingInputUnion = FabricSpecificUpdateN // @public export type FailoverDeploymentModel = string; +// @public +export type FailoverDirection = string; + // @public export interface FailoverJobDetails extends JobDetails { instanceType: "FailoverJobDetails"; @@ -1353,8 +1618,12 @@ export interface HyperVReplicaAzureApplyRecoveryPointInput extends ApplyRecovery export interface HyperVReplicaAzureDiskInputDetails { diskEncryptionSetId?: string; diskId?: string; + diskSizeInGB?: number; diskType?: DiskAccountType; + iops?: number; logStorageAccountId?: string; + sectorSizeInBytes?: number; + throughputInMbps?: number; } // @public @@ -1367,6 +1636,7 @@ export interface HyperVReplicaAzureEnableProtectionInput extends EnableProtectio hvHostVmId?: string; instanceType: "HyperVReplicaAzure"; licenseType?: LicenseType; + linuxLicenseType?: LinuxLicenseType; logStorageAccountId?: string; osType?: string; seedManagedDiskTags?: { @@ -1388,12 +1658,14 @@ export interface HyperVReplicaAzureEnableProtectionInput extends EnableProtectio }; targetProximityPlacementGroupId?: string; targetStorageAccountId?: string; + targetVmSecurityProfile?: SecurityProfileProperties; targetVmSize?: string; targetVmTags?: { [propertyName: string]: string; }; useManagedDisks?: string; useManagedDisksForReplication?: string; + userSelectedOSName?: string; vhdId?: string; vmName?: string; } @@ -1418,8 +1690,13 @@ export interface HyperVReplicaAzureFailbackProviderInput extends PlannedFailover export interface HyperVReplicaAzureManagedDiskDetails { diskEncryptionSetId?: string; diskId?: string; + diskSizeInGB?: number; + iops?: number; replicaDiskType?: string; + sectorSizeInBytes?: number; seedManagedDiskId?: string; + targetDiskAccountType?: DiskAccountType; + throughputInMbps?: number; } // @public @@ -1464,6 +1741,7 @@ export interface HyperVReplicaAzureReplicationDetails extends ReplicationProvide lastReplicatedTime?: Date; lastRpoCalculatedTime?: Date; licenseType?: string; + linuxLicenseType?: LinuxLicenseType; oSDetails?: OSDetails; protectedManagedDisks?: HyperVReplicaAzureManagedDiskDetails[]; recoveryAvailabilitySetId?: string; @@ -1489,6 +1767,7 @@ export interface HyperVReplicaAzureReplicationDetails extends ReplicationProvide [propertyName: string]: string; }; targetProximityPlacementGroupId?: string; + targetVmSecurityProfile?: SecurityProfileProperties; targetVmTags?: { [propertyName: string]: string; }; @@ -1536,6 +1815,7 @@ export interface HyperVReplicaAzureUpdateReplicationProtectedItemInput extends U [propertyName: string]: string; }; instanceType: "HyperVReplicaAzure"; + linuxLicenseType?: LinuxLicenseType; recoveryAzureV1ResourceGroupId?: string; recoveryAzureV2ResourceGroupId?: string; sqlServerLicenseType?: SqlServerLicenseType; @@ -1551,6 +1831,7 @@ export interface HyperVReplicaAzureUpdateReplicationProtectedItemInput extends U [propertyName: string]: string; }; useManagedDisks?: string; + userSelectedOSName?: string; vmDisks?: UpdateDiskInput[]; } @@ -2132,6 +2413,12 @@ export interface InMageProtectedDiskDetails { targetDataInMB?: number; } +// @public +export interface InMageRcmAddDisksInput extends AddDisksProviderSpecificInput { + disks: InMageRcmDiskInput[]; + instanceType: "InMageRcm"; +} + // @public export interface InMageRcmAgentUpgradeBlockingErrorDetails { readonly errorCode?: string; @@ -2193,15 +2480,23 @@ export interface InMageRcmDiscoveredProtectedVmDetails { export interface InMageRcmDiskInput { diskEncryptionSetId?: string; diskId: string; + diskSizeInGB?: number; diskType: DiskAccountType; + iops?: number; logStorageAccountId: string; + sectorSizeInBytes?: number; + throughputInMbps?: number; } // @public export interface InMageRcmDisksDefaultInput { diskEncryptionSetId?: string; + diskSizeInGB?: number; diskType: DiskAccountType; + iops?: number; logStorageAccountId: string; + sectorSizeInBytes?: number; + throughputInMbps?: number; } // @public @@ -2211,20 +2506,28 @@ export interface InMageRcmEnableProtectionInput extends EnableProtectionProvider fabricDiscoveryMachineId: string; instanceType: "InMageRcm"; licenseType?: LicenseType; + linuxLicenseType?: LinuxLicenseType; multiVmGroupName?: string; processServerId: string; runAsAccountId?: string; + seedManagedDiskTags?: UserCreatedResourceTag[]; + sqlServerLicenseType?: SqlServerLicenseType; targetAvailabilitySetId?: string; targetAvailabilityZone?: string; targetBootDiagnosticsStorageAccountId?: string; + targetManagedDiskTags?: UserCreatedResourceTag[]; targetNetworkId?: string; + targetNicTags?: UserCreatedResourceTag[]; targetProximityPlacementGroupId?: string; targetResourceGroupId: string; targetSubnetName?: string; targetVmName?: string; + targetVmSecurityProfile?: SecurityProfileProperties; targetVmSize?: string; + targetVmTags?: UserCreatedResourceTag[]; testNetworkId?: string; testSubnetName?: string; + userSelectedOSName?: string; } // @public @@ -2461,6 +2764,7 @@ export interface InMageRcmNicDetails { readonly sourceSubnetName?: string; targetIPAddress?: string; targetIPAddressType?: EthernetAddressType; + targetNicName?: string; targetSubnetName?: string; testIPAddress?: string; testIPAddressType?: EthernetAddressType; @@ -2472,6 +2776,7 @@ export interface InMageRcmNicInput { isPrimaryNic: string; isSelectedForFailover?: string; nicId: string; + targetNicName?: string; targetStaticIPAddress?: string; targetSubnetName?: string; testStaticIPAddress?: string; @@ -2499,20 +2804,26 @@ export interface InMageRcmPolicyDetails extends PolicyProviderSpecificDetails { // @public export interface InMageRcmProtectedDiskDetails { readonly capacityInBytes?: number; + customTargetDiskName?: string; readonly dataPendingAtSourceAgentInMB?: number; readonly dataPendingInLogDataStoreInMB?: number; readonly diskEncryptionSetId?: string; readonly diskId?: string; readonly diskName?: string; + diskSizeInGB?: number; + readonly diskState?: DiskState; diskType?: DiskAccountType; + iops?: number; irDetails?: InMageRcmSyncDetails; readonly isInitialReplicationComplete?: string; readonly isOSDisk?: string; readonly logStorageAccountId?: string; resyncDetails?: InMageRcmSyncDetails; + sectorSizeInBytes?: number; readonly seedBlobUri?: string; readonly seedManagedDiskId?: string; readonly targetManagedDiskId?: string; + throughputInMbps?: number; } // @public @@ -2554,8 +2865,10 @@ export interface InMageRcmReplicationDetails extends ReplicationProviderSpecific readonly lastRpoCalculatedTime?: Date; readonly lastRpoInSeconds?: number; licenseType?: string; + linuxLicenseType?: LinuxLicenseType; mobilityAgentDetails?: InMageRcmMobilityAgentDetails; readonly multiVmGroupName?: string; + osName?: string; readonly osType?: string; readonly primaryNicIpAddress?: string; readonly processorCoreCount?: number; @@ -2569,18 +2882,26 @@ export interface InMageRcmReplicationDetails extends ReplicationProviderSpecific readonly resyncState?: ResyncState; readonly resyncTransferredBytes?: number; readonly runAsAccountId?: string; + seedManagedDiskTags?: UserCreatedResourceTag[]; + sqlServerLicenseType?: string; readonly storageAccountId?: string; + supportedOSVersions?: string[]; targetAvailabilitySetId?: string; targetAvailabilityZone?: string; targetBootDiagnosticsStorageAccountId?: string; readonly targetGeneration?: string; targetLocation?: string; + targetManagedDiskTags?: UserCreatedResourceTag[]; targetNetworkId?: string; + targetNicTags?: UserCreatedResourceTag[]; targetProximityPlacementGroupId?: string; targetResourceGroupId?: string; targetVmName?: string; + targetVmSecurityProfile?: SecurityProfileProperties; targetVmSize?: string; + targetVmTags?: UserCreatedResourceTag[]; testNetworkId?: string; + unprotectedDisks?: InMageRcmUnProtectedDiskDetails[]; vmNics?: InMageRcmNicDetails[]; } @@ -2609,16 +2930,25 @@ export interface InMageRcmSyncDetails { export interface InMageRcmTestFailoverInput extends TestFailoverProviderSpecificInput { instanceType: "InMageRcm"; networkId?: string; + osUpgradeVersion?: string; recoveryPointId?: string; } // @public export interface InMageRcmUnplannedFailoverInput extends UnplannedFailoverProviderSpecificInput { instanceType: "InMageRcm"; + osUpgradeVersion?: string; performShutdown: string; recoveryPointId?: string; } +// @public +export interface InMageRcmUnProtectedDiskDetails { + readonly capacityInBytes?: number; + readonly diskId?: string; + readonly diskName?: string; +} + // @public export interface InMageRcmUpdateApplianceForReplicationProtectedItemInput extends UpdateApplianceForReplicationProtectedItemProviderSpecificInput { instanceType: "InMageRcm"; @@ -2635,15 +2965,21 @@ export interface InMageRcmUpdateContainerMappingInput extends ReplicationProvide export interface InMageRcmUpdateReplicationProtectedItemInput extends UpdateReplicationProtectedItemProviderInput { instanceType: "InMageRcm"; licenseType?: LicenseType; + linuxLicenseType?: LinuxLicenseType; + sqlServerLicenseType?: SqlServerLicenseType; targetAvailabilitySetId?: string; targetAvailabilityZone?: string; targetBootDiagnosticsStorageAccountId?: string; + targetManagedDiskTags?: UserCreatedResourceTag[]; targetNetworkId?: string; + targetNicTags?: UserCreatedResourceTag[]; targetProximityPlacementGroupId?: string; targetResourceGroupId?: string; targetVmName?: string; targetVmSize?: string; + targetVmTags?: UserCreatedResourceTag[]; testNetworkId?: string; + userSelectedOSName?: string; vmNics?: InMageRcmNicInput[]; } @@ -2836,11 +3172,11 @@ export interface JobDetails { affectedObjectDetails?: { [propertyName: string]: string; }; - instanceType: "AsrJobDetails" | "ExportJobDetails" | "FailoverJobDetails" | "SwitchProtectionJobDetails" | "TestFailoverJobDetails"; + instanceType: "AsrJobDetails" | "ClusterFailoverJobDetails" | "ClusterSwitchProtectionJobDetails" | "ClusterTestFailoverJobDetails" | "ExportJobDetails" | "FailoverJobDetails" | "SwitchProtectionJobDetails" | "TestFailoverJobDetails"; } // @public (undocumented) -export type JobDetailsUnion = JobDetails | AsrJobDetails | ExportJobDetails | FailoverJobDetails | SwitchProtectionJobDetails | TestFailoverJobDetails; +export type JobDetailsUnion = JobDetails | AsrJobDetails | ClusterFailoverJobDetails | ClusterSwitchProtectionJobDetails | ClusterTestFailoverJobDetails | ExportJobDetails | FailoverJobDetails | SwitchProtectionJobDetails | TestFailoverJobDetails; // @public export interface JobEntity { @@ -2987,6 +3323,13 @@ export enum KnownChurnOptionSelected { Normal = "Normal" } +// @public +export enum KnownClusterRecoveryPointType { + ApplicationConsistent = "ApplicationConsistent", + CrashConsistent = "CrashConsistent", + NotSpecified = "NotSpecified" +} + // @public export enum KnownDataSyncStatus { ForDownTime = "ForDownTime", @@ -3002,8 +3345,12 @@ export enum KnownDisableProtectionReason { // @public export enum KnownDiskAccountType { PremiumLRS = "Premium_LRS", + PremiumV2LRS = "PremiumV2_LRS", + PremiumZRS = "Premium_ZRS", StandardLRS = "Standard_LRS", - StandardSSDLRS = "StandardSSD_LRS" + StandardSSDLRS = "StandardSSD_LRS", + StandardSSDZRS = "StandardSSD_ZRS", + UltraSSDLRS = "UltraSSD_LRS" } // @public @@ -3015,6 +3362,14 @@ export enum KnownDiskReplicationProgressHealth { SlowProgress = "SlowProgress" } +// @public +export enum KnownDiskState { + InitialReplicationFailed = "InitialReplicationFailed", + InitialReplicationPending = "InitialReplicationPending", + Protected = "Protected", + Unavailable = "Unavailable" +} + // @public export enum KnownEthernetAddressType { Dynamic = "Dynamic", @@ -3040,6 +3395,12 @@ export enum KnownFailoverDeploymentModel { ResourceManager = "ResourceManager" } +// @public +export enum KnownFailoverDirection { + PrimaryToRecovery = "PrimaryToRecovery", + RecoveryToPrimary = "RecoveryToPrimary" +} + // @public export enum KnownHealthErrorCategory { AgentAutoUpdateArtifactDeleted = "AgentAutoUpdateArtifactDeleted", @@ -3089,6 +3450,13 @@ export enum KnownLicenseType { WindowsServer = "WindowsServer" } +// @public +export enum KnownLinuxLicenseType { + LinuxServer = "LinuxServer", + NoLicenseType = "NoLicenseType", + NotSpecified = "NotSpecified" +} + // @public export enum KnownMigrationItemOperation { DisableMigration = "DisableMigration", @@ -3251,6 +3619,12 @@ export enum KnownRpInMageRecoveryPointType { LatestTime = "LatestTime" } +// @public +export enum KnownSecurityConfiguration { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownSecurityType { ConfidentialVM = "ConfidentialVM", @@ -3315,6 +3689,9 @@ export enum KnownVmReplicationProgressHealth { // @public export type LicenseType = string; +// @public +export type LinuxLicenseType = string; + // @public export interface LogicalNetwork extends Resource { properties?: LogicalNetworkProperties; @@ -3334,6 +3711,13 @@ export interface LogicalNetworkProperties { networkVirtualizationStatus?: string; } +// @public +export interface ManagedRunCommandScriptInput { + scriptParameters: string; + scriptUrl: string; + stepName: string; +} + // @public export interface ManualActionTaskDetails extends TaskTypeDetails { instanceType: "ManualActionTaskDetails"; @@ -3467,8 +3851,8 @@ export interface MigrationRecoveryPointProperties { // @public export interface MigrationRecoveryPoints { - get(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, migrationRecoveryPointName: string, options?: MigrationRecoveryPointsGetOptionalParams): Promise; - listByReplicationMigrationItems(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, options?: MigrationRecoveryPointsListByReplicationMigrationItemsOptionalParams): PagedAsyncIterableIterator; + get(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, migrationRecoveryPointName: string, options?: MigrationRecoveryPointsGetOptionalParams): Promise; + listByReplicationMigrationItems(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, options?: MigrationRecoveryPointsListByReplicationMigrationItemsOptionalParams): PagedAsyncIterableIterator; } // @public @@ -3623,6 +4007,7 @@ export interface OSDetails { osType?: string; oSVersion?: string; productType?: string; + userSelectedOSName?: string; } // @public @@ -3815,6 +4200,13 @@ export interface ProtectableItemQueryParameter { state?: string; } +// @public +export interface ProtectedClustersQueryParameter { + instanceType?: string; + sourceFabricLocation?: string; + sourceFabricName?: string; +} + // @public export interface ProtectedItemsQueryParameter { fabricObjectId?: string; @@ -4220,8 +4612,8 @@ export interface RecoveryPointProperties { // @public export interface RecoveryPoints { - get(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, recoveryPointName: string, options?: RecoveryPointsGetOptionalParams): Promise; - listByReplicationProtectedItems(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: RecoveryPointsListByReplicationProtectedItemsOptionalParams): PagedAsyncIterableIterator; + get(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, recoveryPointName: string, options?: RecoveryPointsGetOptionalParams): Promise; + listByReplicationProtectedItems(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: RecoveryPointsListByReplicationProtectedItemsOptionalParams): PagedAsyncIterableIterator; } // @public @@ -4310,6 +4702,14 @@ export interface RecoveryVirtualNetworkCustomDetails { // @public (undocumented) export type RecoveryVirtualNetworkCustomDetailsUnion = RecoveryVirtualNetworkCustomDetails | ExistingRecoveryVirtualNetwork | NewRecoveryVirtualNetwork; +// @public +export interface RegisteredClusterNodes { + biosId?: string; + clusterNodeFqdn?: string; + isSharedDiskVirtualNode?: boolean; + machineId?: string; +} + // @public export interface RemoveDisksInput { properties?: RemoveDisksInputProperties; @@ -4363,9 +4763,9 @@ export interface ReplicationAgentDetails { // @public export interface ReplicationAlertSettings { - create(resourceName: string, resourceGroupName: string, alertSettingName: string, request: ConfigureAlertRequest, options?: ReplicationAlertSettingsCreateOptionalParams): Promise; - get(resourceName: string, resourceGroupName: string, alertSettingName: string, options?: ReplicationAlertSettingsGetOptionalParams): Promise; - list(resourceName: string, resourceGroupName: string, options?: ReplicationAlertSettingsListOptionalParams): PagedAsyncIterableIterator; + create(resourceGroupName: string, resourceName: string, alertSettingName: string, request: ConfigureAlertRequest, options?: ReplicationAlertSettingsCreateOptionalParams): Promise; + get(resourceGroupName: string, resourceName: string, alertSettingName: string, options?: ReplicationAlertSettingsGetOptionalParams): Promise; + list(resourceGroupName: string, resourceName: string, options?: ReplicationAlertSettingsListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -4408,7 +4808,7 @@ export interface ReplicationApplianceProperties { // @public export interface ReplicationAppliances { - list(resourceName: string, resourceGroupName: string, options?: ReplicationAppliancesListOptionalParams): PagedAsyncIterableIterator; + list(resourceGroupName: string, resourceName: string, options?: ReplicationAppliancesListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -4426,6 +4826,14 @@ export interface ReplicationAppliancesListOptionalParams extends coreClient.Oper // @public export type ReplicationAppliancesListResponse = ApplianceCollection; +// @public +export interface ReplicationClusterProviderSpecificSettings { + instanceType: "A2A"; +} + +// @public (undocumented) +export type ReplicationClusterProviderSpecificSettingsUnion = ReplicationClusterProviderSpecificSettings | A2AReplicationProtectionClusterDetails; + // @public export interface ReplicationEligibilityResults { readonly id?: string; @@ -4476,8 +4884,8 @@ export interface ReplicationEligibilityResultsProperties { // @public export interface ReplicationEvents { - get(resourceName: string, resourceGroupName: string, eventName: string, options?: ReplicationEventsGetOptionalParams): Promise; - list(resourceName: string, resourceGroupName: string, options?: ReplicationEventsListOptionalParams): PagedAsyncIterableIterator; + get(resourceGroupName: string, resourceName: string, eventName: string, options?: ReplicationEventsGetOptionalParams): Promise; + list(resourceGroupName: string, resourceName: string, options?: ReplicationEventsListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -4504,24 +4912,24 @@ export type ReplicationEventsListResponse = EventCollection; // @public export interface ReplicationFabrics { - beginCheckConsistency(resourceName: string, resourceGroupName: string, fabricName: string, options?: ReplicationFabricsCheckConsistencyOptionalParams): Promise, ReplicationFabricsCheckConsistencyResponse>>; - beginCheckConsistencyAndWait(resourceName: string, resourceGroupName: string, fabricName: string, options?: ReplicationFabricsCheckConsistencyOptionalParams): Promise; - beginCreate(resourceName: string, resourceGroupName: string, fabricName: string, input: FabricCreationInput, options?: ReplicationFabricsCreateOptionalParams): Promise, ReplicationFabricsCreateResponse>>; - beginCreateAndWait(resourceName: string, resourceGroupName: string, fabricName: string, input: FabricCreationInput, options?: ReplicationFabricsCreateOptionalParams): Promise; - beginDelete(resourceName: string, resourceGroupName: string, fabricName: string, options?: ReplicationFabricsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceName: string, resourceGroupName: string, fabricName: string, options?: ReplicationFabricsDeleteOptionalParams): Promise; - beginMigrateToAad(resourceName: string, resourceGroupName: string, fabricName: string, options?: ReplicationFabricsMigrateToAadOptionalParams): Promise, void>>; - beginMigrateToAadAndWait(resourceName: string, resourceGroupName: string, fabricName: string, options?: ReplicationFabricsMigrateToAadOptionalParams): Promise; - beginPurge(resourceName: string, resourceGroupName: string, fabricName: string, options?: ReplicationFabricsPurgeOptionalParams): Promise, void>>; - beginPurgeAndWait(resourceName: string, resourceGroupName: string, fabricName: string, options?: ReplicationFabricsPurgeOptionalParams): Promise; - beginReassociateGateway(resourceName: string, resourceGroupName: string, fabricName: string, failoverProcessServerRequest: FailoverProcessServerRequest, options?: ReplicationFabricsReassociateGatewayOptionalParams): Promise, ReplicationFabricsReassociateGatewayResponse>>; - beginReassociateGatewayAndWait(resourceName: string, resourceGroupName: string, fabricName: string, failoverProcessServerRequest: FailoverProcessServerRequest, options?: ReplicationFabricsReassociateGatewayOptionalParams): Promise; + beginCheckConsistency(resourceGroupName: string, resourceName: string, fabricName: string, options?: ReplicationFabricsCheckConsistencyOptionalParams): Promise, ReplicationFabricsCheckConsistencyResponse>>; + beginCheckConsistencyAndWait(resourceGroupName: string, resourceName: string, fabricName: string, options?: ReplicationFabricsCheckConsistencyOptionalParams): Promise; + beginCreate(resourceGroupName: string, resourceName: string, fabricName: string, input: FabricCreationInput, options?: ReplicationFabricsCreateOptionalParams): Promise, ReplicationFabricsCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, resourceName: string, fabricName: string, input: FabricCreationInput, options?: ReplicationFabricsCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, resourceName: string, fabricName: string, options?: ReplicationFabricsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, resourceName: string, fabricName: string, options?: ReplicationFabricsDeleteOptionalParams): Promise; + beginMigrateToAad(resourceGroupName: string, resourceName: string, fabricName: string, options?: ReplicationFabricsMigrateToAadOptionalParams): Promise, void>>; + beginMigrateToAadAndWait(resourceGroupName: string, resourceName: string, fabricName: string, options?: ReplicationFabricsMigrateToAadOptionalParams): Promise; + beginPurge(resourceGroupName: string, resourceName: string, fabricName: string, options?: ReplicationFabricsPurgeOptionalParams): Promise, void>>; + beginPurgeAndWait(resourceGroupName: string, resourceName: string, fabricName: string, options?: ReplicationFabricsPurgeOptionalParams): Promise; + beginReassociateGateway(resourceGroupName: string, resourceName: string, fabricName: string, failoverProcessServerRequest: FailoverProcessServerRequest, options?: ReplicationFabricsReassociateGatewayOptionalParams): Promise, ReplicationFabricsReassociateGatewayResponse>>; + beginReassociateGatewayAndWait(resourceGroupName: string, resourceName: string, fabricName: string, failoverProcessServerRequest: FailoverProcessServerRequest, options?: ReplicationFabricsReassociateGatewayOptionalParams): Promise; beginRemoveInfra(resourceGroupName: string, resourceName: string, fabricName: string, options?: ReplicationFabricsRemoveInfraOptionalParams): Promise, ReplicationFabricsRemoveInfraResponse>>; beginRemoveInfraAndWait(resourceGroupName: string, resourceName: string, fabricName: string, options?: ReplicationFabricsRemoveInfraOptionalParams): Promise; - beginRenewCertificate(resourceName: string, resourceGroupName: string, fabricName: string, renewCertificate: RenewCertificateInput, options?: ReplicationFabricsRenewCertificateOptionalParams): Promise, ReplicationFabricsRenewCertificateResponse>>; - beginRenewCertificateAndWait(resourceName: string, resourceGroupName: string, fabricName: string, renewCertificate: RenewCertificateInput, options?: ReplicationFabricsRenewCertificateOptionalParams): Promise; - get(resourceName: string, resourceGroupName: string, fabricName: string, options?: ReplicationFabricsGetOptionalParams): Promise; - list(resourceName: string, resourceGroupName: string, options?: ReplicationFabricsListOptionalParams): PagedAsyncIterableIterator; + beginRenewCertificate(resourceGroupName: string, resourceName: string, fabricName: string, renewCertificate: RenewCertificateInput, options?: ReplicationFabricsRenewCertificateOptionalParams): Promise, ReplicationFabricsRenewCertificateResponse>>; + beginRenewCertificateAndWait(resourceGroupName: string, resourceName: string, fabricName: string, renewCertificate: RenewCertificateInput, options?: ReplicationFabricsRenewCertificateOptionalParams): Promise; + get(resourceGroupName: string, resourceName: string, fabricName: string, options?: ReplicationFabricsGetOptionalParams): Promise; + list(resourceGroupName: string, resourceName: string, options?: ReplicationFabricsListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -4622,16 +5030,16 @@ export interface ReplicationGroupDetails extends ConfigurationSettings { // @public export interface ReplicationJobs { - beginCancel(resourceName: string, resourceGroupName: string, jobName: string, options?: ReplicationJobsCancelOptionalParams): Promise, ReplicationJobsCancelResponse>>; - beginCancelAndWait(resourceName: string, resourceGroupName: string, jobName: string, options?: ReplicationJobsCancelOptionalParams): Promise; - beginExport(resourceName: string, resourceGroupName: string, jobQueryParameter: JobQueryParameter, options?: ReplicationJobsExportOptionalParams): Promise, ReplicationJobsExportResponse>>; - beginExportAndWait(resourceName: string, resourceGroupName: string, jobQueryParameter: JobQueryParameter, options?: ReplicationJobsExportOptionalParams): Promise; - beginRestart(resourceName: string, resourceGroupName: string, jobName: string, options?: ReplicationJobsRestartOptionalParams): Promise, ReplicationJobsRestartResponse>>; - beginRestartAndWait(resourceName: string, resourceGroupName: string, jobName: string, options?: ReplicationJobsRestartOptionalParams): Promise; - beginResume(resourceName: string, resourceGroupName: string, jobName: string, resumeJobParams: ResumeJobParams, options?: ReplicationJobsResumeOptionalParams): Promise, ReplicationJobsResumeResponse>>; - beginResumeAndWait(resourceName: string, resourceGroupName: string, jobName: string, resumeJobParams: ResumeJobParams, options?: ReplicationJobsResumeOptionalParams): Promise; - get(resourceName: string, resourceGroupName: string, jobName: string, options?: ReplicationJobsGetOptionalParams): Promise; - list(resourceName: string, resourceGroupName: string, options?: ReplicationJobsListOptionalParams): PagedAsyncIterableIterator; + beginCancel(resourceGroupName: string, resourceName: string, jobName: string, options?: ReplicationJobsCancelOptionalParams): Promise, ReplicationJobsCancelResponse>>; + beginCancelAndWait(resourceGroupName: string, resourceName: string, jobName: string, options?: ReplicationJobsCancelOptionalParams): Promise; + beginExport(resourceGroupName: string, resourceName: string, jobQueryParameter: JobQueryParameter, options?: ReplicationJobsExportOptionalParams): Promise, ReplicationJobsExportResponse>>; + beginExportAndWait(resourceGroupName: string, resourceName: string, jobQueryParameter: JobQueryParameter, options?: ReplicationJobsExportOptionalParams): Promise; + beginRestart(resourceGroupName: string, resourceName: string, jobName: string, options?: ReplicationJobsRestartOptionalParams): Promise, ReplicationJobsRestartResponse>>; + beginRestartAndWait(resourceGroupName: string, resourceName: string, jobName: string, options?: ReplicationJobsRestartOptionalParams): Promise; + beginResume(resourceGroupName: string, resourceName: string, jobName: string, resumeJobParams: ResumeJobParams, options?: ReplicationJobsResumeOptionalParams): Promise, ReplicationJobsResumeResponse>>; + beginResumeAndWait(resourceGroupName: string, resourceName: string, jobName: string, resumeJobParams: ResumeJobParams, options?: ReplicationJobsResumeOptionalParams): Promise; + get(resourceGroupName: string, resourceName: string, jobName: string, options?: ReplicationJobsGetOptionalParams): Promise; + list(resourceGroupName: string, resourceName: string, options?: ReplicationJobsListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -4694,8 +5102,8 @@ export type ReplicationJobsResumeResponse = Job; // @public export interface ReplicationLogicalNetworks { - get(resourceName: string, resourceGroupName: string, fabricName: string, logicalNetworkName: string, options?: ReplicationLogicalNetworksGetOptionalParams): Promise; - listByReplicationFabrics(resourceName: string, resourceGroupName: string, fabricName: string, options?: ReplicationLogicalNetworksListByReplicationFabricsOptionalParams): PagedAsyncIterableIterator; + get(resourceGroupName: string, resourceName: string, fabricName: string, logicalNetworkName: string, options?: ReplicationLogicalNetworksGetOptionalParams): Promise; + listByReplicationFabrics(resourceGroupName: string, resourceName: string, fabricName: string, options?: ReplicationLogicalNetworksListByReplicationFabricsOptionalParams): PagedAsyncIterableIterator; } // @public @@ -4721,27 +5129,27 @@ export type ReplicationLogicalNetworksListByReplicationFabricsResponse = Logical // @public export interface ReplicationMigrationItems { - beginCreate(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, input: EnableMigrationInput, options?: ReplicationMigrationItemsCreateOptionalParams): Promise, ReplicationMigrationItemsCreateResponse>>; - beginCreateAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, input: EnableMigrationInput, options?: ReplicationMigrationItemsCreateOptionalParams): Promise; - beginDelete(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, options?: ReplicationMigrationItemsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, options?: ReplicationMigrationItemsDeleteOptionalParams): Promise; - beginMigrate(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, migrateInput: MigrateInput, options?: ReplicationMigrationItemsMigrateOptionalParams): Promise, ReplicationMigrationItemsMigrateResponse>>; - beginMigrateAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, migrateInput: MigrateInput, options?: ReplicationMigrationItemsMigrateOptionalParams): Promise; - beginPauseReplication(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, pauseReplicationInput: PauseReplicationInput, options?: ReplicationMigrationItemsPauseReplicationOptionalParams): Promise, ReplicationMigrationItemsPauseReplicationResponse>>; - beginPauseReplicationAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, pauseReplicationInput: PauseReplicationInput, options?: ReplicationMigrationItemsPauseReplicationOptionalParams): Promise; - beginResumeReplication(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, resumeReplicationInput: ResumeReplicationInput, options?: ReplicationMigrationItemsResumeReplicationOptionalParams): Promise, ReplicationMigrationItemsResumeReplicationResponse>>; - beginResumeReplicationAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, resumeReplicationInput: ResumeReplicationInput, options?: ReplicationMigrationItemsResumeReplicationOptionalParams): Promise; - beginResync(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, input: ResyncInput, options?: ReplicationMigrationItemsResyncOptionalParams): Promise, ReplicationMigrationItemsResyncResponse>>; - beginResyncAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, input: ResyncInput, options?: ReplicationMigrationItemsResyncOptionalParams): Promise; - beginTestMigrate(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, testMigrateInput: TestMigrateInput, options?: ReplicationMigrationItemsTestMigrateOptionalParams): Promise, ReplicationMigrationItemsTestMigrateResponse>>; - beginTestMigrateAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, testMigrateInput: TestMigrateInput, options?: ReplicationMigrationItemsTestMigrateOptionalParams): Promise; - beginTestMigrateCleanup(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, testMigrateCleanupInput: TestMigrateCleanupInput, options?: ReplicationMigrationItemsTestMigrateCleanupOptionalParams): Promise, ReplicationMigrationItemsTestMigrateCleanupResponse>>; - beginTestMigrateCleanupAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, testMigrateCleanupInput: TestMigrateCleanupInput, options?: ReplicationMigrationItemsTestMigrateCleanupOptionalParams): Promise; - beginUpdate(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, input: UpdateMigrationItemInput, options?: ReplicationMigrationItemsUpdateOptionalParams): Promise, ReplicationMigrationItemsUpdateResponse>>; - beginUpdateAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, input: UpdateMigrationItemInput, options?: ReplicationMigrationItemsUpdateOptionalParams): Promise; - get(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, options?: ReplicationMigrationItemsGetOptionalParams): Promise; - list(resourceName: string, resourceGroupName: string, options?: ReplicationMigrationItemsListOptionalParams): PagedAsyncIterableIterator; - listByReplicationProtectionContainers(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, options?: ReplicationMigrationItemsListByReplicationProtectionContainersOptionalParams): PagedAsyncIterableIterator; + beginCreate(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, input: EnableMigrationInput, options?: ReplicationMigrationItemsCreateOptionalParams): Promise, ReplicationMigrationItemsCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, input: EnableMigrationInput, options?: ReplicationMigrationItemsCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, options?: ReplicationMigrationItemsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, options?: ReplicationMigrationItemsDeleteOptionalParams): Promise; + beginMigrate(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, migrateInput: MigrateInput, options?: ReplicationMigrationItemsMigrateOptionalParams): Promise, ReplicationMigrationItemsMigrateResponse>>; + beginMigrateAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, migrateInput: MigrateInput, options?: ReplicationMigrationItemsMigrateOptionalParams): Promise; + beginPauseReplication(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, pauseReplicationInput: PauseReplicationInput, options?: ReplicationMigrationItemsPauseReplicationOptionalParams): Promise, ReplicationMigrationItemsPauseReplicationResponse>>; + beginPauseReplicationAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, pauseReplicationInput: PauseReplicationInput, options?: ReplicationMigrationItemsPauseReplicationOptionalParams): Promise; + beginResumeReplication(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, resumeReplicationInput: ResumeReplicationInput, options?: ReplicationMigrationItemsResumeReplicationOptionalParams): Promise, ReplicationMigrationItemsResumeReplicationResponse>>; + beginResumeReplicationAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, resumeReplicationInput: ResumeReplicationInput, options?: ReplicationMigrationItemsResumeReplicationOptionalParams): Promise; + beginResync(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, input: ResyncInput, options?: ReplicationMigrationItemsResyncOptionalParams): Promise, ReplicationMigrationItemsResyncResponse>>; + beginResyncAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, input: ResyncInput, options?: ReplicationMigrationItemsResyncOptionalParams): Promise; + beginTestMigrate(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, testMigrateInput: TestMigrateInput, options?: ReplicationMigrationItemsTestMigrateOptionalParams): Promise, ReplicationMigrationItemsTestMigrateResponse>>; + beginTestMigrateAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, testMigrateInput: TestMigrateInput, options?: ReplicationMigrationItemsTestMigrateOptionalParams): Promise; + beginTestMigrateCleanup(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, testMigrateCleanupInput: TestMigrateCleanupInput, options?: ReplicationMigrationItemsTestMigrateCleanupOptionalParams): Promise, ReplicationMigrationItemsTestMigrateCleanupResponse>>; + beginTestMigrateCleanupAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, testMigrateCleanupInput: TestMigrateCleanupInput, options?: ReplicationMigrationItemsTestMigrateCleanupOptionalParams): Promise; + beginUpdate(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, input: UpdateMigrationItemInput, options?: ReplicationMigrationItemsUpdateOptionalParams): Promise, ReplicationMigrationItemsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, input: UpdateMigrationItemInput, options?: ReplicationMigrationItemsUpdateOptionalParams): Promise; + get(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, options?: ReplicationMigrationItemsGetOptionalParams): Promise; + list(resourceGroupName: string, resourceName: string, options?: ReplicationMigrationItemsListOptionalParams): PagedAsyncIterableIterator; + listByReplicationProtectionContainers(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationMigrationItemsListByReplicationProtectionContainersOptionalParams): PagedAsyncIterableIterator; } // @public @@ -4866,15 +5274,15 @@ export type ReplicationMigrationItemsUpdateResponse = MigrationItem; // @public export interface ReplicationNetworkMappings { - beginCreate(resourceName: string, resourceGroupName: string, fabricName: string, networkName: string, networkMappingName: string, input: CreateNetworkMappingInput, options?: ReplicationNetworkMappingsCreateOptionalParams): Promise, ReplicationNetworkMappingsCreateResponse>>; - beginCreateAndWait(resourceName: string, resourceGroupName: string, fabricName: string, networkName: string, networkMappingName: string, input: CreateNetworkMappingInput, options?: ReplicationNetworkMappingsCreateOptionalParams): Promise; - beginDelete(resourceName: string, resourceGroupName: string, fabricName: string, networkName: string, networkMappingName: string, options?: ReplicationNetworkMappingsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceName: string, resourceGroupName: string, fabricName: string, networkName: string, networkMappingName: string, options?: ReplicationNetworkMappingsDeleteOptionalParams): Promise; - beginUpdate(resourceName: string, resourceGroupName: string, fabricName: string, networkName: string, networkMappingName: string, input: UpdateNetworkMappingInput, options?: ReplicationNetworkMappingsUpdateOptionalParams): Promise, ReplicationNetworkMappingsUpdateResponse>>; - beginUpdateAndWait(resourceName: string, resourceGroupName: string, fabricName: string, networkName: string, networkMappingName: string, input: UpdateNetworkMappingInput, options?: ReplicationNetworkMappingsUpdateOptionalParams): Promise; - get(resourceName: string, resourceGroupName: string, fabricName: string, networkName: string, networkMappingName: string, options?: ReplicationNetworkMappingsGetOptionalParams): Promise; - list(resourceName: string, resourceGroupName: string, options?: ReplicationNetworkMappingsListOptionalParams): PagedAsyncIterableIterator; - listByReplicationNetworks(resourceName: string, resourceGroupName: string, fabricName: string, networkName: string, options?: ReplicationNetworkMappingsListByReplicationNetworksOptionalParams): PagedAsyncIterableIterator; + beginCreate(resourceGroupName: string, resourceName: string, fabricName: string, networkName: string, networkMappingName: string, input: CreateNetworkMappingInput, options?: ReplicationNetworkMappingsCreateOptionalParams): Promise, ReplicationNetworkMappingsCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, resourceName: string, fabricName: string, networkName: string, networkMappingName: string, input: CreateNetworkMappingInput, options?: ReplicationNetworkMappingsCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, resourceName: string, fabricName: string, networkName: string, networkMappingName: string, options?: ReplicationNetworkMappingsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, resourceName: string, fabricName: string, networkName: string, networkMappingName: string, options?: ReplicationNetworkMappingsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, resourceName: string, fabricName: string, networkName: string, networkMappingName: string, input: UpdateNetworkMappingInput, options?: ReplicationNetworkMappingsUpdateOptionalParams): Promise, ReplicationNetworkMappingsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, resourceName: string, fabricName: string, networkName: string, networkMappingName: string, input: UpdateNetworkMappingInput, options?: ReplicationNetworkMappingsUpdateOptionalParams): Promise; + get(resourceGroupName: string, resourceName: string, fabricName: string, networkName: string, networkMappingName: string, options?: ReplicationNetworkMappingsGetOptionalParams): Promise; + list(resourceGroupName: string, resourceName: string, options?: ReplicationNetworkMappingsListOptionalParams): PagedAsyncIterableIterator; + listByReplicationNetworks(resourceGroupName: string, resourceName: string, fabricName: string, networkName: string, options?: ReplicationNetworkMappingsListByReplicationNetworksOptionalParams): PagedAsyncIterableIterator; } // @public @@ -4938,9 +5346,9 @@ export type ReplicationNetworkMappingsUpdateResponse = NetworkMapping; // @public export interface ReplicationNetworks { - get(resourceName: string, resourceGroupName: string, fabricName: string, networkName: string, options?: ReplicationNetworksGetOptionalParams): Promise; - list(resourceName: string, resourceGroupName: string, options?: ReplicationNetworksListOptionalParams): PagedAsyncIterableIterator; - listByReplicationFabrics(resourceName: string, resourceGroupName: string, fabricName: string, options?: ReplicationNetworksListByReplicationFabricsOptionalParams): PagedAsyncIterableIterator; + get(resourceGroupName: string, resourceName: string, fabricName: string, networkName: string, options?: ReplicationNetworksGetOptionalParams): Promise; + list(resourceGroupName: string, resourceName: string, options?: ReplicationNetworksListOptionalParams): PagedAsyncIterableIterator; + listByReplicationFabrics(resourceGroupName: string, resourceName: string, fabricName: string, options?: ReplicationNetworksListByReplicationFabricsOptionalParams): PagedAsyncIterableIterator; } // @public @@ -4980,14 +5388,14 @@ export type ReplicationNetworksListResponse = NetworkCollection; // @public export interface ReplicationPolicies { - beginCreate(resourceName: string, resourceGroupName: string, policyName: string, input: CreatePolicyInput, options?: ReplicationPoliciesCreateOptionalParams): Promise, ReplicationPoliciesCreateResponse>>; - beginCreateAndWait(resourceName: string, resourceGroupName: string, policyName: string, input: CreatePolicyInput, options?: ReplicationPoliciesCreateOptionalParams): Promise; - beginDelete(resourceName: string, resourceGroupName: string, policyName: string, options?: ReplicationPoliciesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceName: string, resourceGroupName: string, policyName: string, options?: ReplicationPoliciesDeleteOptionalParams): Promise; - beginUpdate(resourceName: string, resourceGroupName: string, policyName: string, input: UpdatePolicyInput, options?: ReplicationPoliciesUpdateOptionalParams): Promise, ReplicationPoliciesUpdateResponse>>; - beginUpdateAndWait(resourceName: string, resourceGroupName: string, policyName: string, input: UpdatePolicyInput, options?: ReplicationPoliciesUpdateOptionalParams): Promise; - get(resourceName: string, resourceGroupName: string, policyName: string, options?: ReplicationPoliciesGetOptionalParams): Promise; - list(resourceName: string, resourceGroupName: string, options?: ReplicationPoliciesListOptionalParams): PagedAsyncIterableIterator; + beginCreate(resourceGroupName: string, resourceName: string, policyName: string, input: CreatePolicyInput, options?: ReplicationPoliciesCreateOptionalParams): Promise, ReplicationPoliciesCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, resourceName: string, policyName: string, input: CreatePolicyInput, options?: ReplicationPoliciesCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, resourceName: string, policyName: string, options?: ReplicationPoliciesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, resourceName: string, policyName: string, options?: ReplicationPoliciesDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, resourceName: string, policyName: string, input: UpdatePolicyInput, options?: ReplicationPoliciesUpdateOptionalParams): Promise, ReplicationPoliciesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, resourceName: string, policyName: string, input: UpdatePolicyInput, options?: ReplicationPoliciesUpdateOptionalParams): Promise; + get(resourceGroupName: string, resourceName: string, policyName: string, options?: ReplicationPoliciesGetOptionalParams): Promise; + list(resourceGroupName: string, resourceName: string, options?: ReplicationPoliciesListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -5037,8 +5445,8 @@ export type ReplicationPoliciesUpdateResponse = Policy; // @public export interface ReplicationProtectableItems { - get(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, protectableItemName: string, options?: ReplicationProtectableItemsGetOptionalParams): Promise; - listByReplicationProtectionContainers(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectableItemsListByReplicationProtectionContainersOptionalParams): PagedAsyncIterableIterator; + get(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, protectableItemName: string, options?: ReplicationProtectableItemsGetOptionalParams): Promise; + listByReplicationProtectionContainers(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectableItemsListByReplicationProtectionContainersOptionalParams): PagedAsyncIterableIterator; } // @public @@ -5115,47 +5523,47 @@ export interface ReplicationProtectedItemProperties { // @public export interface ReplicationProtectedItems { - beginAddDisks(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, addDisksInput: AddDisksInput, options?: ReplicationProtectedItemsAddDisksOptionalParams): Promise, ReplicationProtectedItemsAddDisksResponse>>; - beginAddDisksAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, addDisksInput: AddDisksInput, options?: ReplicationProtectedItemsAddDisksOptionalParams): Promise; - beginApplyRecoveryPoint(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, applyRecoveryPointInput: ApplyRecoveryPointInput, options?: ReplicationProtectedItemsApplyRecoveryPointOptionalParams): Promise, ReplicationProtectedItemsApplyRecoveryPointResponse>>; - beginApplyRecoveryPointAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, applyRecoveryPointInput: ApplyRecoveryPointInput, options?: ReplicationProtectedItemsApplyRecoveryPointOptionalParams): Promise; - beginCreate(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, input: EnableProtectionInput, options?: ReplicationProtectedItemsCreateOptionalParams): Promise, ReplicationProtectedItemsCreateResponse>>; - beginCreateAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, input: EnableProtectionInput, options?: ReplicationProtectedItemsCreateOptionalParams): Promise; - beginDelete(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, disableProtectionInput: DisableProtectionInput, options?: ReplicationProtectedItemsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, disableProtectionInput: DisableProtectionInput, options?: ReplicationProtectedItemsDeleteOptionalParams): Promise; - beginFailoverCancel(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: ReplicationProtectedItemsFailoverCancelOptionalParams): Promise, ReplicationProtectedItemsFailoverCancelResponse>>; - beginFailoverCancelAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: ReplicationProtectedItemsFailoverCancelOptionalParams): Promise; - beginFailoverCommit(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: ReplicationProtectedItemsFailoverCommitOptionalParams): Promise, ReplicationProtectedItemsFailoverCommitResponse>>; - beginFailoverCommitAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: ReplicationProtectedItemsFailoverCommitOptionalParams): Promise; - beginPlannedFailover(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, failoverInput: PlannedFailoverInput, options?: ReplicationProtectedItemsPlannedFailoverOptionalParams): Promise, ReplicationProtectedItemsPlannedFailoverResponse>>; - beginPlannedFailoverAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, failoverInput: PlannedFailoverInput, options?: ReplicationProtectedItemsPlannedFailoverOptionalParams): Promise; - beginPurge(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: ReplicationProtectedItemsPurgeOptionalParams): Promise, void>>; - beginPurgeAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: ReplicationProtectedItemsPurgeOptionalParams): Promise; - beginRemoveDisks(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, removeDisksInput: RemoveDisksInput, options?: ReplicationProtectedItemsRemoveDisksOptionalParams): Promise, ReplicationProtectedItemsRemoveDisksResponse>>; - beginRemoveDisksAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, removeDisksInput: RemoveDisksInput, options?: ReplicationProtectedItemsRemoveDisksOptionalParams): Promise; - beginRepairReplication(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: ReplicationProtectedItemsRepairReplicationOptionalParams): Promise, ReplicationProtectedItemsRepairReplicationResponse>>; - beginRepairReplicationAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: ReplicationProtectedItemsRepairReplicationOptionalParams): Promise; - beginReprotect(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, reprotectInput: ReverseReplicationInput, options?: ReplicationProtectedItemsReprotectOptionalParams): Promise, ReplicationProtectedItemsReprotectResponse>>; - beginReprotectAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, reprotectInput: ReverseReplicationInput, options?: ReplicationProtectedItemsReprotectOptionalParams): Promise; - beginResolveHealthErrors(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, resolveHealthInput: ResolveHealthInput, options?: ReplicationProtectedItemsResolveHealthErrorsOptionalParams): Promise, ReplicationProtectedItemsResolveHealthErrorsResponse>>; - beginResolveHealthErrorsAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, resolveHealthInput: ResolveHealthInput, options?: ReplicationProtectedItemsResolveHealthErrorsOptionalParams): Promise; - beginSwitchProvider(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, switchProviderInput: SwitchProviderInput, options?: ReplicationProtectedItemsSwitchProviderOptionalParams): Promise, ReplicationProtectedItemsSwitchProviderResponse>>; - beginSwitchProviderAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, switchProviderInput: SwitchProviderInput, options?: ReplicationProtectedItemsSwitchProviderOptionalParams): Promise; - beginTestFailover(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, testfailoverInput: TestFailoverInput, options?: ReplicationProtectedItemsTestFailoverOptionalParams): Promise, ReplicationProtectedItemsTestFailoverResponse>>; - beginTestFailoverAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, testfailoverInput: TestFailoverInput, options?: ReplicationProtectedItemsTestFailoverOptionalParams): Promise; - beginTestFailoverCleanup(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, cleanupInput: TestFailoverCleanupInput, options?: ReplicationProtectedItemsTestFailoverCleanupOptionalParams): Promise, ReplicationProtectedItemsTestFailoverCleanupResponse>>; - beginTestFailoverCleanupAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, cleanupInput: TestFailoverCleanupInput, options?: ReplicationProtectedItemsTestFailoverCleanupOptionalParams): Promise; - beginUnplannedFailover(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, failoverInput: UnplannedFailoverInput, options?: ReplicationProtectedItemsUnplannedFailoverOptionalParams): Promise, ReplicationProtectedItemsUnplannedFailoverResponse>>; - beginUnplannedFailoverAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, failoverInput: UnplannedFailoverInput, options?: ReplicationProtectedItemsUnplannedFailoverOptionalParams): Promise; - beginUpdate(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, updateProtectionInput: UpdateReplicationProtectedItemInput, options?: ReplicationProtectedItemsUpdateOptionalParams): Promise, ReplicationProtectedItemsUpdateResponse>>; - beginUpdateAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, updateProtectionInput: UpdateReplicationProtectedItemInput, options?: ReplicationProtectedItemsUpdateOptionalParams): Promise; - beginUpdateAppliance(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, applianceUpdateInput: UpdateApplianceForReplicationProtectedItemInput, options?: ReplicationProtectedItemsUpdateApplianceOptionalParams): Promise, ReplicationProtectedItemsUpdateApplianceResponse>>; - beginUpdateApplianceAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, applianceUpdateInput: UpdateApplianceForReplicationProtectedItemInput, options?: ReplicationProtectedItemsUpdateApplianceOptionalParams): Promise; - beginUpdateMobilityService(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, updateMobilityServiceRequest: UpdateMobilityServiceRequest, options?: ReplicationProtectedItemsUpdateMobilityServiceOptionalParams): Promise, ReplicationProtectedItemsUpdateMobilityServiceResponse>>; - beginUpdateMobilityServiceAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, updateMobilityServiceRequest: UpdateMobilityServiceRequest, options?: ReplicationProtectedItemsUpdateMobilityServiceOptionalParams): Promise; - get(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: ReplicationProtectedItemsGetOptionalParams): Promise; - list(resourceName: string, resourceGroupName: string, options?: ReplicationProtectedItemsListOptionalParams): PagedAsyncIterableIterator; - listByReplicationProtectionContainers(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectedItemsListByReplicationProtectionContainersOptionalParams): PagedAsyncIterableIterator; + beginAddDisks(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, addDisksInput: AddDisksInput, options?: ReplicationProtectedItemsAddDisksOptionalParams): Promise, ReplicationProtectedItemsAddDisksResponse>>; + beginAddDisksAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, addDisksInput: AddDisksInput, options?: ReplicationProtectedItemsAddDisksOptionalParams): Promise; + beginApplyRecoveryPoint(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, applyRecoveryPointInput: ApplyRecoveryPointInput, options?: ReplicationProtectedItemsApplyRecoveryPointOptionalParams): Promise, ReplicationProtectedItemsApplyRecoveryPointResponse>>; + beginApplyRecoveryPointAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, applyRecoveryPointInput: ApplyRecoveryPointInput, options?: ReplicationProtectedItemsApplyRecoveryPointOptionalParams): Promise; + beginCreate(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, input: EnableProtectionInput, options?: ReplicationProtectedItemsCreateOptionalParams): Promise, ReplicationProtectedItemsCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, input: EnableProtectionInput, options?: ReplicationProtectedItemsCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, disableProtectionInput: DisableProtectionInput, options?: ReplicationProtectedItemsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, disableProtectionInput: DisableProtectionInput, options?: ReplicationProtectedItemsDeleteOptionalParams): Promise; + beginFailoverCancel(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: ReplicationProtectedItemsFailoverCancelOptionalParams): Promise, ReplicationProtectedItemsFailoverCancelResponse>>; + beginFailoverCancelAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: ReplicationProtectedItemsFailoverCancelOptionalParams): Promise; + beginFailoverCommit(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: ReplicationProtectedItemsFailoverCommitOptionalParams): Promise, ReplicationProtectedItemsFailoverCommitResponse>>; + beginFailoverCommitAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: ReplicationProtectedItemsFailoverCommitOptionalParams): Promise; + beginPlannedFailover(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, failoverInput: PlannedFailoverInput, options?: ReplicationProtectedItemsPlannedFailoverOptionalParams): Promise, ReplicationProtectedItemsPlannedFailoverResponse>>; + beginPlannedFailoverAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, failoverInput: PlannedFailoverInput, options?: ReplicationProtectedItemsPlannedFailoverOptionalParams): Promise; + beginPurge(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: ReplicationProtectedItemsPurgeOptionalParams): Promise, void>>; + beginPurgeAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: ReplicationProtectedItemsPurgeOptionalParams): Promise; + beginRemoveDisks(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, removeDisksInput: RemoveDisksInput, options?: ReplicationProtectedItemsRemoveDisksOptionalParams): Promise, ReplicationProtectedItemsRemoveDisksResponse>>; + beginRemoveDisksAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, removeDisksInput: RemoveDisksInput, options?: ReplicationProtectedItemsRemoveDisksOptionalParams): Promise; + beginRepairReplication(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: ReplicationProtectedItemsRepairReplicationOptionalParams): Promise, ReplicationProtectedItemsRepairReplicationResponse>>; + beginRepairReplicationAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: ReplicationProtectedItemsRepairReplicationOptionalParams): Promise; + beginReprotect(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, reprotectInput: ReverseReplicationInput, options?: ReplicationProtectedItemsReprotectOptionalParams): Promise, ReplicationProtectedItemsReprotectResponse>>; + beginReprotectAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, reprotectInput: ReverseReplicationInput, options?: ReplicationProtectedItemsReprotectOptionalParams): Promise; + beginResolveHealthErrors(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, resolveHealthInput: ResolveHealthInput, options?: ReplicationProtectedItemsResolveHealthErrorsOptionalParams): Promise, ReplicationProtectedItemsResolveHealthErrorsResponse>>; + beginResolveHealthErrorsAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, resolveHealthInput: ResolveHealthInput, options?: ReplicationProtectedItemsResolveHealthErrorsOptionalParams): Promise; + beginSwitchProvider(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, switchProviderInput: SwitchProviderInput, options?: ReplicationProtectedItemsSwitchProviderOptionalParams): Promise, ReplicationProtectedItemsSwitchProviderResponse>>; + beginSwitchProviderAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, switchProviderInput: SwitchProviderInput, options?: ReplicationProtectedItemsSwitchProviderOptionalParams): Promise; + beginTestFailover(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, testfailoverInput: TestFailoverInput, options?: ReplicationProtectedItemsTestFailoverOptionalParams): Promise, ReplicationProtectedItemsTestFailoverResponse>>; + beginTestFailoverAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, testfailoverInput: TestFailoverInput, options?: ReplicationProtectedItemsTestFailoverOptionalParams): Promise; + beginTestFailoverCleanup(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, cleanupInput: TestFailoverCleanupInput, options?: ReplicationProtectedItemsTestFailoverCleanupOptionalParams): Promise, ReplicationProtectedItemsTestFailoverCleanupResponse>>; + beginTestFailoverCleanupAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, cleanupInput: TestFailoverCleanupInput, options?: ReplicationProtectedItemsTestFailoverCleanupOptionalParams): Promise; + beginUnplannedFailover(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, failoverInput: UnplannedFailoverInput, options?: ReplicationProtectedItemsUnplannedFailoverOptionalParams): Promise, ReplicationProtectedItemsUnplannedFailoverResponse>>; + beginUnplannedFailoverAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, failoverInput: UnplannedFailoverInput, options?: ReplicationProtectedItemsUnplannedFailoverOptionalParams): Promise; + beginUpdate(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, updateProtectionInput: UpdateReplicationProtectedItemInput, options?: ReplicationProtectedItemsUpdateOptionalParams): Promise, ReplicationProtectedItemsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, updateProtectionInput: UpdateReplicationProtectedItemInput, options?: ReplicationProtectedItemsUpdateOptionalParams): Promise; + beginUpdateAppliance(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, applianceUpdateInput: UpdateApplianceForReplicationProtectedItemInput, options?: ReplicationProtectedItemsUpdateApplianceOptionalParams): Promise, ReplicationProtectedItemsUpdateApplianceResponse>>; + beginUpdateApplianceAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, applianceUpdateInput: UpdateApplianceForReplicationProtectedItemInput, options?: ReplicationProtectedItemsUpdateApplianceOptionalParams): Promise; + beginUpdateMobilityService(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, updateMobilityServiceRequest: UpdateMobilityServiceRequest, options?: ReplicationProtectedItemsUpdateMobilityServiceOptionalParams): Promise, ReplicationProtectedItemsUpdateMobilityServiceResponse>>; + beginUpdateMobilityServiceAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, updateMobilityServiceRequest: UpdateMobilityServiceRequest, options?: ReplicationProtectedItemsUpdateMobilityServiceOptionalParams): Promise; + get(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: ReplicationProtectedItemsGetOptionalParams): Promise; + list(resourceGroupName: string, resourceName: string, options?: ReplicationProtectedItemsListOptionalParams): PagedAsyncIterableIterator; + listByReplicationProtectionContainers(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectedItemsListByReplicationProtectionContainersOptionalParams): PagedAsyncIterableIterator; } // @public @@ -5366,19 +5774,287 @@ export interface ReplicationProtectedItemsUpdateOptionalParams extends coreClien // @public export type ReplicationProtectedItemsUpdateResponse = ReplicationProtectedItem; +// @public +export interface ReplicationProtectionCluster { + readonly id?: string; + readonly name?: string; + properties?: ReplicationProtectionClusterProperties; + readonly type?: string; +} + +// @public +export interface ReplicationProtectionClusterCollection { + nextLink?: string; + value?: ReplicationProtectionCluster[]; +} + +// @public +export interface ReplicationProtectionClusterProperties { + activeLocation?: string; + agentClusterId?: string; + allowedOperations?: string[]; + areAllClusterNodesRegistered?: boolean; + clusterFqdn?: string; + clusterNodeFqdns?: string[]; + clusterProtectedItemIds?: string[]; + clusterRegisteredNodes?: RegisteredClusterNodes[]; + currentScenario?: CurrentScenarioDetails; + healthErrors?: HealthError[]; + lastSuccessfulFailoverTime?: Date; + lastSuccessfulTestFailoverTime?: Date; + policyFriendlyName?: string; + policyId?: string; + primaryFabricFriendlyName?: string; + primaryFabricProvider?: string; + primaryProtectionContainerFriendlyName?: string; + protectionClusterType?: string; + protectionState?: string; + protectionStateDescription?: string; + providerSpecificDetails?: ReplicationClusterProviderSpecificSettingsUnion; + readonly provisioningState?: string; + recoveryContainerId?: string; + recoveryFabricFriendlyName?: string; + recoveryFabricId?: string; + recoveryProtectionContainerFriendlyName?: string; + replicationHealth?: string; + sharedDiskProperties?: SharedDiskReplicationItemProperties; + testFailoverState?: string; + testFailoverStateDescription?: string; +} + +// @public +export interface ReplicationProtectionClusters { + beginApplyRecoveryPoint(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicationProtectionClusterName: string, applyClusterRecoveryPointInput: ApplyClusterRecoveryPointInput, options?: ReplicationProtectionClustersApplyRecoveryPointOptionalParams): Promise, ReplicationProtectionClustersApplyRecoveryPointResponse>>; + beginApplyRecoveryPointAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicationProtectionClusterName: string, applyClusterRecoveryPointInput: ApplyClusterRecoveryPointInput, options?: ReplicationProtectionClustersApplyRecoveryPointOptionalParams): Promise; + beginCreate(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicationProtectionClusterName: string, replicationProtectionCluster: ReplicationProtectionCluster, options?: ReplicationProtectionClustersCreateOptionalParams): Promise, ReplicationProtectionClustersCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicationProtectionClusterName: string, replicationProtectionCluster: ReplicationProtectionCluster, options?: ReplicationProtectionClustersCreateOptionalParams): Promise; + beginFailoverCommit(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicationProtectionClusterName: string, options?: ReplicationProtectionClustersFailoverCommitOptionalParams): Promise, ReplicationProtectionClustersFailoverCommitResponse>>; + beginFailoverCommitAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicationProtectionClusterName: string, options?: ReplicationProtectionClustersFailoverCommitOptionalParams): Promise; + beginPurge(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicationProtectionClusterName: string, options?: ReplicationProtectionClustersPurgeOptionalParams): Promise, ReplicationProtectionClustersPurgeResponse>>; + beginPurgeAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicationProtectionClusterName: string, options?: ReplicationProtectionClustersPurgeOptionalParams): Promise; + beginRepairReplication(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicationProtectionClusterName: string, options?: ReplicationProtectionClustersRepairReplicationOptionalParams): Promise, ReplicationProtectionClustersRepairReplicationResponse>>; + beginRepairReplicationAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicationProtectionClusterName: string, options?: ReplicationProtectionClustersRepairReplicationOptionalParams): Promise; + beginTestFailover(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicationProtectionClusterName: string, failoverInput: ClusterTestFailoverInput, options?: ReplicationProtectionClustersTestFailoverOptionalParams): Promise, ReplicationProtectionClustersTestFailoverResponse>>; + beginTestFailoverAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicationProtectionClusterName: string, failoverInput: ClusterTestFailoverInput, options?: ReplicationProtectionClustersTestFailoverOptionalParams): Promise; + beginTestFailoverCleanup(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicationProtectionClusterName: string, cleanupInput: ClusterTestFailoverCleanupInput, options?: ReplicationProtectionClustersTestFailoverCleanupOptionalParams): Promise, ReplicationProtectionClustersTestFailoverCleanupResponse>>; + beginTestFailoverCleanupAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicationProtectionClusterName: string, cleanupInput: ClusterTestFailoverCleanupInput, options?: ReplicationProtectionClustersTestFailoverCleanupOptionalParams): Promise; + beginUnplannedFailover(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicationProtectionClusterName: string, failoverInput: ClusterUnplannedFailoverInput, options?: ReplicationProtectionClustersUnplannedFailoverOptionalParams): Promise, ReplicationProtectionClustersUnplannedFailoverResponse>>; + beginUnplannedFailoverAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicationProtectionClusterName: string, failoverInput: ClusterUnplannedFailoverInput, options?: ReplicationProtectionClustersUnplannedFailoverOptionalParams): Promise; + get(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicationProtectionClusterName: string, options?: ReplicationProtectionClustersGetOptionalParams): Promise; + getOperationResults(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicationProtectionClusterName: string, jobId: string, options?: ReplicationProtectionClustersGetOperationResultsOptionalParams): Promise; + list(resourceGroupName: string, resourceName: string, options?: ReplicationProtectionClustersListOptionalParams): PagedAsyncIterableIterator; + listByReplicationProtectionContainers(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectionClustersListByReplicationProtectionContainersOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ReplicationProtectionClustersApplyRecoveryPointHeaders { + // (undocumented) + azureAsyncOperation?: string; + // (undocumented) + location?: string; + // (undocumented) + retryAfter?: string; +} + +// @public +export interface ReplicationProtectionClustersApplyRecoveryPointOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ReplicationProtectionClustersApplyRecoveryPointResponse = ReplicationProtectionCluster; + +// @public +export interface ReplicationProtectionClustersCreateHeaders { + // (undocumented) + azureAsyncOperation?: string; + // (undocumented) + location?: string; + // (undocumented) + retryAfter?: string; +} + +// @public +export interface ReplicationProtectionClustersCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ReplicationProtectionClustersCreateResponse = ReplicationProtectionCluster; + +// @public +export interface ReplicationProtectionClustersFailoverCommitHeaders { + // (undocumented) + azureAsyncOperation?: string; + // (undocumented) + location?: string; + // (undocumented) + retryAfter?: string; +} + +// @public +export interface ReplicationProtectionClustersFailoverCommitOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ReplicationProtectionClustersFailoverCommitResponse = ReplicationProtectionCluster; + +// @public +export interface ReplicationProtectionClustersGetOperationResultsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ReplicationProtectionClustersGetOperationResultsResponse = ReplicationProtectionCluster; + +// @public +export interface ReplicationProtectionClustersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ReplicationProtectionClustersGetResponse = ReplicationProtectionCluster; + +// @public +export interface ReplicationProtectionClustersListByReplicationProtectionContainersNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ReplicationProtectionClustersListByReplicationProtectionContainersNextResponse = ReplicationProtectionClusterCollection; + +// @public +export interface ReplicationProtectionClustersListByReplicationProtectionContainersOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ReplicationProtectionClustersListByReplicationProtectionContainersResponse = ReplicationProtectionClusterCollection; + +// @public +export interface ReplicationProtectionClustersListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ReplicationProtectionClustersListNextResponse = ReplicationProtectionClusterCollection; + +// @public +export interface ReplicationProtectionClustersListOptionalParams extends coreClient.OperationOptions { + filter?: string; + skipToken?: string; +} + +// @public +export type ReplicationProtectionClustersListResponse = ReplicationProtectionClusterCollection; + +// @public +export interface ReplicationProtectionClustersPurgeHeaders { + // (undocumented) + azureAsyncOperation?: string; + // (undocumented) + location?: string; + // (undocumented) + retryAfter?: string; +} + +// @public +export interface ReplicationProtectionClustersPurgeOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ReplicationProtectionClustersPurgeResponse = ReplicationProtectionClustersPurgeHeaders; + +// @public +export interface ReplicationProtectionClustersRepairReplicationHeaders { + // (undocumented) + azureAsyncOperation?: string; + // (undocumented) + location?: string; + // (undocumented) + retryAfter?: string; +} + +// @public +export interface ReplicationProtectionClustersRepairReplicationOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ReplicationProtectionClustersRepairReplicationResponse = ReplicationProtectionCluster; + +// @public +export interface ReplicationProtectionClustersTestFailoverCleanupHeaders { + // (undocumented) + azureAsyncOperation?: string; + // (undocumented) + location?: string; + // (undocumented) + retryAfter?: string; +} + +// @public +export interface ReplicationProtectionClustersTestFailoverCleanupOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ReplicationProtectionClustersTestFailoverCleanupResponse = ReplicationProtectionCluster; + +// @public +export interface ReplicationProtectionClustersTestFailoverHeaders { + // (undocumented) + azureAsyncOperation?: string; + // (undocumented) + location?: string; + // (undocumented) + retryAfter?: string; +} + +// @public +export interface ReplicationProtectionClustersTestFailoverOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ReplicationProtectionClustersTestFailoverResponse = ReplicationProtectionCluster; + +// @public +export interface ReplicationProtectionClustersUnplannedFailoverHeaders { + // (undocumented) + azureAsyncOperation?: string; + // (undocumented) + location?: string; + // (undocumented) + retryAfter?: string; +} + +// @public +export interface ReplicationProtectionClustersUnplannedFailoverOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ReplicationProtectionClustersUnplannedFailoverResponse = ReplicationProtectionCluster; + // @public export interface ReplicationProtectionContainerMappings { - beginCreate(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, mappingName: string, creationInput: CreateProtectionContainerMappingInput, options?: ReplicationProtectionContainerMappingsCreateOptionalParams): Promise, ReplicationProtectionContainerMappingsCreateResponse>>; - beginCreateAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, mappingName: string, creationInput: CreateProtectionContainerMappingInput, options?: ReplicationProtectionContainerMappingsCreateOptionalParams): Promise; - beginDelete(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, mappingName: string, removalInput: RemoveProtectionContainerMappingInput, options?: ReplicationProtectionContainerMappingsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, mappingName: string, removalInput: RemoveProtectionContainerMappingInput, options?: ReplicationProtectionContainerMappingsDeleteOptionalParams): Promise; - beginPurge(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, mappingName: string, options?: ReplicationProtectionContainerMappingsPurgeOptionalParams): Promise, void>>; - beginPurgeAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, mappingName: string, options?: ReplicationProtectionContainerMappingsPurgeOptionalParams): Promise; - beginUpdate(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, mappingName: string, updateInput: UpdateProtectionContainerMappingInput, options?: ReplicationProtectionContainerMappingsUpdateOptionalParams): Promise, ReplicationProtectionContainerMappingsUpdateResponse>>; - beginUpdateAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, mappingName: string, updateInput: UpdateProtectionContainerMappingInput, options?: ReplicationProtectionContainerMappingsUpdateOptionalParams): Promise; - get(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, mappingName: string, options?: ReplicationProtectionContainerMappingsGetOptionalParams): Promise; - list(resourceName: string, resourceGroupName: string, options?: ReplicationProtectionContainerMappingsListOptionalParams): PagedAsyncIterableIterator; - listByReplicationProtectionContainers(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectionContainerMappingsListByReplicationProtectionContainersOptionalParams): PagedAsyncIterableIterator; + beginCreate(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, creationInput: CreateProtectionContainerMappingInput, options?: ReplicationProtectionContainerMappingsCreateOptionalParams): Promise, ReplicationProtectionContainerMappingsCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, creationInput: CreateProtectionContainerMappingInput, options?: ReplicationProtectionContainerMappingsCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, removalInput: RemoveProtectionContainerMappingInput, options?: ReplicationProtectionContainerMappingsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, removalInput: RemoveProtectionContainerMappingInput, options?: ReplicationProtectionContainerMappingsDeleteOptionalParams): Promise; + beginPurge(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, options?: ReplicationProtectionContainerMappingsPurgeOptionalParams): Promise, void>>; + beginPurgeAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, options?: ReplicationProtectionContainerMappingsPurgeOptionalParams): Promise; + beginUpdate(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, updateInput: UpdateProtectionContainerMappingInput, options?: ReplicationProtectionContainerMappingsUpdateOptionalParams): Promise, ReplicationProtectionContainerMappingsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, updateInput: UpdateProtectionContainerMappingInput, options?: ReplicationProtectionContainerMappingsUpdateOptionalParams): Promise; + get(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, options?: ReplicationProtectionContainerMappingsGetOptionalParams): Promise; + list(resourceGroupName: string, resourceName: string, options?: ReplicationProtectionContainerMappingsListOptionalParams): PagedAsyncIterableIterator; + listByReplicationProtectionContainers(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectionContainerMappingsListByReplicationProtectionContainersOptionalParams): PagedAsyncIterableIterator; } // @public @@ -5448,17 +6124,19 @@ export type ReplicationProtectionContainerMappingsUpdateResponse = ProtectionCon // @public export interface ReplicationProtectionContainers { - beginCreate(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, creationInput: CreateProtectionContainerInput, options?: ReplicationProtectionContainersCreateOptionalParams): Promise, ReplicationProtectionContainersCreateResponse>>; - beginCreateAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, creationInput: CreateProtectionContainerInput, options?: ReplicationProtectionContainersCreateOptionalParams): Promise; - beginDelete(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectionContainersDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectionContainersDeleteOptionalParams): Promise; - beginDiscoverProtectableItem(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, discoverProtectableItemRequest: DiscoverProtectableItemRequest, options?: ReplicationProtectionContainersDiscoverProtectableItemOptionalParams): Promise, ReplicationProtectionContainersDiscoverProtectableItemResponse>>; - beginDiscoverProtectableItemAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, discoverProtectableItemRequest: DiscoverProtectableItemRequest, options?: ReplicationProtectionContainersDiscoverProtectableItemOptionalParams): Promise; - beginSwitchProtection(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, switchInput: SwitchProtectionInput, options?: ReplicationProtectionContainersSwitchProtectionOptionalParams): Promise, ReplicationProtectionContainersSwitchProtectionResponse>>; - beginSwitchProtectionAndWait(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, switchInput: SwitchProtectionInput, options?: ReplicationProtectionContainersSwitchProtectionOptionalParams): Promise; - get(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectionContainersGetOptionalParams): Promise; - list(resourceName: string, resourceGroupName: string, options?: ReplicationProtectionContainersListOptionalParams): PagedAsyncIterableIterator; - listByReplicationFabrics(resourceName: string, resourceGroupName: string, fabricName: string, options?: ReplicationProtectionContainersListByReplicationFabricsOptionalParams): PagedAsyncIterableIterator; + beginCreate(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, creationInput: CreateProtectionContainerInput, options?: ReplicationProtectionContainersCreateOptionalParams): Promise, ReplicationProtectionContainersCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, creationInput: CreateProtectionContainerInput, options?: ReplicationProtectionContainersCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectionContainersDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectionContainersDeleteOptionalParams): Promise; + beginDiscoverProtectableItem(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, discoverProtectableItemRequest: DiscoverProtectableItemRequest, options?: ReplicationProtectionContainersDiscoverProtectableItemOptionalParams): Promise, ReplicationProtectionContainersDiscoverProtectableItemResponse>>; + beginDiscoverProtectableItemAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, discoverProtectableItemRequest: DiscoverProtectableItemRequest, options?: ReplicationProtectionContainersDiscoverProtectableItemOptionalParams): Promise; + beginSwitchClusterProtection(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, switchInput: SwitchClusterProtectionInput, options?: ReplicationProtectionContainersSwitchClusterProtectionOptionalParams): Promise, ReplicationProtectionContainersSwitchClusterProtectionResponse>>; + beginSwitchClusterProtectionAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, switchInput: SwitchClusterProtectionInput, options?: ReplicationProtectionContainersSwitchClusterProtectionOptionalParams): Promise; + beginSwitchProtection(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, switchInput: SwitchProtectionInput, options?: ReplicationProtectionContainersSwitchProtectionOptionalParams): Promise, ReplicationProtectionContainersSwitchProtectionResponse>>; + beginSwitchProtectionAndWait(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, switchInput: SwitchProtectionInput, options?: ReplicationProtectionContainersSwitchProtectionOptionalParams): Promise; + get(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectionContainersGetOptionalParams): Promise; + list(resourceGroupName: string, resourceName: string, options?: ReplicationProtectionContainersListOptionalParams): PagedAsyncIterableIterator; + listByReplicationFabrics(resourceGroupName: string, resourceName: string, fabricName: string, options?: ReplicationProtectionContainersListByReplicationFabricsOptionalParams): PagedAsyncIterableIterator; } // @public @@ -5520,6 +6198,35 @@ export interface ReplicationProtectionContainersListOptionalParams extends coreC // @public export type ReplicationProtectionContainersListResponse = ProtectionContainerCollection; +// @public +export interface ReplicationProtectionContainersSwitchClusterProtectionHeaders { + // (undocumented) + azureAsyncOperation?: string; + // (undocumented) + location?: string; + // (undocumented) + retryAfter?: string; +} + +// @public +export interface ReplicationProtectionContainersSwitchClusterProtectionOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ReplicationProtectionContainersSwitchClusterProtectionResponse = ProtectionContainer; + +// @public +export interface ReplicationProtectionContainersSwitchProtectionHeaders { + // (undocumented) + azureAsyncOperation?: string; + // (undocumented) + location?: string; + // (undocumented) + retryAfter?: string; +} + // @public export interface ReplicationProtectionContainersSwitchProtectionOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -5560,9 +6267,9 @@ export type ReplicationProtectionIntentProviderSpecificSettingsUnion = Replicati // @public export interface ReplicationProtectionIntents { - create(resourceName: string, resourceGroupName: string, intentObjectName: string, input: CreateProtectionIntentInput, options?: ReplicationProtectionIntentsCreateOptionalParams): Promise; - get(resourceName: string, resourceGroupName: string, intentObjectName: string, options?: ReplicationProtectionIntentsGetOptionalParams): Promise; - list(resourceName: string, resourceGroupName: string, options?: ReplicationProtectionIntentsListOptionalParams): PagedAsyncIterableIterator; + create(resourceGroupName: string, resourceName: string, intentObjectName: string, input: CreateProtectionIntentInput, options?: ReplicationProtectionIntentsCreateOptionalParams): Promise; + get(resourceGroupName: string, resourceName: string, intentObjectName: string, options?: ReplicationProtectionIntentsGetOptionalParams): Promise; + list(resourceGroupName: string, resourceName: string, options?: ReplicationProtectionIntentsListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -5634,28 +6341,28 @@ export type ReplicationProviderSpecificUpdateContainerMappingInputUnion = Replic // @public export interface ReplicationRecoveryPlans { - beginCreate(resourceName: string, resourceGroupName: string, recoveryPlanName: string, input: CreateRecoveryPlanInput, options?: ReplicationRecoveryPlansCreateOptionalParams): Promise, ReplicationRecoveryPlansCreateResponse>>; - beginCreateAndWait(resourceName: string, resourceGroupName: string, recoveryPlanName: string, input: CreateRecoveryPlanInput, options?: ReplicationRecoveryPlansCreateOptionalParams): Promise; - beginDelete(resourceName: string, resourceGroupName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceName: string, resourceGroupName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansDeleteOptionalParams): Promise; - beginFailoverCancel(resourceName: string, resourceGroupName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansFailoverCancelOptionalParams): Promise, ReplicationRecoveryPlansFailoverCancelResponse>>; - beginFailoverCancelAndWait(resourceName: string, resourceGroupName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansFailoverCancelOptionalParams): Promise; - beginFailoverCommit(resourceName: string, resourceGroupName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansFailoverCommitOptionalParams): Promise, ReplicationRecoveryPlansFailoverCommitResponse>>; - beginFailoverCommitAndWait(resourceName: string, resourceGroupName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansFailoverCommitOptionalParams): Promise; - beginPlannedFailover(resourceName: string, resourceGroupName: string, recoveryPlanName: string, input: RecoveryPlanPlannedFailoverInput, options?: ReplicationRecoveryPlansPlannedFailoverOptionalParams): Promise, ReplicationRecoveryPlansPlannedFailoverResponse>>; - beginPlannedFailoverAndWait(resourceName: string, resourceGroupName: string, recoveryPlanName: string, input: RecoveryPlanPlannedFailoverInput, options?: ReplicationRecoveryPlansPlannedFailoverOptionalParams): Promise; - beginReprotect(resourceName: string, resourceGroupName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansReprotectOptionalParams): Promise, ReplicationRecoveryPlansReprotectResponse>>; - beginReprotectAndWait(resourceName: string, resourceGroupName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansReprotectOptionalParams): Promise; - beginTestFailover(resourceName: string, resourceGroupName: string, recoveryPlanName: string, input: RecoveryPlanTestFailoverInput, options?: ReplicationRecoveryPlansTestFailoverOptionalParams): Promise, ReplicationRecoveryPlansTestFailoverResponse>>; - beginTestFailoverAndWait(resourceName: string, resourceGroupName: string, recoveryPlanName: string, input: RecoveryPlanTestFailoverInput, options?: ReplicationRecoveryPlansTestFailoverOptionalParams): Promise; - beginTestFailoverCleanup(resourceName: string, resourceGroupName: string, recoveryPlanName: string, input: RecoveryPlanTestFailoverCleanupInput, options?: ReplicationRecoveryPlansTestFailoverCleanupOptionalParams): Promise, ReplicationRecoveryPlansTestFailoverCleanupResponse>>; - beginTestFailoverCleanupAndWait(resourceName: string, resourceGroupName: string, recoveryPlanName: string, input: RecoveryPlanTestFailoverCleanupInput, options?: ReplicationRecoveryPlansTestFailoverCleanupOptionalParams): Promise; - beginUnplannedFailover(resourceName: string, resourceGroupName: string, recoveryPlanName: string, input: RecoveryPlanUnplannedFailoverInput, options?: ReplicationRecoveryPlansUnplannedFailoverOptionalParams): Promise, ReplicationRecoveryPlansUnplannedFailoverResponse>>; - beginUnplannedFailoverAndWait(resourceName: string, resourceGroupName: string, recoveryPlanName: string, input: RecoveryPlanUnplannedFailoverInput, options?: ReplicationRecoveryPlansUnplannedFailoverOptionalParams): Promise; - beginUpdate(resourceName: string, resourceGroupName: string, recoveryPlanName: string, input: UpdateRecoveryPlanInput, options?: ReplicationRecoveryPlansUpdateOptionalParams): Promise, ReplicationRecoveryPlansUpdateResponse>>; - beginUpdateAndWait(resourceName: string, resourceGroupName: string, recoveryPlanName: string, input: UpdateRecoveryPlanInput, options?: ReplicationRecoveryPlansUpdateOptionalParams): Promise; - get(resourceName: string, resourceGroupName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansGetOptionalParams): Promise; - list(resourceName: string, resourceGroupName: string, options?: ReplicationRecoveryPlansListOptionalParams): PagedAsyncIterableIterator; + beginCreate(resourceGroupName: string, resourceName: string, recoveryPlanName: string, input: CreateRecoveryPlanInput, options?: ReplicationRecoveryPlansCreateOptionalParams): Promise, ReplicationRecoveryPlansCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, resourceName: string, recoveryPlanName: string, input: CreateRecoveryPlanInput, options?: ReplicationRecoveryPlansCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansDeleteOptionalParams): Promise; + beginFailoverCancel(resourceGroupName: string, resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansFailoverCancelOptionalParams): Promise, ReplicationRecoveryPlansFailoverCancelResponse>>; + beginFailoverCancelAndWait(resourceGroupName: string, resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansFailoverCancelOptionalParams): Promise; + beginFailoverCommit(resourceGroupName: string, resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansFailoverCommitOptionalParams): Promise, ReplicationRecoveryPlansFailoverCommitResponse>>; + beginFailoverCommitAndWait(resourceGroupName: string, resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansFailoverCommitOptionalParams): Promise; + beginPlannedFailover(resourceGroupName: string, resourceName: string, recoveryPlanName: string, input: RecoveryPlanPlannedFailoverInput, options?: ReplicationRecoveryPlansPlannedFailoverOptionalParams): Promise, ReplicationRecoveryPlansPlannedFailoverResponse>>; + beginPlannedFailoverAndWait(resourceGroupName: string, resourceName: string, recoveryPlanName: string, input: RecoveryPlanPlannedFailoverInput, options?: ReplicationRecoveryPlansPlannedFailoverOptionalParams): Promise; + beginReprotect(resourceGroupName: string, resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansReprotectOptionalParams): Promise, ReplicationRecoveryPlansReprotectResponse>>; + beginReprotectAndWait(resourceGroupName: string, resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansReprotectOptionalParams): Promise; + beginTestFailover(resourceGroupName: string, resourceName: string, recoveryPlanName: string, input: RecoveryPlanTestFailoverInput, options?: ReplicationRecoveryPlansTestFailoverOptionalParams): Promise, ReplicationRecoveryPlansTestFailoverResponse>>; + beginTestFailoverAndWait(resourceGroupName: string, resourceName: string, recoveryPlanName: string, input: RecoveryPlanTestFailoverInput, options?: ReplicationRecoveryPlansTestFailoverOptionalParams): Promise; + beginTestFailoverCleanup(resourceGroupName: string, resourceName: string, recoveryPlanName: string, input: RecoveryPlanTestFailoverCleanupInput, options?: ReplicationRecoveryPlansTestFailoverCleanupOptionalParams): Promise, ReplicationRecoveryPlansTestFailoverCleanupResponse>>; + beginTestFailoverCleanupAndWait(resourceGroupName: string, resourceName: string, recoveryPlanName: string, input: RecoveryPlanTestFailoverCleanupInput, options?: ReplicationRecoveryPlansTestFailoverCleanupOptionalParams): Promise; + beginUnplannedFailover(resourceGroupName: string, resourceName: string, recoveryPlanName: string, input: RecoveryPlanUnplannedFailoverInput, options?: ReplicationRecoveryPlansUnplannedFailoverOptionalParams): Promise, ReplicationRecoveryPlansUnplannedFailoverResponse>>; + beginUnplannedFailoverAndWait(resourceGroupName: string, resourceName: string, recoveryPlanName: string, input: RecoveryPlanUnplannedFailoverInput, options?: ReplicationRecoveryPlansUnplannedFailoverOptionalParams): Promise; + beginUpdate(resourceGroupName: string, resourceName: string, recoveryPlanName: string, input: UpdateRecoveryPlanInput, options?: ReplicationRecoveryPlansUpdateOptionalParams): Promise, ReplicationRecoveryPlansUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, resourceName: string, recoveryPlanName: string, input: UpdateRecoveryPlanInput, options?: ReplicationRecoveryPlansUpdateOptionalParams): Promise; + get(resourceGroupName: string, resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansGetOptionalParams): Promise; + list(resourceGroupName: string, resourceName: string, options?: ReplicationRecoveryPlansListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -5768,17 +6475,17 @@ export type ReplicationRecoveryPlansUpdateResponse = RecoveryPlan; // @public export interface ReplicationRecoveryServicesProviders { - beginCreate(resourceName: string, resourceGroupName: string, fabricName: string, providerName: string, addProviderInput: AddRecoveryServicesProviderInput, options?: ReplicationRecoveryServicesProvidersCreateOptionalParams): Promise, ReplicationRecoveryServicesProvidersCreateResponse>>; - beginCreateAndWait(resourceName: string, resourceGroupName: string, fabricName: string, providerName: string, addProviderInput: AddRecoveryServicesProviderInput, options?: ReplicationRecoveryServicesProvidersCreateOptionalParams): Promise; - beginDelete(resourceName: string, resourceGroupName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceName: string, resourceGroupName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersDeleteOptionalParams): Promise; - beginPurge(resourceName: string, resourceGroupName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersPurgeOptionalParams): Promise, void>>; - beginPurgeAndWait(resourceName: string, resourceGroupName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersPurgeOptionalParams): Promise; - beginRefreshProvider(resourceName: string, resourceGroupName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersRefreshProviderOptionalParams): Promise, ReplicationRecoveryServicesProvidersRefreshProviderResponse>>; - beginRefreshProviderAndWait(resourceName: string, resourceGroupName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersRefreshProviderOptionalParams): Promise; - get(resourceName: string, resourceGroupName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersGetOptionalParams): Promise; - list(resourceName: string, resourceGroupName: string, options?: ReplicationRecoveryServicesProvidersListOptionalParams): PagedAsyncIterableIterator; - listByReplicationFabrics(resourceName: string, resourceGroupName: string, fabricName: string, options?: ReplicationRecoveryServicesProvidersListByReplicationFabricsOptionalParams): PagedAsyncIterableIterator; + beginCreate(resourceGroupName: string, resourceName: string, fabricName: string, providerName: string, addProviderInput: AddRecoveryServicesProviderInput, options?: ReplicationRecoveryServicesProvidersCreateOptionalParams): Promise, ReplicationRecoveryServicesProvidersCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, resourceName: string, fabricName: string, providerName: string, addProviderInput: AddRecoveryServicesProviderInput, options?: ReplicationRecoveryServicesProvidersCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, resourceName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, resourceName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersDeleteOptionalParams): Promise; + beginPurge(resourceGroupName: string, resourceName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersPurgeOptionalParams): Promise, void>>; + beginPurgeAndWait(resourceGroupName: string, resourceName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersPurgeOptionalParams): Promise; + beginRefreshProvider(resourceGroupName: string, resourceName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersRefreshProviderOptionalParams): Promise, ReplicationRecoveryServicesProvidersRefreshProviderResponse>>; + beginRefreshProviderAndWait(resourceGroupName: string, resourceName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersRefreshProviderOptionalParams): Promise; + get(resourceGroupName: string, resourceName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersGetOptionalParams): Promise; + list(resourceGroupName: string, resourceName: string, options?: ReplicationRecoveryServicesProvidersListOptionalParams): PagedAsyncIterableIterator; + listByReplicationFabrics(resourceGroupName: string, resourceName: string, fabricName: string, options?: ReplicationRecoveryServicesProvidersListByReplicationFabricsOptionalParams): PagedAsyncIterableIterator; } // @public @@ -5848,13 +6555,13 @@ export type ReplicationRecoveryServicesProvidersRefreshProviderResponse = Recove // @public export interface ReplicationStorageClassificationMappings { - beginCreate(resourceName: string, resourceGroupName: string, fabricName: string, storageClassificationName: string, storageClassificationMappingName: string, pairingInput: StorageClassificationMappingInput, options?: ReplicationStorageClassificationMappingsCreateOptionalParams): Promise, ReplicationStorageClassificationMappingsCreateResponse>>; - beginCreateAndWait(resourceName: string, resourceGroupName: string, fabricName: string, storageClassificationName: string, storageClassificationMappingName: string, pairingInput: StorageClassificationMappingInput, options?: ReplicationStorageClassificationMappingsCreateOptionalParams): Promise; - beginDelete(resourceName: string, resourceGroupName: string, fabricName: string, storageClassificationName: string, storageClassificationMappingName: string, options?: ReplicationStorageClassificationMappingsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceName: string, resourceGroupName: string, fabricName: string, storageClassificationName: string, storageClassificationMappingName: string, options?: ReplicationStorageClassificationMappingsDeleteOptionalParams): Promise; - get(resourceName: string, resourceGroupName: string, fabricName: string, storageClassificationName: string, storageClassificationMappingName: string, options?: ReplicationStorageClassificationMappingsGetOptionalParams): Promise; - list(resourceName: string, resourceGroupName: string, options?: ReplicationStorageClassificationMappingsListOptionalParams): PagedAsyncIterableIterator; - listByReplicationStorageClassifications(resourceName: string, resourceGroupName: string, fabricName: string, storageClassificationName: string, options?: ReplicationStorageClassificationMappingsListByReplicationStorageClassificationsOptionalParams): PagedAsyncIterableIterator; + beginCreate(resourceGroupName: string, resourceName: string, fabricName: string, storageClassificationName: string, storageClassificationMappingName: string, pairingInput: StorageClassificationMappingInput, options?: ReplicationStorageClassificationMappingsCreateOptionalParams): Promise, ReplicationStorageClassificationMappingsCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, resourceName: string, fabricName: string, storageClassificationName: string, storageClassificationMappingName: string, pairingInput: StorageClassificationMappingInput, options?: ReplicationStorageClassificationMappingsCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, resourceName: string, fabricName: string, storageClassificationName: string, storageClassificationMappingName: string, options?: ReplicationStorageClassificationMappingsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, resourceName: string, fabricName: string, storageClassificationName: string, storageClassificationMappingName: string, options?: ReplicationStorageClassificationMappingsDeleteOptionalParams): Promise; + get(resourceGroupName: string, resourceName: string, fabricName: string, storageClassificationName: string, storageClassificationMappingName: string, options?: ReplicationStorageClassificationMappingsGetOptionalParams): Promise; + list(resourceGroupName: string, resourceName: string, options?: ReplicationStorageClassificationMappingsListOptionalParams): PagedAsyncIterableIterator; + listByReplicationStorageClassifications(resourceGroupName: string, resourceName: string, fabricName: string, storageClassificationName: string, options?: ReplicationStorageClassificationMappingsListByReplicationStorageClassificationsOptionalParams): PagedAsyncIterableIterator; } // @public @@ -5909,9 +6616,9 @@ export type ReplicationStorageClassificationMappingsListResponse = StorageClassi // @public export interface ReplicationStorageClassifications { - get(resourceName: string, resourceGroupName: string, fabricName: string, storageClassificationName: string, options?: ReplicationStorageClassificationsGetOptionalParams): Promise; - list(resourceName: string, resourceGroupName: string, options?: ReplicationStorageClassificationsListOptionalParams): PagedAsyncIterableIterator; - listByReplicationFabrics(resourceName: string, resourceGroupName: string, fabricName: string, options?: ReplicationStorageClassificationsListByReplicationFabricsOptionalParams): PagedAsyncIterableIterator; + get(resourceGroupName: string, resourceName: string, fabricName: string, storageClassificationName: string, options?: ReplicationStorageClassificationsGetOptionalParams): Promise; + list(resourceGroupName: string, resourceName: string, options?: ReplicationStorageClassificationsListOptionalParams): PagedAsyncIterableIterator; + listByReplicationFabrics(resourceGroupName: string, resourceName: string, fabricName: string, options?: ReplicationStorageClassificationsListByReplicationFabricsOptionalParams): PagedAsyncIterableIterator; } // @public @@ -5951,9 +6658,9 @@ export type ReplicationStorageClassificationsListResponse = StorageClassificatio // @public export interface ReplicationVaultHealth { - beginRefresh(resourceName: string, resourceGroupName: string, options?: ReplicationVaultHealthRefreshOptionalParams): Promise, ReplicationVaultHealthRefreshResponse>>; - beginRefreshAndWait(resourceName: string, resourceGroupName: string, options?: ReplicationVaultHealthRefreshOptionalParams): Promise; - get(resourceName: string, resourceGroupName: string, options?: ReplicationVaultHealthGetOptionalParams): Promise; + beginRefresh(resourceGroupName: string, resourceName: string, options?: ReplicationVaultHealthRefreshOptionalParams): Promise, ReplicationVaultHealthRefreshResponse>>; + beginRefreshAndWait(resourceGroupName: string, resourceName: string, options?: ReplicationVaultHealthRefreshOptionalParams): Promise; + get(resourceGroupName: string, resourceName: string, options?: ReplicationVaultHealthGetOptionalParams): Promise; } // @public @@ -5974,10 +6681,10 @@ export type ReplicationVaultHealthRefreshResponse = VaultHealthDetails; // @public export interface ReplicationVaultSetting { - beginCreate(resourceName: string, resourceGroupName: string, vaultSettingName: string, input: VaultSettingCreationInput, options?: ReplicationVaultSettingCreateOptionalParams): Promise, ReplicationVaultSettingCreateResponse>>; - beginCreateAndWait(resourceName: string, resourceGroupName: string, vaultSettingName: string, input: VaultSettingCreationInput, options?: ReplicationVaultSettingCreateOptionalParams): Promise; - get(resourceName: string, resourceGroupName: string, vaultSettingName: string, options?: ReplicationVaultSettingGetOptionalParams): Promise; - list(resourceName: string, resourceGroupName: string, options?: ReplicationVaultSettingListOptionalParams): PagedAsyncIterableIterator; + beginCreate(resourceGroupName: string, resourceName: string, vaultSettingName: string, input: VaultSettingCreationInput, options?: ReplicationVaultSettingCreateOptionalParams): Promise, ReplicationVaultSettingCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, resourceName: string, vaultSettingName: string, input: VaultSettingCreationInput, options?: ReplicationVaultSettingCreateOptionalParams): Promise; + get(resourceGroupName: string, resourceName: string, vaultSettingName: string, options?: ReplicationVaultSettingGetOptionalParams): Promise; + list(resourceGroupName: string, resourceName: string, options?: ReplicationVaultSettingListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -6012,15 +6719,15 @@ export type ReplicationVaultSettingListResponse = VaultSettingCollection; // @public export interface ReplicationvCenters { - beginCreate(resourceName: string, resourceGroupName: string, fabricName: string, vcenterName: string, addVCenterRequest: AddVCenterRequest, options?: ReplicationvCentersCreateOptionalParams): Promise, ReplicationvCentersCreateResponse>>; - beginCreateAndWait(resourceName: string, resourceGroupName: string, fabricName: string, vcenterName: string, addVCenterRequest: AddVCenterRequest, options?: ReplicationvCentersCreateOptionalParams): Promise; - beginDelete(resourceName: string, resourceGroupName: string, fabricName: string, vcenterName: string, options?: ReplicationvCentersDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceName: string, resourceGroupName: string, fabricName: string, vcenterName: string, options?: ReplicationvCentersDeleteOptionalParams): Promise; - beginUpdate(resourceName: string, resourceGroupName: string, fabricName: string, vcenterName: string, updateVCenterRequest: UpdateVCenterRequest, options?: ReplicationvCentersUpdateOptionalParams): Promise, ReplicationvCentersUpdateResponse>>; - beginUpdateAndWait(resourceName: string, resourceGroupName: string, fabricName: string, vcenterName: string, updateVCenterRequest: UpdateVCenterRequest, options?: ReplicationvCentersUpdateOptionalParams): Promise; - get(resourceName: string, resourceGroupName: string, fabricName: string, vcenterName: string, options?: ReplicationvCentersGetOptionalParams): Promise; - list(resourceName: string, resourceGroupName: string, options?: ReplicationvCentersListOptionalParams): PagedAsyncIterableIterator; - listByReplicationFabrics(resourceName: string, resourceGroupName: string, fabricName: string, options?: ReplicationvCentersListByReplicationFabricsOptionalParams): PagedAsyncIterableIterator; + beginCreate(resourceGroupName: string, resourceName: string, fabricName: string, vcenterName: string, addVCenterRequest: AddVCenterRequest, options?: ReplicationvCentersCreateOptionalParams): Promise, ReplicationvCentersCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, resourceName: string, fabricName: string, vcenterName: string, addVCenterRequest: AddVCenterRequest, options?: ReplicationvCentersCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, resourceName: string, fabricName: string, vcenterName: string, options?: ReplicationvCentersDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, resourceName: string, fabricName: string, vcenterName: string, options?: ReplicationvCentersDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, resourceName: string, fabricName: string, vcenterName: string, updateVCenterRequest: UpdateVCenterRequest, options?: ReplicationvCentersUpdateOptionalParams): Promise, ReplicationvCentersUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, resourceName: string, fabricName: string, vcenterName: string, updateVCenterRequest: UpdateVCenterRequest, options?: ReplicationvCentersUpdateOptionalParams): Promise; + get(resourceGroupName: string, resourceName: string, fabricName: string, vcenterName: string, options?: ReplicationvCentersGetOptionalParams): Promise; + list(resourceGroupName: string, resourceName: string, options?: ReplicationvCentersListOptionalParams): PagedAsyncIterableIterator; + listByReplicationFabrics(resourceGroupName: string, resourceName: string, fabricName: string, options?: ReplicationvCentersListByReplicationFabricsOptionalParams): PagedAsyncIterableIterator; } // @public @@ -6234,6 +6941,18 @@ export interface ScriptActionTaskDetails extends TaskTypeDetails { path?: string; } +// @public +export type SecurityConfiguration = string; + +// @public +export interface SecurityProfileProperties { + targetVmConfidentialEncryption?: SecurityConfiguration; + targetVmMonitoring?: SecurityConfiguration; + targetVmSecureBoot?: SecurityConfiguration; + targetVmSecurityType?: SecurityType; + targetVmTpm?: SecurityConfiguration; +} + // @public export type SecurityType = string; @@ -6252,6 +6971,26 @@ export type SetMultiVmSyncStatus = string; // @public export type Severity = string; +// @public +export interface SharedDiskReplicationItemProperties { + activeLocation?: string; + allowedOperations?: string[]; + currentScenario?: CurrentScenarioDetails; + healthErrors?: HealthError[]; + protectionState?: string; + replicationHealth?: string; + sharedDiskProviderSpecificDetails?: SharedDiskReplicationProviderSpecificSettingsUnion; + testFailoverState?: string; +} + +// @public +export interface SharedDiskReplicationProviderSpecificSettings { + instanceType: "A2A"; +} + +// @public (undocumented) +export type SharedDiskReplicationProviderSpecificSettingsUnion = SharedDiskReplicationProviderSpecificSettings | A2ASharedDiskReplicationDetails; + // @public (undocumented) export class SiteRecoveryManagementClient extends coreClient.ServiceClient { // (undocumented) @@ -6260,6 +6999,10 @@ export class SiteRecoveryManagementClient extends coreClient.ServiceClient { // (undocumented) apiVersion: string; // (undocumented) + clusterRecoveryPointOperations: ClusterRecoveryPointOperations; + // (undocumented) + clusterRecoveryPoints: ClusterRecoveryPoints; + // (undocumented) migrationRecoveryPoints: MigrationRecoveryPoints; // (undocumented) operations: Operations; @@ -6292,6 +7035,8 @@ export class SiteRecoveryManagementClient extends coreClient.ServiceClient { // (undocumented) replicationProtectedItems: ReplicationProtectedItems; // (undocumented) + replicationProtectionClusters: ReplicationProtectionClusters; + // (undocumented) replicationProtectionContainerMappings: ReplicationProtectionContainerMappings; // (undocumented) replicationProtectionContainers: ReplicationProtectionContainers; @@ -6404,7 +7149,7 @@ export type SupportedOperatingSystemsGetResponse = SupportedOperatingSystems; // @public export interface SupportedOperatingSystemsOperations { - get(resourceName: string, resourceGroupName: string, options?: SupportedOperatingSystemsGetOptionalParams): Promise; + get(resourceGroupName: string, resourceName: string, options?: SupportedOperatingSystemsGetOptionalParams): Promise; } // @public @@ -6425,6 +7170,25 @@ export interface SupportedOSProperty { supportedOs?: SupportedOSDetails[]; } +// @public +export interface SwitchClusterProtectionInput { + properties?: SwitchClusterProtectionInputProperties; +} + +// @public +export interface SwitchClusterProtectionInputProperties { + providerSpecificDetails?: SwitchClusterProtectionProviderSpecificInputUnion; + replicationProtectionClusterName?: string; +} + +// @public +export interface SwitchClusterProtectionProviderSpecificInput { + instanceType: "A2A"; +} + +// @public (undocumented) +export type SwitchClusterProtectionProviderSpecificInputUnion = SwitchClusterProtectionProviderSpecificInput | A2ASwitchClusterProtectionInput; + // @public export interface SwitchProtectionInput { properties?: SwitchProtectionInputProperties; @@ -6499,7 +7263,7 @@ export interface TargetComputeSizeProperties { // @public export interface TargetComputeSizes { - listByReplicationProtectedItems(resourceName: string, resourceGroupName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: TargetComputeSizesListByReplicationProtectedItemsOptionalParams): PagedAsyncIterableIterator; + listByReplicationProtectedItems(resourceGroupName: string, resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: TargetComputeSizesListByReplicationProtectedItemsOptionalParams): PagedAsyncIterableIterator; } // @public @@ -6639,7 +7403,10 @@ export type UpdateApplianceForReplicationProtectedItemProviderSpecificInputUnion // @public export interface UpdateDiskInput { diskId: string; + diskSizeInGB?: number; + iops?: number; targetDiskName?: string; + throughputInMbps?: number; } // @public @@ -6753,6 +7520,12 @@ export interface UpdateVCenterRequestProperties { runAsAccountId?: string; } +// @public +export interface UserCreatedResourceTag { + tagName?: string; + tagValue?: string; +} + // @public export interface VaultHealthDetails extends Resource { properties?: VaultHealthProperties; @@ -6949,10 +7722,14 @@ export interface VMwareCbtContainerMappingInput extends ReplicationProviderSpeci export interface VMwareCbtDiskInput { diskEncryptionSetId?: string; diskId: string; + diskSizeInGB?: number; diskType?: DiskAccountType; + iops?: number; isOSDisk: string; logStorageAccountId: string; logStorageAccountSasSecretName: string; + sectorSizeInBytes?: number; + throughputInMbps?: number; } // @public @@ -6962,6 +7739,7 @@ export interface VMwareCbtEnableMigrationInput extends EnableMigrationProviderSp disksToInclude: VMwareCbtDiskInput[]; instanceType: "VMwareCbt"; licenseType?: LicenseType; + linuxLicenseType?: LinuxLicenseType; performAutoResync?: string; performSqlBulkRegistration?: string; seedDiskTags?: { @@ -6990,6 +7768,7 @@ export interface VMwareCbtEnableMigrationInput extends EnableMigrationProviderSp }; testNetworkId?: string; testSubnetName?: string; + userSelectedOSName?: string; vmwareMachineId: string; } @@ -7004,6 +7783,7 @@ export interface VMwareCbtMigrateInput extends MigrateProviderSpecificInput { instanceType: "VMwareCbt"; osUpgradeVersion?: string; performShutdown: string; + postMigrationSteps?: ManagedRunCommandScriptInput[]; } // @public @@ -7022,6 +7802,7 @@ export interface VMwareCbtMigrationDetails extends MigrationProviderSpecificSett readonly lastRecoveryPointId?: string; readonly lastRecoveryPointReceived?: Date; licenseType?: string; + linuxLicenseType?: LinuxLicenseType; readonly migrationProgressPercentage?: number; readonly migrationRecoveryPointId?: string; readonly operationName?: string; @@ -7120,16 +7901,20 @@ export interface VMwareCbtProtectedDiskDetails { readonly diskId?: string; readonly diskName?: string; readonly diskPath?: string; + diskSizeInGB?: number; diskType?: DiskAccountType; readonly gatewayOperationDetails?: GatewayOperationDetails; + iops?: number; readonly isOSDisk?: string; readonly logStorageAccountId?: string; readonly logStorageAccountSasSecretName?: string; + sectorSizeInBytes?: number; readonly seedBlobUri?: string; readonly seedManagedDiskId?: string; readonly targetBlobUri?: string; targetDiskName?: string; readonly targetManagedDiskId?: string; + throughputInMbps?: number; } // @public @@ -7173,6 +7958,7 @@ export interface VMwareCbtTestMigrateInput extends TestMigrateProviderSpecificIn instanceType: "VMwareCbt"; networkId: string; osUpgradeVersion?: string; + postMigrationSteps?: ManagedRunCommandScriptInput[]; recoveryPointId: string; vmNics?: VMwareCbtNicInput[]; } @@ -7180,14 +7966,18 @@ export interface VMwareCbtTestMigrateInput extends TestMigrateProviderSpecificIn // @public export interface VMwareCbtUpdateDiskInput { diskId: string; + diskSizeInGB?: number; + iops?: number; isOSDisk?: string; targetDiskName?: string; + throughputInMbps?: number; } // @public export interface VMwareCbtUpdateMigrationItemInput extends UpdateMigrationItemProviderSpecificInput { instanceType: "VMwareCbt"; licenseType?: LicenseType; + linuxLicenseType?: LinuxLicenseType; performAutoResync?: string; sqlServerLicenseType?: SqlServerLicenseType; targetAvailabilitySetId?: string; @@ -7208,6 +7998,7 @@ export interface VMwareCbtUpdateMigrationItemInput extends UpdateMigrationItemPr [propertyName: string]: string; }; testNetworkId?: string; + userSelectedOSName?: string; vmDisks?: VMwareCbtUpdateDiskInput[]; vmNics?: VMwareCbtNicInput[]; } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/sample.env b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/sample.env index 672847a3fea0..508439fc7d62 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/sample.env +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/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/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/lroImpl.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/lroImpl.ts index d8bc98987053..5f88efab981b 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/lroImpl.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/lroImpl.ts @@ -5,6 +5,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + import { AbortSignalLike } from "@azure/abort-controller"; import { LongRunningOperation, LroResponse } from "@azure/core-lro"; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/index.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/index.ts index e3063cd185c5..70456418642c 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/index.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/index.ts @@ -112,7 +112,8 @@ export type UpdateReplicationProtectedItemProviderInputUnion = | InMageRcmUpdateReplicationProtectedItemInput; export type AddDisksProviderSpecificInputUnion = | AddDisksProviderSpecificInput - | A2AAddDisksInput; + | A2AAddDisksInput + | InMageRcmAddDisksInput; export type ApplyRecoveryPointProviderSpecificInputUnion = | ApplyRecoveryPointProviderSpecificInput | A2AApplyRecoveryPointInput @@ -165,6 +166,24 @@ export type UpdateApplianceForReplicationProtectedItemProviderSpecificInputUnion | UpdateApplianceForReplicationProtectedItemProviderSpecificInput | InMageRcmUpdateApplianceForReplicationProtectedItemInput; +export type ReplicationClusterProviderSpecificSettingsUnion = + | ReplicationClusterProviderSpecificSettings + | A2AReplicationProtectionClusterDetails; +export type SharedDiskReplicationProviderSpecificSettingsUnion = + | SharedDiskReplicationProviderSpecificSettings + | A2ASharedDiskReplicationDetails; +export type ApplyClusterRecoveryPointProviderSpecificInputUnion = + | ApplyClusterRecoveryPointProviderSpecificInput + | A2AApplyClusterRecoveryPointInput; +export type ClusterProviderSpecificRecoveryPointDetailsUnion = + | ClusterProviderSpecificRecoveryPointDetails + | A2AClusterRecoveryPointDetails; +export type ClusterTestFailoverProviderSpecificInputUnion = + | ClusterTestFailoverProviderSpecificInput + | A2AClusterTestFailoverInput; +export type ClusterUnplannedFailoverProviderSpecificInputUnion = + | ClusterUnplannedFailoverProviderSpecificInput + | A2AClusterUnplannedFailoverInput; export type ProtectionContainerMappingProviderSpecificDetailsUnion = | ProtectionContainerMappingProviderSpecificDetails | A2AProtectionContainerMappingDetails @@ -178,6 +197,9 @@ export type ReplicationProviderSpecificUpdateContainerMappingInputUnion = | ReplicationProviderSpecificUpdateContainerMappingInput | A2AUpdateContainerMappingInput | InMageRcmUpdateContainerMappingInput; +export type SwitchClusterProtectionProviderSpecificInputUnion = + | SwitchClusterProtectionProviderSpecificInput + | A2ASwitchClusterProtectionInput; export type SwitchProtectionProviderSpecificInputUnion = | SwitchProtectionProviderSpecificInput | A2ASwitchProtectionInput; @@ -196,6 +218,9 @@ export type GroupTaskDetailsUnion = export type JobDetailsUnion = | JobDetails | AsrJobDetails + | ClusterFailoverJobDetails + | ClusterSwitchProtectionJobDetails + | ClusterTestFailoverJobDetails | ExportJobDetails | FailoverJobDetails | SwitchProtectionJobDetails @@ -1497,7 +1522,7 @@ export interface AddDisksInputProperties { /** Add Disks provider specific input. */ export interface AddDisksProviderSpecificInput { /** Polymorphic discriminator, which specifies the different types this object can be */ - instanceType: "A2A"; + instanceType: "A2A" | "InMageRcm"; } /** Input to apply recovery point. */ @@ -1829,6 +1854,262 @@ export interface UpdateMobilityServiceRequestProperties { runAsAccountId?: string; } +/** Replication protected item collection. */ +export interface ReplicationProtectionClusterCollection { + /** The Replication protection cluster details. */ + value?: ReplicationProtectionCluster[]; + /** The value of next link. */ + nextLink?: string; +} + +/** Replication protection Cluster. */ +export interface ReplicationProtectionCluster { + /** + * The protection cluster Id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the protection cluster. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The Type of the object. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** The custom data. */ + properties?: ReplicationProtectionClusterProperties; +} + +/** Replication protection cluster custom data details. */ +export interface ReplicationProtectionClusterProperties { + /** The type of protection cluster type. */ + protectionClusterType?: string; + /** The friendly name of the primary fabric. */ + primaryFabricFriendlyName?: string; + /** The fabric provider of the primary fabric. */ + primaryFabricProvider?: string; + /** The friendly name of recovery fabric. */ + recoveryFabricFriendlyName?: string; + /** The Arm Id of recovery fabric. */ + recoveryFabricId?: string; + /** The name of primary protection container friendly name. */ + primaryProtectionContainerFriendlyName?: string; + /** The name of recovery container friendly name. */ + recoveryProtectionContainerFriendlyName?: string; + /** The protection status. */ + protectionState?: string; + /** The protection state description. */ + protectionStateDescription?: string; + /** The Current active location of the Protection cluster. */ + activeLocation?: string; + /** The Test failover state. */ + testFailoverState?: string; + /** The Test failover state description. */ + testFailoverStateDescription?: string; + /** The allowed operations on the Replication protection cluster. */ + allowedOperations?: string[]; + /** The consolidated protection health for the VM taking any issues with SRS as well as all the replication units associated with the VM's replication group into account. This is a string representation of the ProtectionHealth enumeration. */ + replicationHealth?: string; + /** List of health errors. */ + healthErrors?: HealthError[]; + /** The last successful failover time. */ + lastSuccessfulFailoverTime?: Date; + /** The last successful test failover time. */ + lastSuccessfulTestFailoverTime?: Date; + /** The name of Policy governing this PE. */ + policyFriendlyName?: string; + /** The current scenario. */ + currentScenario?: CurrentScenarioDetails; + /** The recovery container Id. */ + recoveryContainerId?: string; + /** The Agent cluster Id. */ + agentClusterId?: string; + /** The cluster FQDN. */ + clusterFqdn?: string; + /** The List of cluster Node FQDNs. */ + clusterNodeFqdns?: string[]; + /** The List of Protected Item Id's. */ + clusterProtectedItemIds?: string[]; + /** + * The provisioning state of the cluster. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** A value indicating whether all nodes of the cluster are registered or not. */ + areAllClusterNodesRegistered?: boolean; + /** The registered node details. */ + clusterRegisteredNodes?: RegisteredClusterNodes[]; + /** The Replication cluster provider custom settings. */ + providerSpecificDetails?: ReplicationClusterProviderSpecificSettingsUnion; + /** The shared disk properties. */ + sharedDiskProperties?: SharedDiskReplicationItemProperties; + /** The Policy Id. */ + policyId?: string; +} + +/** Extended location of the resource. */ +export interface RegisteredClusterNodes { + /** The cluster node name. */ + clusterNodeFqdn?: string; + /** The machine ID. */ + machineId?: string; + /** The BIOS ID. */ + biosId?: string; + /** A value indicating whether this represents virtual entity hosting all the shared disks. */ + isSharedDiskVirtualNode?: boolean; +} + +/** Replication cluster provider specific settings. */ +export interface ReplicationClusterProviderSpecificSettings { + /** Polymorphic discriminator, which specifies the different types this object can be */ + instanceType: "A2A"; +} + +/** Shared Disk Replication item custom data details. */ +export interface SharedDiskReplicationItemProperties { + /** The protection state of shared disk. */ + protectionState?: string; + /** The tfo state of shared disk. */ + testFailoverState?: string; + /** The Current active location of the PE. */ + activeLocation?: string; + /** The allowed operations on the Replication protected item. */ + allowedOperations?: string[]; + /** The consolidated protection health for the VM taking any issues with SRS as well as all the replication units associated with the VM's replication group into account. This is a string representation of the ProtectionHealth enumeration. */ + replicationHealth?: string; + /** List of health errors. */ + healthErrors?: HealthError[]; + /** The current scenario. */ + currentScenario?: CurrentScenarioDetails; + /** The Replication provider custom settings. */ + sharedDiskProviderSpecificDetails?: SharedDiskReplicationProviderSpecificSettingsUnion; +} + +/** Replication provider specific settings. */ +export interface SharedDiskReplicationProviderSpecificSettings { + /** Polymorphic discriminator, which specifies the different types this object can be */ + instanceType: "A2A"; +} + +/** Input definition for apply cluster recovery point. */ +export interface ApplyClusterRecoveryPointInput { + /** The properties to apply cluster recovery point input. */ + properties: ApplyClusterRecoveryPointInputProperties; +} + +/** Input definition for apply cluster recovery point properties. */ +export interface ApplyClusterRecoveryPointInputProperties { + /** The cluster recovery point id to be passed to failover to a particular recovery point. */ + clusterRecoveryPointId?: string; + /** The list of individual node recovery points. */ + individualNodeRecoveryPoints?: string[]; + /** The provider specific input for applying cluster recovery point. */ + providerSpecificDetails: ApplyClusterRecoveryPointProviderSpecificInputUnion; +} + +/** Provider specific input for apply cluster recovery point. */ +export interface ApplyClusterRecoveryPointProviderSpecificInput { + /** Polymorphic discriminator, which specifies the different types this object can be */ + instanceType: "A2A"; +} + +/** Collection of cluster recovery point details. */ +export interface ClusterRecoveryPointCollection { + /** The cluster recovery point details. */ + value?: ClusterRecoveryPoint[]; + /** The value of next link. */ + nextLink?: string; +} + +/** Recovery point. */ +export interface ClusterRecoveryPoint { + /** The recovery point Id. */ + id?: string; + /** The name of the recovery point. */ + name?: string; + /** The resource type. */ + type?: string; + /** The recovery point properties. */ + properties?: ClusterRecoveryPointProperties; +} + +/** Cluster recovery point properties. */ +export interface ClusterRecoveryPointProperties { + /** The recovery point time. */ + recoveryPointTime?: Date; + /** The recovery point type. */ + recoveryPointType?: ClusterRecoveryPointType; + /** The provider specific details for the recovery point. */ + providerSpecificDetails?: ClusterProviderSpecificRecoveryPointDetailsUnion; +} + +/** Replication provider specific cluster recovery point details. */ +export interface ClusterProviderSpecificRecoveryPointDetails { + /** Polymorphic discriminator, which specifies the different types this object can be */ + instanceType: "A2A"; +} + +/** Input definition for test cluster failover. */ +export interface ClusterTestFailoverInput { + /** Test failover input properties. */ + properties: ClusterTestFailoverInputProperties; +} + +/** Input definition for test failover input properties. */ +export interface ClusterTestFailoverInputProperties { + /** Failover direction. */ + failoverDirection?: FailoverDirection; + /** Network type to be used for test failover. */ + networkType?: string; + /** The id of the network to be used for test failover. */ + networkId?: string; + /** Provider specific settings. */ + providerSpecificDetails?: ClusterTestFailoverProviderSpecificInputUnion; +} + +/** Provider specific test cluster failover input. */ +export interface ClusterTestFailoverProviderSpecificInput { + /** Polymorphic discriminator, which specifies the different types this object can be */ + instanceType: "A2A"; +} + +/** Input definition for test failover cleanup for cluster. */ +export interface ClusterTestFailoverCleanupInput { + /** Test failover cleanup input properties. */ + properties: ClusterTestFailoverCleanupInputProperties; +} + +/** Input definition for test failover cleanup input properties. */ +export interface ClusterTestFailoverCleanupInputProperties { + /** Test failover cleanup comments. */ + comments?: string; +} + +/** Input definition for unplanned cluster failover. */ +export interface ClusterUnplannedFailoverInput { + /** Unplanned failover input properties. */ + properties: ClusterUnplannedFailoverInputProperties; +} + +/** Input definition for unplanned failover input properties. */ +export interface ClusterUnplannedFailoverInputProperties { + /** Failover direction. */ + failoverDirection?: string; + /** Source site operations status. */ + sourceSiteOperations?: string; + /** Provider specific settings. */ + providerSpecificDetails?: ClusterUnplannedFailoverProviderSpecificInputUnion; +} + +/** Provider specific unplanned cluster failover input. */ +export interface ClusterUnplannedFailoverProviderSpecificInput { + /** Polymorphic discriminator, which specifies the different types this object can be */ + instanceType: "A2A"; +} + /** Protection container mapping collection class. */ export interface ProtectionContainerMappingCollection { /** List of container mappings. */ @@ -1927,6 +2208,26 @@ export interface ReplicationProviderContainerUnmappingInput { instanceType?: string; } +/** Switch cluster protection input. */ +export interface SwitchClusterProtectionInput { + /** Switch cluster protection properties. */ + properties?: SwitchClusterProtectionInputProperties; +} + +/** Switch cluster protection input properties. */ +export interface SwitchClusterProtectionInputProperties { + /** The unique replication protection cluster name. */ + replicationProtectionClusterName?: string; + /** Provider specific switch protection input. */ + providerSpecificDetails?: SwitchClusterProtectionProviderSpecificInputUnion; +} + +/** Provider specific switch cluster protection input. */ +export interface SwitchClusterProtectionProviderSpecificInput { + /** Polymorphic discriminator, which specifies the different types this object can be */ + instanceType: "A2A"; +} + /** Switch protection input. */ export interface SwitchProtectionInput { /** Switch protection properties. */ @@ -2313,6 +2614,9 @@ export interface JobDetails { /** Polymorphic discriminator, which specifies the different types this object can be */ instanceType: | "AsrJobDetails" + | "ClusterFailoverJobDetails" + | "ClusterSwitchProtectionJobDetails" + | "ClusterTestFailoverJobDetails" | "ExportJobDetails" | "FailoverJobDetails" | "SwitchProtectionJobDetails" @@ -3000,6 +3304,30 @@ export interface A2AProtectedDiskDetails { tfoDiskName?: string; } +/** A2A specific switch cluster protection input. */ +export interface A2AProtectedItemDetail { + /** The list of vm managed disk details. */ + vmManagedDisks?: A2AVmManagedDiskInputDetails[]; + /** The recovery resource group Id. */ + recoveryResourceGroupId?: string; + /** The recovery availability set. */ + recoveryAvailabilitySetId?: string; + /** The boot diagnostic storage account. */ + recoveryBootDiagStorageAccountId?: string; + /** The recovery availability zone. */ + recoveryAvailabilityZone?: string; + /** The recovery proximity placement group Id. */ + recoveryProximityPlacementGroupId?: string; + /** The virtual machine scale set id. */ + recoveryVirtualMachineScaleSetId?: string; + /** The recovery capacity reservation group Id. */ + recoveryCapacityReservationGroupId?: string; + /** The recovery disk encryption information. */ + diskEncryptionInfo?: DiskEncryptionInfo; + /** The Replication Protected item name. */ + replicationProtectedItemName?: string; +} + /** A2A protected managed disk details. */ export interface A2AProtectedManagedDiskDetails { /** The managed disk Arm id. */ @@ -3143,6 +3471,35 @@ export interface InputEndpoint { protocol?: string; } +/** Extended location of the resource. */ +export interface A2ASharedDiskIRErrorDetails { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errorCode?: string; + /** + * The error code enum. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errorCodeEnum?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errorMessage?: string; + /** + * The possible causes. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly possibleCauses?: string; + /** + * The recommended action. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly recommendedAction?: string; +} + /** A2A Vm managed disk update details. */ export interface A2AVmManagedDiskUpdateDetails { /** The disk Id. */ @@ -3332,6 +3689,28 @@ export interface AzureVmDiskDetails { customTargetDiskName?: string; } +/** Failover details for a replication protected item. */ +export interface FailoverReplicationProtectedItemDetails { + /** The name. */ + name?: string; + /** The friendly name. */ + friendlyName?: string; + /** The test Vm name. */ + testVmName?: string; + /** The test Vm friendly name. */ + testVmFriendlyName?: string; + /** The network connection status. */ + networkConnectionStatus?: string; + /** The network friendly name. */ + networkFriendlyName?: string; + /** The network subnet. */ + subnet?: string; + /** The recovery point Id. */ + recoveryPointId?: string; + /** The recovery point time. */ + recoveryPointTime?: Date; +} + /** This class stores the monitoring details for consistency check of inconsistent Protected Entity. */ export interface InconsistentVmDetails { /** The Vm name. */ @@ -3483,28 +3862,6 @@ export interface JobEntity { jobScenarioName?: string; } -/** Failover details for a replication protected item. */ -export interface FailoverReplicationProtectedItemDetails { - /** The name. */ - name?: string; - /** The friendly name. */ - friendlyName?: string; - /** The test Vm name. */ - testVmName?: string; - /** The test Vm friendly name. */ - testVmFriendlyName?: string; - /** The network connection status. */ - networkConnectionStatus?: string; - /** The network friendly name. */ - networkFriendlyName?: string; - /** The network subnet. */ - subnet?: string; - /** The recovery point Id. */ - recoveryPointId?: string; - /** The recovery point time. */ - recoveryPointTime?: Date; -} - /** Details of the gateway operation. */ export interface GatewayOperationDetails { /** @@ -3574,10 +3931,32 @@ export interface HyperVReplicaAzureDiskInputDetails { diskId?: string; /** The LogStorageAccountId. */ logStorageAccountId?: string; - /** The DiskType. */ + /** The disk type. */ diskType?: DiskAccountType; /** The DiskEncryptionSet ARM ID. */ diskEncryptionSetId?: string; + /** The logical sector size (in bytes), 512 by default. */ + sectorSizeInBytes?: number; + /** The number of IOPS allowed for Premium V2 and Ultra disks. */ + iops?: number; + /** The total throughput in Mbps for Premium V2 and Ultra disks. */ + throughputInMbps?: number; + /** The target disk size in GB. */ + diskSizeInGB?: number; +} + +/** Security profile input. */ +export interface SecurityProfileProperties { + /** The target VM security type. */ + targetVmSecurityType?: SecurityType; + /** A value indicating whether secure boot to be enabled. */ + targetVmSecureBoot?: SecurityConfiguration; + /** A value indicating whether trusted platform module to be enabled. */ + targetVmTpm?: SecurityConfiguration; + /** A value indicating whether integrity monitoring to be enabled. */ + targetVmMonitoring?: SecurityConfiguration; + /** A value indicating whether confidential compute encryption to be enabled. */ + targetVmConfidentialEncryption?: SecurityConfiguration; } /** Hyper-V Managed disk details. */ @@ -3590,6 +3969,16 @@ export interface HyperVReplicaAzureManagedDiskDetails { replicaDiskType?: string; /** The disk encryption set ARM Id. */ diskEncryptionSetId?: string; + /** The disk type. */ + targetDiskAccountType?: DiskAccountType; + /** The logical sector size (in bytes), 512 by default. */ + sectorSizeInBytes?: number; + /** The number of IOPS allowed for Premium V2 and Ultra disks. */ + iops?: number; + /** The total throughput in Mbps for Premium V2 and Ultra disks. */ + throughputInMbps?: number; + /** The target disk size in GB. */ + diskSizeInGB?: number; } /** Initial replication details. */ @@ -3614,6 +4003,8 @@ export interface OSDetails { oSMajorVersion?: string; /** The OS Minor Version. */ oSMinorVersion?: string; + /** The OS name selected by user. */ + userSelectedOSName?: string; } /** Supported OS upgrade versions. */ @@ -3636,6 +4027,12 @@ export interface UpdateDiskInput { diskId: string; /** The target disk name. */ targetDiskName?: string; + /** The number of IOPS allowed for Premium V2 and Ultra disks. */ + iops?: number; + /** The total throughput in Mbps for Premium V2 and Ultra disks. */ + throughputInMbps?: number; + /** The target disk size in GB. */ + diskSizeInGB?: number; } /** The details of the InMage agent. */ @@ -3656,7 +4053,7 @@ export interface InMageAzureV2DiskInputDetails { diskId?: string; /** The LogStorageAccountId. */ logStorageAccountId?: string; - /** The DiskType. */ + /** The disk type. */ diskType?: DiskAccountType; /** The DiskEncryptionSet ARM ID. */ diskEncryptionSetId?: string; @@ -3904,6 +4301,26 @@ export interface InMageProtectedDiskDetails { progressStatus?: string; } +/** InMageRcm disk input. */ +export interface InMageRcmDiskInput { + /** The disk Id. */ + diskId: string; + /** The log storage account ARM Id. */ + logStorageAccountId: string; + /** The disk type. */ + diskType: DiskAccountType; + /** The DiskEncryptionSet ARM Id. */ + diskEncryptionSetId?: string; + /** The logical sector size (in bytes), 512 by default. */ + sectorSizeInBytes?: number; + /** The number of IOPS allowed for Premium V2 and Ultra disks. */ + iops?: number; + /** The total throughput in Mbps for Premium V2 and Ultra disks. */ + throughputInMbps?: number; + /** The target disk size in GB. */ + diskSizeInGB?: number; +} + /** InMageRcm source agent upgrade blocking error details. */ export interface InMageRcmAgentUpgradeBlockingErrorDetails { /** @@ -4515,25 +4932,29 @@ export interface InMageRcmDiscoveredProtectedVmDetails { } /** InMageRcm disk input. */ -export interface InMageRcmDiskInput { - /** The disk Id. */ - diskId: string; +export interface InMageRcmDisksDefaultInput { /** The log storage account ARM Id. */ logStorageAccountId: string; /** The disk type. */ diskType: DiskAccountType; /** The DiskEncryptionSet ARM Id. */ diskEncryptionSetId?: string; + /** The logical sector size (in bytes), 512 by default. */ + sectorSizeInBytes?: number; + /** The number of IOPS allowed for Premium V2 and Ultra disks. */ + iops?: number; + /** The total throughput in Mbps for Premium V2 and Ultra disks. */ + throughputInMbps?: number; + /** The target disk size in GB. */ + diskSizeInGB?: number; } -/** InMageRcm disk input. */ -export interface InMageRcmDisksDefaultInput { - /** The log storage account ARM Id. */ - logStorageAccountId: string; - /** The disk type. */ - diskType: DiskAccountType; - /** The DiskEncryptionSet ARM Id. */ - diskEncryptionSetId?: string; +/** Resource tag input. */ +export interface UserCreatedResourceTag { + /** The tag name. Please read for more information: https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/tag-resources#limitations */ + tagName?: string; + /** The tag value. Please read her for more information: https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/tag-resources#limitations */ + tagValue?: string; } /** InMageRcmFailback discovered VM details. */ @@ -4901,6 +5322,8 @@ export interface InMageRcmNicDetails { testIPAddress?: string; /** The test IP address type. */ testIPAddressType?: EthernetAddressType; + /** The target NIC name. */ + targetNicName?: string; } /** InMageRcm NIC input. */ @@ -4919,6 +5342,8 @@ export interface InMageRcmNicInput { testSubnetName?: string; /** The test static IP address. */ testStaticIPAddress?: string; + /** The target NIC name. */ + targetNicName?: string; } /** InMageRcm protected disk details. */ @@ -4943,6 +5368,11 @@ export interface InMageRcmProtectedDiskDetails { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly capacityInBytes?: number; + /** + * The disk state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly diskState?: DiskState; /** * The log storage account ARM Id. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4989,6 +5419,16 @@ export interface InMageRcmProtectedDiskDetails { irDetails?: InMageRcmSyncDetails; /** The resync details. */ resyncDetails?: InMageRcmSyncDetails; + /** The custom target Azure disk name. */ + customTargetDiskName?: string; + /** The logical sector size (in bytes), 512 by default. */ + sectorSizeInBytes?: number; + /** The number of IOPS allowed for Premium V2 and Ultra disks. */ + iops?: number; + /** The total throughput in Mbps for Premium V2 and Ultra disks. */ + throughputInMbps?: number; + /** The target disk size in GB. */ + diskSizeInGB?: number; } /** InMageRcm disk level sync details. */ @@ -5035,6 +5475,25 @@ export interface InMageRcmSyncDetails { readonly progressPercentage?: number; } +/** InMageRcm un-protected disk details. */ +export interface InMageRcmUnProtectedDiskDetails { + /** + * The disk Id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly diskId?: string; + /** + * The disk name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly diskName?: string; + /** + * The disk capacity in bytes. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly capacityInBytes?: number; +} + /** Details of the OS Disk. */ export interface OSDiskDetails { /** The id of the disk containing the OS. */ @@ -5045,6 +5504,16 @@ export interface OSDiskDetails { vhdName?: string; } +/** Managed RunCommand script input */ +export interface ManagedRunCommandScriptInput { + /** The step name. */ + stepName: string; + /** The script url. */ + scriptUrl: string; + /** The script parameters. */ + scriptParameters: string; +} + /** Details of a Master Target Server. */ export interface MasterTargetServer { /** The server Id. */ @@ -5243,6 +5712,16 @@ export interface ProtectedItemsQueryParameter { processServerId?: string; } +/** Query parameter to enumerate protected clusters. */ +export interface ProtectedClustersQueryParameter { + /** The source fabric name filter. */ + sourceFabricName?: string; + /** The source fabric location filter. */ + sourceFabricLocation?: string; + /** The replication provider type. */ + instanceType?: string; +} + /** Azure role assignment details. */ export interface RoleAssignment { /** The ARM Id of the role assignment. */ @@ -5279,6 +5758,14 @@ export interface VMwareCbtDiskInput { logStorageAccountSasSecretName: string; /** The DiskEncryptionSet ARM Id. */ diskEncryptionSetId?: string; + /** The logical sector size (in bytes), 512 by default. */ + sectorSizeInBytes?: number; + /** The number of IOPS allowed for Premium V2 and Ultra disks. */ + iops?: number; + /** The total throughput in Mbps for Premium V2 and Ultra disks. */ + throughputInMbps?: number; + /** The target disk size in GB. */ + diskSizeInGB?: number; } /** VMwareCbt security profile input. */ @@ -5366,6 +5853,14 @@ export interface VMwareCbtProtectedDiskDetails { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly gatewayOperationDetails?: GatewayOperationDetails; + /** The logical sector size (in bytes), 512 by default. */ + sectorSizeInBytes?: number; + /** The number of IOPS allowed for Premium V2 and Ultra disks. */ + iops?: number; + /** The total throughput in Mbps for Premium V2 and Ultra disks. */ + throughputInMbps?: number; + /** The target disk size in GB. */ + diskSizeInGB?: number; } /** VMwareCbt NIC details. */ @@ -5440,6 +5935,12 @@ export interface VMwareCbtUpdateDiskInput { targetDiskName?: string; /** A value indicating whether the disk is the OS disk. */ isOSDisk?: string; + /** The number of IOPS allowed for Premium V2 and Ultra disks. */ + iops?: number; + /** The total throughput in Mbps for Premium V2 and Ultra disks. */ + throughputInMbps?: number; + /** The target disk size in GB. */ + diskSizeInGB?: number; } /** Implements the Alert class. */ @@ -6184,6 +6685,8 @@ export interface VMwareCbtMigrationDetails licenseType?: string; /** The SQL Server license type. */ sqlServerLicenseType?: string; + /** The license type for Linux VM's. */ + linuxLicenseType?: LinuxLicenseType; /** * The data mover run as account Id. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6347,6 +6850,8 @@ export interface VMwareCbtEnableMigrationInput licenseType?: LicenseType; /** The SQL Server license type. */ sqlServerLicenseType?: SqlServerLicenseType; + /** The license type for Linux VM's. */ + linuxLicenseType?: LinuxLicenseType; /** A value indicating whether bulk SQL RP registration to be done. */ performSqlBulkRegistration?: string; /** The data mover run as account Id. */ @@ -6389,6 +6894,8 @@ export interface VMwareCbtEnableMigrationInput targetDiskTags?: { [propertyName: string]: string }; /** The tags for the target NICs. */ targetNicTags?: { [propertyName: string]: string }; + /** The OS name selected by user. */ + userSelectedOSName?: string; } /** VMwareCbt specific update migration item input. */ @@ -6422,6 +6929,10 @@ export interface VMwareCbtUpdateMigrationItemInput licenseType?: LicenseType; /** The SQL Server license type. */ sqlServerLicenseType?: SqlServerLicenseType; + /** The license type for Linux VM's. */ + linuxLicenseType?: LinuxLicenseType; + /** The OS name selected by user. */ + userSelectedOSName?: string; /** A value indicating whether auto resync is to be done. */ performAutoResync?: string; /** The target VM tags. */ @@ -6440,6 +6951,8 @@ export interface VMwareCbtMigrateInput extends MigrateProviderSpecificInput { performShutdown: string; /** A value indicating the inplace OS Upgrade version. */ osUpgradeVersion?: string; + /** The managed run command script input. */ + postMigrationSteps?: ManagedRunCommandScriptInput[]; } /** VMwareCbt specific resume replication input. */ @@ -6472,6 +6985,8 @@ export interface VMwareCbtTestMigrateInput vmNics?: VMwareCbtNicInput[]; /** A value indicating the inplace OS Upgrade version. */ osUpgradeVersion?: string; + /** The managed run command script input. */ + postMigrationSteps?: ManagedRunCommandScriptInput[]; } /** Single Host fabric provider specific VM settings. */ @@ -6586,6 +7101,10 @@ export interface A2AReplicationDetails multiVmGroupCreateOption?: MultiVmGroupCreateOption; /** The management Id. */ managementId?: string; + /** The replication protection cluster Id. */ + protectionClusterId?: string; + /** A value indicating if the cluster infra is ready or not. */ + isClusterInfraReady?: boolean; /** The list of protected disks. */ protectedDisks?: A2AProtectedDiskDetails[]; /** The list of unprotected disks. */ @@ -6745,6 +7264,8 @@ export interface HyperVReplicaAzureReplicationDetails licenseType?: string; /** The SQL Server license type. */ sqlServerLicenseType?: string; + /** The license type for Linux VM's. */ + linuxLicenseType?: LinuxLicenseType; /** * The last recovery point received time. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6762,6 +7283,8 @@ export interface HyperVReplicaAzureReplicationDetails protectedManagedDisks?: HyperVReplicaAzureManagedDiskDetails[]; /** A value indicating all available inplace OS Upgrade configurations. */ allAvailableOSUpgradeConfigurations?: OSUpgradeSupportedVersions[]; + /** The target VM security profile. */ + targetVmSecurityProfile?: SecurityProfileProperties; } /** Hyper V replica provider specific settings base class. */ @@ -7192,6 +7715,8 @@ export interface InMageRcmReplicationDetails readonly targetGeneration?: string; /** License Type of the VM to be used. */ licenseType?: string; + /** The license type for Linux VM's. */ + linuxLicenseType?: LinuxLicenseType; /** * The replication storage account ARM Id. This is applicable only for the blob based replication test hook. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -7314,6 +7839,8 @@ export interface InMageRcmReplicationDetails readonly agentUpgradeAttemptToVersion?: string; /** The list of protected disks. */ protectedDisks?: InMageRcmProtectedDiskDetails[]; + /** The list of unprotected disks. */ + unprotectedDisks?: InMageRcmUnProtectedDiskDetails[]; /** * A value indicating whether last agent upgrade was successful or not. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -7334,6 +7861,22 @@ export interface InMageRcmReplicationDetails vmNics?: InMageRcmNicDetails[]; /** The discovered VM details. */ discoveredVmDetails?: InMageRcmDiscoveredProtectedVmDetails; + /** The target VM tags. */ + targetVmTags?: UserCreatedResourceTag[]; + /** The tags for the seed managed disks. */ + seedManagedDiskTags?: UserCreatedResourceTag[]; + /** The tags for the target managed disks. */ + targetManagedDiskTags?: UserCreatedResourceTag[]; + /** The tags for the target NICs. */ + targetNicTags?: UserCreatedResourceTag[]; + /** The SQL Server license type. */ + sqlServerLicenseType?: string; + /** A value indicating the inplace OS Upgrade version. */ + supportedOSVersions?: string[]; + /** The OS name associated with VM. */ + osName?: string; + /** The target VM security profile. */ + targetVmSecurityProfile?: SecurityProfileProperties; } /** InMage provider specific settings. */ @@ -7459,6 +8002,8 @@ export interface A2AEnableProtectionInput multiVmGroupName?: string; /** The multi vm group id. */ multiVmGroupId?: string; + /** The replication protection cluster Id. */ + protectionClusterId?: string; /** The boot diagnostic storage account. */ recoveryBootDiagStorageAccountId?: string; /** The recovery disk encryption information (for two pass flows). */ @@ -7490,6 +8035,8 @@ export interface HyperVReplicaAzureEnableProtectionInput vmName?: string; /** The OS type associated with VM. */ osType?: string; + /** The OS name selected by user. */ + userSelectedOSName?: string; /** The OS disk VHD id associated with VM. */ vhdId?: string; /** The storage account Id. */ @@ -7520,13 +8067,17 @@ export interface HyperVReplicaAzureEnableProtectionInput licenseType?: LicenseType; /** The SQL Server license type. */ sqlServerLicenseType?: SqlServerLicenseType; + /** The license type for Linux VM's. */ + linuxLicenseType?: LinuxLicenseType; + /** The target VM security profile. */ + targetVmSecurityProfile?: SecurityProfileProperties; /** The target VM size. */ targetVmSize?: string; /** The proximity placement group ARM Id. */ targetProximityPlacementGroupId?: string; /** A value indicating whether managed disks should be used during replication. */ useManagedDisksForReplication?: string; - /** The DiskType. */ + /** The disk type. */ diskType?: DiskAccountType; /** The disks to include list for managed disks. */ disksToIncludeForManagedDisks?: HyperVReplicaAzureDiskInputDetails[]; @@ -7575,7 +8126,7 @@ export interface InMageAzureV2EnableProtectionInput targetAzureV1ResourceGroupId?: string; /** The Id of the target resource group (for resource manager deployment) in which the failover VM is to be created. */ targetAzureV2ResourceGroupId?: string; - /** The DiskType. */ + /** The disk type. */ diskType?: DiskAccountType; /** The target availability set ARM Id for resource manager deployment. */ targetAvailabilitySetId?: string; @@ -7669,6 +8220,22 @@ export interface InMageRcmEnableProtectionInput processServerId: string; /** The multi VM group name. */ multiVmGroupName?: string; + /** The SQL Server license type. */ + sqlServerLicenseType?: SqlServerLicenseType; + /** The license type for Linux VM's. */ + linuxLicenseType?: LinuxLicenseType; + /** The target VM tags. */ + targetVmTags?: UserCreatedResourceTag[]; + /** The tags for the seed managed disks. */ + seedManagedDiskTags?: UserCreatedResourceTag[]; + /** The tags for the target managed disks. */ + targetManagedDiskTags?: UserCreatedResourceTag[]; + /** The tags for the target NICs. */ + targetNicTags?: UserCreatedResourceTag[]; + /** The OS name selected by user. */ + userSelectedOSName?: string; + /** The target VM security profile. */ + targetVmSecurityProfile?: SecurityProfileProperties; } /** InMage Azure V2 input to update replication protected item. */ @@ -7721,6 +8288,10 @@ export interface HyperVReplicaAzureUpdateReplicationProtectedItemInput targetNicTags?: { [propertyName: string]: string }; /** The SQL Server license type. */ sqlServerLicenseType?: SqlServerLicenseType; + /** The license type for Linux VM's. */ + linuxLicenseType?: LinuxLicenseType; + /** The OS name selected by user. */ + userSelectedOSName?: string; /** The list of disk update properties. */ vmDisks?: UpdateDiskInput[]; } @@ -7779,6 +8350,18 @@ export interface InMageRcmUpdateReplicationProtectedItemInput vmNics?: InMageRcmNicInput[]; /** The license type. */ licenseType?: LicenseType; + /** The SQL Server license type. */ + sqlServerLicenseType?: SqlServerLicenseType; + /** The license type for Linux VM's. */ + linuxLicenseType?: LinuxLicenseType; + /** The OS name selected by user. */ + userSelectedOSName?: string; + /** The target VM tags. */ + targetVmTags?: UserCreatedResourceTag[]; + /** The tags for the target managed disks. */ + targetManagedDiskTags?: UserCreatedResourceTag[]; + /** The tags for the target NICs. */ + targetNicTags?: UserCreatedResourceTag[]; } /** A2A add disk(s) input. */ @@ -7791,6 +8374,14 @@ export interface A2AAddDisksInput extends AddDisksProviderSpecificInput { vmManagedDisks?: A2AVmManagedDiskInputDetails[]; } +/** InMageRcm add disk(s) input. */ +export interface InMageRcmAddDisksInput extends AddDisksProviderSpecificInput { + /** Polymorphic discriminator, which specifies the different types this object can be */ + instanceType: "InMageRcm"; + /** The list of disk details. */ + disks: InMageRcmDiskInput[]; +} + /** ApplyRecoveryPoint input specific to A2A provider. */ export interface A2AApplyRecoveryPointInput extends ApplyRecoveryPointProviderSpecificInput { @@ -8089,6 +8680,8 @@ export interface InMageRcmTestFailoverInput networkId?: string; /** The recovery point id to be passed to test failover to a particular recovery point. In case of latest recovery point, null should be passed. */ recoveryPointId?: string; + /** A value indicating the inplace OS Upgrade version. */ + osUpgradeVersion?: string; } /** Provider specific input for InMage test failover. */ @@ -8146,6 +8739,8 @@ export interface InMageRcmUnplannedFailoverInput performShutdown: string; /** The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null should be passed. */ recoveryPointId?: string; + /** A value indicating the inplace OS Upgrade version. */ + osUpgradeVersion?: string; } /** Provider specific input for InMage unplanned failover. */ @@ -8168,6 +8763,122 @@ export interface InMageRcmUpdateApplianceForReplicationProtectedItemInput runAsAccountId?: string; } +/** A2A provider specific settings. */ +export interface A2AReplicationProtectionClusterDetails + extends ReplicationClusterProviderSpecificSettings { + /** Polymorphic discriminator, which specifies the different types this object can be */ + instanceType: "A2A"; + /** The multi vm group Id. */ + multiVmGroupId?: string; + /** The multi vm group name. */ + multiVmGroupName?: string; + /** Whether Multi VM group is auto created or specified by user. */ + multiVmGroupCreateOption?: MultiVmGroupCreateOption; + /** Primary fabric location. */ + primaryFabricLocation?: string; + /** The recovery fabric location. */ + recoveryFabricLocation?: string; + /** The recovery point Id to which the cluster was failed over. */ + failoverRecoveryPointId?: string; + /** The cluster management Id. */ + clusterManagementId?: string; + /** The last RPO value in seconds. */ + rpoInSeconds?: number; + /** The time (in UTC) when the last RPO value was calculated by Protection Service. */ + lastRpoCalculatedTime?: Date; + /** The initial primary availability zone. */ + initialPrimaryZone?: string; + /** The initial primary fabric location. */ + initialPrimaryFabricLocation?: string; + /** The initial recovery availability zone. */ + initialRecoveryZone?: string; + /** The initial recovery fabric location. */ + initialRecoveryFabricLocation?: string; + /** The initial primary extended location. */ + initialPrimaryExtendedLocation?: ExtendedLocation; + /** The initial recovery extended location. */ + initialRecoveryExtendedLocation?: ExtendedLocation; + /** The primary availability zone. */ + primaryAvailabilityZone?: string; + /** The recovery availability zone. */ + recoveryAvailabilityZone?: string; + /** The primary Extended Location. */ + primaryExtendedLocation?: ExtendedLocation; + /** The recovery Extended Location. */ + recoveryExtendedLocation?: ExtendedLocation; + /** An id that survives actions like switch protection which change the backing PE/CPE objects internally.The lifecycle id gets carried forward to have a link/continuity in being able to have an Id that denotes the "same" protected cluster even though other internal Ids/ARM Id might be changing. */ + lifecycleId?: string; +} + +/** A2A provider specific settings. */ +export interface A2ASharedDiskReplicationDetails + extends SharedDiskReplicationProviderSpecificSettings { + /** Polymorphic discriminator, which specifies the different types this object can be */ + instanceType: "A2A"; + /** The management Id. */ + managementId?: string; + /** The list of unprotected disks. */ + unprotectedDisks?: A2AUnprotectedDiskDetails[]; + /** The list of protected managed disks. */ + protectedManagedDisks?: A2AProtectedManagedDiskDetails[]; + /** Primary fabric location. */ + primaryFabricLocation?: string; + /** The recovery fabric location. */ + recoveryFabricLocation?: string; + /** The recovery point id to which the Virtual node was failed over. */ + failoverRecoveryPointId?: string; + /** The percentage of the monitoring job. The type of the monitoring job is defined by MonitoringJobType property. */ + monitoringPercentageCompletion?: number; + /** The type of the monitoring job. The progress is contained in MonitoringPercentageCompletion property. */ + monitoringJobType?: string; + /** The last RPO value in seconds. */ + rpoInSeconds?: number; + /** The time (in UTC) when the last RPO value was calculated by Protection Service. */ + lastRpoCalculatedTime?: Date; + /** The IR Errors. */ + sharedDiskIRErrors?: A2ASharedDiskIRErrorDetails[]; +} + +/** A2A provider specific input for apply cluster recovery point. */ +export interface A2AApplyClusterRecoveryPointInput + extends ApplyClusterRecoveryPointProviderSpecificInput { + /** Polymorphic discriminator, which specifies the different types this object can be */ + instanceType: "A2A"; +} + +/** A2A provider specific cluster recovery point details. */ +export interface A2AClusterRecoveryPointDetails + extends ClusterProviderSpecificRecoveryPointDetails { + /** Polymorphic discriminator, which specifies the different types this object can be */ + instanceType: "A2A"; + /** A value indicating whether the recovery point is multi VM consistent. */ + recoveryPointSyncType?: RecoveryPointSyncType; + /** The list of nodes representing the cluster. */ + nodes?: string[]; +} + +/** A2A provider specific input for test cluster failover. */ +export interface A2AClusterTestFailoverInput + extends ClusterTestFailoverProviderSpecificInput { + /** Polymorphic discriminator, which specifies the different types this object can be */ + instanceType: "A2A"; + /** The cluster recovery point id to be passed to failover to a particular recovery point. */ + clusterRecoveryPointId?: string; + /** The list of individual node recovery points. */ + individualNodeRecoveryPoints?: string[]; +} + +/** A2A provider specific input for unplanned cluster failover. */ +export interface A2AClusterUnplannedFailoverInput + extends ClusterUnplannedFailoverProviderSpecificInput { + /** Polymorphic discriminator, which specifies the different types this object can be */ + instanceType: "A2A"; + /** The cluster recovery point id to be passed to failover to a particular recovery point. */ + clusterRecoveryPointId?: string; + /** The list of individual node recovery points. */ + individualNodeRecoveryPoints?: string[]; +} + /** A2A provider specific settings. */ export interface A2AProtectionContainerMappingDetails extends ProtectionContainerMappingProviderSpecificDetails { @@ -8295,6 +9006,18 @@ export interface InMageRcmUpdateContainerMappingInput enableAgentAutoUpgrade: string; } +/** A2A specific switch cluster protection input. */ +export interface A2ASwitchClusterProtectionInput + extends SwitchClusterProtectionProviderSpecificInput { + /** Polymorphic discriminator, which specifies the different types this object can be */ + instanceType: "A2A"; + /** The recovery container Id. */ + recoveryContainerId?: string; + /** The Policy Id. */ + policyId?: string; + protectedItemsDetail?: A2AProtectedItemDetail[]; +} + /** A2A specific switch protection input. */ export interface A2ASwitchProtectionInput extends SwitchProtectionProviderSpecificInput { @@ -8437,6 +9160,40 @@ export interface AsrJobDetails extends JobDetails { instanceType: "AsrJobDetails"; } +/** This class represents the details for a failover job of cluster. */ +export interface ClusterFailoverJobDetails extends JobDetails { + /** Polymorphic discriminator, which specifies the different types this object can be */ + instanceType: "ClusterFailoverJobDetails"; + /** The test VM details. */ + protectedItemDetails?: FailoverReplicationProtectedItemDetails[]; +} + +/** This class represents details for switch cluster protection job. */ +export interface ClusterSwitchProtectionJobDetails extends JobDetails { + /** Polymorphic discriminator, which specifies the different types this object can be */ + instanceType: "ClusterSwitchProtectionJobDetails"; + /** ARM Id of the new replication protection cluster. */ + newReplicationProtectionClusterId?: string; +} + +/** This class represents the details for a test failover job of cluster. */ +export interface ClusterTestFailoverJobDetails extends JobDetails { + /** Polymorphic discriminator, which specifies the different types this object can be */ + instanceType: "ClusterTestFailoverJobDetails"; + /** The test failover status. */ + testFailoverStatus?: string; + /** The test failover comments. */ + comments?: string; + /** The test network name. */ + networkName?: string; + /** The test network friendly name. */ + networkFriendlyName?: string; + /** The test network type (see TestFailoverInput enum for possible values). */ + networkType?: string; + /** The test VM details. */ + protectedItemDetails?: FailoverReplicationProtectedItemDetails[]; +} + /** This class represents details for export jobs workflow. */ export interface ExportJobDetails extends JobDetails { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -9188,11 +9945,81 @@ export interface ReplicationFabricsRemoveInfraHeaders { location?: string; } +/** Defines headers for ReplicationProtectionContainers_switchClusterProtection operation. */ +export interface ReplicationProtectionContainersSwitchClusterProtectionHeaders { + location?: string; + azureAsyncOperation?: string; + retryAfter?: string; +} + +/** Defines headers for ReplicationProtectionContainers_switchProtection operation. */ +export interface ReplicationProtectionContainersSwitchProtectionHeaders { + location?: string; + azureAsyncOperation?: string; + retryAfter?: string; +} + /** Defines headers for ReplicationProtectedItems_updateMobilityService operation. */ export interface ReplicationProtectedItemsUpdateMobilityServiceHeaders { location?: string; } +/** Defines headers for ReplicationProtectionClusters_create operation. */ +export interface ReplicationProtectionClustersCreateHeaders { + location?: string; + azureAsyncOperation?: string; + retryAfter?: string; +} + +/** Defines headers for ReplicationProtectionClusters_purge operation. */ +export interface ReplicationProtectionClustersPurgeHeaders { + location?: string; + azureAsyncOperation?: string; + retryAfter?: string; +} + +/** Defines headers for ReplicationProtectionClusters_applyRecoveryPoint operation. */ +export interface ReplicationProtectionClustersApplyRecoveryPointHeaders { + location?: string; + azureAsyncOperation?: string; + retryAfter?: string; +} + +/** Defines headers for ReplicationProtectionClusters_failoverCommit operation. */ +export interface ReplicationProtectionClustersFailoverCommitHeaders { + location?: string; + azureAsyncOperation?: string; + retryAfter?: string; +} + +/** Defines headers for ReplicationProtectionClusters_repairReplication operation. */ +export interface ReplicationProtectionClustersRepairReplicationHeaders { + location?: string; + azureAsyncOperation?: string; + retryAfter?: string; +} + +/** Defines headers for ReplicationProtectionClusters_testFailover operation. */ +export interface ReplicationProtectionClustersTestFailoverHeaders { + location?: string; + azureAsyncOperation?: string; + retryAfter?: string; +} + +/** Defines headers for ReplicationProtectionClusters_testFailoverCleanup operation. */ +export interface ReplicationProtectionClustersTestFailoverCleanupHeaders { + location?: string; + azureAsyncOperation?: string; + retryAfter?: string; +} + +/** Defines headers for ReplicationProtectionClusters_unplannedFailover operation. */ +export interface ReplicationProtectionClustersUnplannedFailoverHeaders { + location?: string; + azureAsyncOperation?: string; + retryAfter?: string; +} + /** Known values of {@link HealthErrorCustomerResolvability} that the service accepts. */ export enum KnownHealthErrorCustomerResolvability { /** Allowed */ @@ -9424,19 +10251,58 @@ export enum KnownDisableProtectionReason { */ export type DisableProtectionReason = string; -/** Known values of {@link AgentVersionStatus} that the service accepts. */ -export enum KnownAgentVersionStatus { - /** Supported */ - Supported = "Supported", - /** NotSupported */ - NotSupported = "NotSupported", - /** Deprecated */ - Deprecated = "Deprecated", - /** UpdateRequired */ - UpdateRequired = "UpdateRequired", - /** SecurityUpdateRequired */ - SecurityUpdateRequired = "SecurityUpdateRequired", -} +/** Known values of {@link ClusterRecoveryPointType} that the service accepts. */ +export enum KnownClusterRecoveryPointType { + /** NotSpecified */ + NotSpecified = "NotSpecified", + /** ApplicationConsistent */ + ApplicationConsistent = "ApplicationConsistent", + /** CrashConsistent */ + CrashConsistent = "CrashConsistent", +} + +/** + * Defines values for ClusterRecoveryPointType. \ + * {@link KnownClusterRecoveryPointType} can be used interchangeably with ClusterRecoveryPointType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotSpecified** \ + * **ApplicationConsistent** \ + * **CrashConsistent** + */ +export type ClusterRecoveryPointType = string; + +/** Known values of {@link FailoverDirection} that the service accepts. */ +export enum KnownFailoverDirection { + /** PrimaryToRecovery */ + PrimaryToRecovery = "PrimaryToRecovery", + /** RecoveryToPrimary */ + RecoveryToPrimary = "RecoveryToPrimary", +} + +/** + * Defines values for FailoverDirection. \ + * {@link KnownFailoverDirection} can be used interchangeably with FailoverDirection, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PrimaryToRecovery** \ + * **RecoveryToPrimary** + */ +export type FailoverDirection = string; + +/** Known values of {@link AgentVersionStatus} that the service accepts. */ +export enum KnownAgentVersionStatus { + /** Supported */ + Supported = "Supported", + /** NotSupported */ + NotSupported = "NotSupported", + /** Deprecated */ + Deprecated = "Deprecated", + /** UpdateRequired */ + UpdateRequired = "UpdateRequired", + /** SecurityUpdateRequired */ + SecurityUpdateRequired = "SecurityUpdateRequired", +} /** * Defines values for AgentVersionStatus. \ @@ -9673,6 +10539,24 @@ export enum KnownSeverity { */ export type Severity = string; +/** Known values of {@link RecoveryPointSyncType} that the service accepts. */ +export enum KnownRecoveryPointSyncType { + /** MultiVmSyncRecoveryPoint */ + MultiVmSyncRecoveryPoint = "MultiVmSyncRecoveryPoint", + /** PerVmRecoveryPoint */ + PerVmRecoveryPoint = "PerVmRecoveryPoint", +} + +/** + * Defines values for RecoveryPointSyncType. \ + * {@link KnownRecoveryPointSyncType} can be used interchangeably with RecoveryPointSyncType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **MultiVmSyncRecoveryPoint** \ + * **PerVmRecoveryPoint** + */ +export type RecoveryPointSyncType = string; + /** Known values of {@link AgentAutoUpdateStatus} that the service accepts. */ export enum KnownAgentAutoUpdateStatus { /** Disabled */ @@ -9781,24 +10665,6 @@ export enum KnownSetMultiVmSyncStatus { */ export type SetMultiVmSyncStatus = string; -/** Known values of {@link RecoveryPointSyncType} that the service accepts. */ -export enum KnownRecoveryPointSyncType { - /** MultiVmSyncRecoveryPoint */ - MultiVmSyncRecoveryPoint = "MultiVmSyncRecoveryPoint", - /** PerVmRecoveryPoint */ - PerVmRecoveryPoint = "PerVmRecoveryPoint", -} - -/** - * Defines values for RecoveryPointSyncType. \ - * {@link KnownRecoveryPointSyncType} can be used interchangeably with RecoveryPointSyncType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **MultiVmSyncRecoveryPoint** \ - * **PerVmRecoveryPoint** - */ -export type RecoveryPointSyncType = string; - /** Known values of {@link MultiVmGroupCreateOption} that the service accepts. */ export enum KnownMultiVmGroupCreateOption { /** AutoCreated */ @@ -9864,6 +10730,14 @@ export enum KnownDiskAccountType { PremiumLRS = "Premium_LRS", /** StandardSSDLRS */ StandardSSDLRS = "StandardSSD_LRS", + /** PremiumV2LRS */ + PremiumV2LRS = "PremiumV2_LRS", + /** UltraSSDLRS */ + UltraSSDLRS = "UltraSSD_LRS", + /** StandardSSDZRS */ + StandardSSDZRS = "StandardSSD_ZRS", + /** PremiumZRS */ + PremiumZRS = "Premium_ZRS", } /** @@ -9873,7 +10747,11 @@ export enum KnownDiskAccountType { * ### Known values supported by the service * **Standard_LRS** \ * **Premium_LRS** \ - * **StandardSSD_LRS** + * **StandardSSD_LRS** \ + * **PremiumV2_LRS** \ + * **UltraSSD_LRS** \ + * **StandardSSD_ZRS** \ + * **Premium_ZRS** */ export type DiskAccountType = string; @@ -9901,6 +10779,66 @@ export enum KnownSqlServerLicenseType { */ export type SqlServerLicenseType = string; +/** Known values of {@link LinuxLicenseType} that the service accepts. */ +export enum KnownLinuxLicenseType { + /** NotSpecified */ + NotSpecified = "NotSpecified", + /** NoLicenseType */ + NoLicenseType = "NoLicenseType", + /** LinuxServer */ + LinuxServer = "LinuxServer", +} + +/** + * Defines values for LinuxLicenseType. \ + * {@link KnownLinuxLicenseType} can be used interchangeably with LinuxLicenseType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotSpecified** \ + * **NoLicenseType** \ + * **LinuxServer** + */ +export type LinuxLicenseType = string; + +/** Known values of {@link SecurityType} that the service accepts. */ +export enum KnownSecurityType { + /** None */ + None = "None", + /** TrustedLaunch */ + TrustedLaunch = "TrustedLaunch", + /** ConfidentialVM */ + ConfidentialVM = "ConfidentialVM", +} + +/** + * Defines values for SecurityType. \ + * {@link KnownSecurityType} can be used interchangeably with SecurityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **TrustedLaunch** \ + * **ConfidentialVM** + */ +export type SecurityType = string; + +/** Known values of {@link SecurityConfiguration} that the service accepts. */ +export enum KnownSecurityConfiguration { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled", +} + +/** + * Defines values for SecurityConfiguration. \ + * {@link KnownSecurityConfiguration} can be used interchangeably with SecurityConfiguration, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** + */ +export type SecurityConfiguration = string; + /** Known values of {@link PresenceStatus} that the service accepts. */ export enum KnownPresenceStatus { /** Unknown */ @@ -10132,6 +11070,30 @@ export enum KnownEthernetAddressType { */ export type EthernetAddressType = string; +/** Known values of {@link DiskState} that the service accepts. */ +export enum KnownDiskState { + /** Unavailable */ + Unavailable = "Unavailable", + /** InitialReplicationPending */ + InitialReplicationPending = "InitialReplicationPending", + /** InitialReplicationFailed */ + InitialReplicationFailed = "InitialReplicationFailed", + /** Protected */ + Protected = "Protected", +} + +/** + * Defines values for DiskState. \ + * {@link KnownDiskState} can be used interchangeably with DiskState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unavailable** \ + * **InitialReplicationPending** \ + * **InitialReplicationFailed** \ + * **Protected** + */ +export type DiskState = string; + /** Known values of {@link MobilityAgentUpgradeState} that the service accepts. */ export enum KnownMobilityAgentUpgradeState { /** None */ @@ -10363,27 +11325,6 @@ export enum KnownRecoveryPlanPointType { */ export type RecoveryPlanPointType = string; -/** Known values of {@link SecurityType} that the service accepts. */ -export enum KnownSecurityType { - /** None */ - None = "None", - /** TrustedLaunch */ - TrustedLaunch = "TrustedLaunch", - /** ConfidentialVM */ - ConfidentialVM = "ConfidentialVM", -} - -/** - * Defines values for SecurityType. \ - * {@link KnownSecurityType} can be used interchangeably with SecurityType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **TrustedLaunch** \ - * **ConfidentialVM** - */ -export type SecurityType = string; - /** Optional parameters. */ export interface OperationsListOptionalParams extends coreClient.OperationOptions {} @@ -10775,6 +11716,19 @@ export interface ReplicationProtectionContainersDeleteOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface ReplicationProtectionContainersSwitchClusterProtectionOptionalParams + 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 switchClusterProtection operation. */ +export type ReplicationProtectionContainersSwitchClusterProtectionResponse = + ProtectionContainer; + /** Optional parameters. */ export interface ReplicationProtectionContainersSwitchProtectionOptionalParams extends coreClient.OperationOptions { @@ -11343,6 +12297,186 @@ export interface TargetComputeSizesListByReplicationProtectedItemsNextOptionalPa export type TargetComputeSizesListByReplicationProtectedItemsNextResponse = TargetComputeSizeCollection; +/** Optional parameters. */ +export interface ReplicationProtectionClustersListByReplicationProtectionContainersOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByReplicationProtectionContainers operation. */ +export type ReplicationProtectionClustersListByReplicationProtectionContainersResponse = + ReplicationProtectionClusterCollection; + +/** Optional parameters. */ +export interface ReplicationProtectionClustersGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ReplicationProtectionClustersGetResponse = + ReplicationProtectionCluster; + +/** Optional parameters. */ +export interface ReplicationProtectionClustersCreateOptionalParams + 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 ReplicationProtectionClustersCreateResponse = + ReplicationProtectionCluster; + +/** Optional parameters. */ +export interface ReplicationProtectionClustersPurgeOptionalParams + 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 purge operation. */ +export type ReplicationProtectionClustersPurgeResponse = + ReplicationProtectionClustersPurgeHeaders; + +/** Optional parameters. */ +export interface ReplicationProtectionClustersApplyRecoveryPointOptionalParams + 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 applyRecoveryPoint operation. */ +export type ReplicationProtectionClustersApplyRecoveryPointResponse = + ReplicationProtectionCluster; + +/** Optional parameters. */ +export interface ReplicationProtectionClustersFailoverCommitOptionalParams + 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 failoverCommit operation. */ +export type ReplicationProtectionClustersFailoverCommitResponse = + ReplicationProtectionCluster; + +/** Optional parameters. */ +export interface ReplicationProtectionClustersGetOperationResultsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getOperationResults operation. */ +export type ReplicationProtectionClustersGetOperationResultsResponse = + ReplicationProtectionCluster; + +/** Optional parameters. */ +export interface ReplicationProtectionClustersRepairReplicationOptionalParams + 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 repairReplication operation. */ +export type ReplicationProtectionClustersRepairReplicationResponse = + ReplicationProtectionCluster; + +/** Optional parameters. */ +export interface ReplicationProtectionClustersTestFailoverOptionalParams + 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 testFailover operation. */ +export type ReplicationProtectionClustersTestFailoverResponse = + ReplicationProtectionCluster; + +/** Optional parameters. */ +export interface ReplicationProtectionClustersTestFailoverCleanupOptionalParams + 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 testFailoverCleanup operation. */ +export type ReplicationProtectionClustersTestFailoverCleanupResponse = + ReplicationProtectionCluster; + +/** Optional parameters. */ +export interface ReplicationProtectionClustersUnplannedFailoverOptionalParams + 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 unplannedFailover operation. */ +export type ReplicationProtectionClustersUnplannedFailoverResponse = + ReplicationProtectionCluster; + +/** Optional parameters. */ +export interface ReplicationProtectionClustersListOptionalParams + extends coreClient.OperationOptions { + /** OData filter options. */ + filter?: string; + /** The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. */ + skipToken?: string; +} + +/** Contains response data for the list operation. */ +export type ReplicationProtectionClustersListResponse = + ReplicationProtectionClusterCollection; + +/** Optional parameters. */ +export interface ReplicationProtectionClustersListByReplicationProtectionContainersNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByReplicationProtectionContainersNext operation. */ +export type ReplicationProtectionClustersListByReplicationProtectionContainersNextResponse = + ReplicationProtectionClusterCollection; + +/** Optional parameters. */ +export interface ReplicationProtectionClustersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ReplicationProtectionClustersListNextResponse = + ReplicationProtectionClusterCollection; + +/** Optional parameters. */ +export interface ClusterRecoveryPointsListByReplicationProtectionClusterOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByReplicationProtectionCluster operation. */ +export type ClusterRecoveryPointsListByReplicationProtectionClusterResponse = + ClusterRecoveryPointCollection; + +/** Optional parameters. */ +export interface ClusterRecoveryPointsListByReplicationProtectionClusterNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByReplicationProtectionClusterNext operation. */ +export type ClusterRecoveryPointsListByReplicationProtectionClusterNextResponse = + ClusterRecoveryPointCollection; + +/** Optional parameters. */ +export interface ClusterRecoveryPointGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ClusterRecoveryPointGetResponse = ClusterRecoveryPoint; + /** Optional parameters. */ export interface ReplicationProtectionContainerMappingsListByReplicationProtectionContainersOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/mappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/mappers.ts index e28a871616a5..04b079ee264e 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/mappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/mappers.ts @@ -4235,11 +4235,11 @@ export const UpdateMobilityServiceRequestProperties: coreClient.CompositeMapper }, }; -export const ProtectionContainerMappingCollection: coreClient.CompositeMapper = +export const ReplicationProtectionClusterCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProtectionContainerMappingCollection", + className: "ReplicationProtectionClusterCollection", modelProperties: { value: { serializedName: "value", @@ -4248,7 +4248,7 @@ export const ProtectionContainerMappingCollection: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "ProtectionContainerMapping", + className: "ReplicationProtectionCluster", }, }, }, @@ -4263,39 +4263,140 @@ export const ProtectionContainerMappingCollection: coreClient.CompositeMapper = }, }; -export const ProtectionContainerMappingProperties: coreClient.CompositeMapper = +export const ReplicationProtectionCluster: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ReplicationProtectionCluster", + 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", + }, + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ReplicationProtectionClusterProperties", + }, + }, + }, + }, +}; + +export const ReplicationProtectionClusterProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProtectionContainerMappingProperties", + className: "ReplicationProtectionClusterProperties", modelProperties: { - targetProtectionContainerId: { - serializedName: "targetProtectionContainerId", + protectionClusterType: { + serializedName: "protectionClusterType", type: { name: "String", }, }, - targetProtectionContainerFriendlyName: { - serializedName: "targetProtectionContainerFriendlyName", + primaryFabricFriendlyName: { + serializedName: "primaryFabricFriendlyName", type: { name: "String", }, }, - providerSpecificDetails: { - serializedName: "providerSpecificDetails", + primaryFabricProvider: { + serializedName: "primaryFabricProvider", type: { - name: "Composite", - className: "ProtectionContainerMappingProviderSpecificDetails", + name: "String", }, }, - health: { - serializedName: "health", + recoveryFabricFriendlyName: { + serializedName: "recoveryFabricFriendlyName", type: { name: "String", }, }, - healthErrorDetails: { - serializedName: "healthErrorDetails", + recoveryFabricId: { + serializedName: "recoveryFabricId", + type: { + name: "String", + }, + }, + primaryProtectionContainerFriendlyName: { + serializedName: "primaryProtectionContainerFriendlyName", + type: { + name: "String", + }, + }, + recoveryProtectionContainerFriendlyName: { + serializedName: "recoveryProtectionContainerFriendlyName", + type: { + name: "String", + }, + }, + protectionState: { + serializedName: "protectionState", + type: { + name: "String", + }, + }, + protectionStateDescription: { + serializedName: "protectionStateDescription", + type: { + name: "String", + }, + }, + activeLocation: { + serializedName: "activeLocation", + type: { + name: "String", + }, + }, + testFailoverState: { + serializedName: "testFailoverState", + type: { + name: "String", + }, + }, + testFailoverStateDescription: { + serializedName: "testFailoverStateDescription", + type: { + name: "String", + }, + }, + allowedOperations: { + serializedName: "allowedOperations", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + replicationHealth: { + serializedName: "replicationHealth", + type: { + name: "String", + }, + }, + healthErrors: { + serializedName: "healthErrors", type: { name: "Sequence", element: { @@ -4306,120 +4407,159 @@ export const ProtectionContainerMappingProperties: coreClient.CompositeMapper = }, }, }, - policyId: { - serializedName: "policyId", + lastSuccessfulFailoverTime: { + serializedName: "lastSuccessfulFailoverTime", type: { - name: "String", + name: "DateTime", }, }, - state: { - serializedName: "state", + lastSuccessfulTestFailoverTime: { + serializedName: "lastSuccessfulTestFailoverTime", type: { - name: "String", + name: "DateTime", }, }, - sourceProtectionContainerFriendlyName: { - serializedName: "sourceProtectionContainerFriendlyName", + policyFriendlyName: { + serializedName: "policyFriendlyName", type: { name: "String", }, }, - sourceFabricFriendlyName: { - serializedName: "sourceFabricFriendlyName", + currentScenario: { + serializedName: "currentScenario", type: { - name: "String", + name: "Composite", + className: "CurrentScenarioDetails", }, }, - targetFabricFriendlyName: { - serializedName: "targetFabricFriendlyName", + recoveryContainerId: { + serializedName: "recoveryContainerId", type: { name: "String", }, }, - policyFriendlyName: { - serializedName: "policyFriendlyName", + agentClusterId: { + serializedName: "agentClusterId", type: { name: "String", }, }, - }, - }, - }; - -export const ProtectionContainerMappingProviderSpecificDetails: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ProtectionContainerMappingProviderSpecificDetails", - uberParent: "ProtectionContainerMappingProviderSpecificDetails", - polymorphicDiscriminator: { - serializedName: "instanceType", - clientName: "instanceType", - }, - modelProperties: { - instanceType: { - serializedName: "instanceType", - required: true, + clusterFqdn: { + serializedName: "clusterFqdn", type: { name: "String", }, }, - }, - }, - }; - -export const CreateProtectionContainerMappingInput: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "CreateProtectionContainerMappingInput", - modelProperties: { - properties: { - serializedName: "properties", + clusterNodeFqdns: { + serializedName: "clusterNodeFqdns", type: { - name: "Composite", - className: "CreateProtectionContainerMappingInputProperties", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - }, - }, - }; - -export const CreateProtectionContainerMappingInputProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "CreateProtectionContainerMappingInputProperties", - modelProperties: { - targetProtectionContainerId: { - serializedName: "targetProtectionContainerId", + clusterProtectedItemIds: { + serializedName: "clusterProtectedItemIds", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - policyId: { - serializedName: "policyId", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String", }, }, - providerSpecificInput: { - serializedName: "providerSpecificInput", + areAllClusterNodesRegistered: { + serializedName: "areAllClusterNodesRegistered", + type: { + name: "Boolean", + }, + }, + clusterRegisteredNodes: { + serializedName: "clusterRegisteredNodes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RegisteredClusterNodes", + }, + }, + }, + }, + providerSpecificDetails: { + serializedName: "providerSpecificDetails", type: { name: "Composite", - className: "ReplicationProviderSpecificContainerMappingInput", + className: "ReplicationClusterProviderSpecificSettings", + }, + }, + sharedDiskProperties: { + serializedName: "sharedDiskProperties", + type: { + name: "Composite", + className: "SharedDiskReplicationItemProperties", + }, + }, + policyId: { + serializedName: "policyId", + type: { + name: "String", }, }, }, }, }; -export const ReplicationProviderSpecificContainerMappingInput: coreClient.CompositeMapper = +export const RegisteredClusterNodes: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegisteredClusterNodes", + modelProperties: { + clusterNodeFqdn: { + serializedName: "clusterNodeFqdn", + type: { + name: "String", + }, + }, + machineId: { + serializedName: "machineId", + type: { + name: "String", + }, + }, + biosId: { + serializedName: "biosId", + type: { + name: "String", + }, + }, + isSharedDiskVirtualNode: { + serializedName: "isSharedDiskVirtualNode", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const ReplicationClusterProviderSpecificSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ReplicationProviderSpecificContainerMappingInput", - uberParent: "ReplicationProviderSpecificContainerMappingInput", + className: "ReplicationClusterProviderSpecificSettings", + uberParent: "ReplicationClusterProviderSpecificSettings", polymorphicDiscriminator: { serializedName: "instanceType", clientName: "instanceType", @@ -4436,46 +4576,82 @@ export const ReplicationProviderSpecificContainerMappingInput: coreClient.Compos }, }; -export const UpdateProtectionContainerMappingInput: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "UpdateProtectionContainerMappingInput", - modelProperties: { - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "UpdateProtectionContainerMappingInputProperties", - }, +export const SharedDiskReplicationItemProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SharedDiskReplicationItemProperties", + modelProperties: { + protectionState: { + serializedName: "protectionState", + type: { + name: "String", }, }, - }, - }; - -export const UpdateProtectionContainerMappingInputProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "UpdateProtectionContainerMappingInputProperties", - modelProperties: { - providerSpecificInput: { - serializedName: "providerSpecificInput", - type: { - name: "Composite", - className: "ReplicationProviderSpecificUpdateContainerMappingInput", + testFailoverState: { + serializedName: "testFailoverState", + type: { + name: "String", + }, + }, + activeLocation: { + serializedName: "activeLocation", + type: { + name: "String", + }, + }, + allowedOperations: { + serializedName: "allowedOperations", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + replicationHealth: { + serializedName: "replicationHealth", + type: { + name: "String", + }, + }, + healthErrors: { + serializedName: "healthErrors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthError", + }, }, }, }, + currentScenario: { + serializedName: "currentScenario", + type: { + name: "Composite", + className: "CurrentScenarioDetails", + }, + }, + sharedDiskProviderSpecificDetails: { + serializedName: "sharedDiskProviderSpecificDetails", + type: { + name: "Composite", + className: "SharedDiskReplicationProviderSpecificSettings", + }, + }, }, - }; + }, +}; -export const ReplicationProviderSpecificUpdateContainerMappingInput: coreClient.CompositeMapper = +export const SharedDiskReplicationProviderSpecificSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ReplicationProviderSpecificUpdateContainerMappingInput", - uberParent: "ReplicationProviderSpecificUpdateContainerMappingInput", + className: "SharedDiskReplicationProviderSpecificSettings", + uberParent: "SharedDiskReplicationProviderSpecificSettings", polymorphicDiscriminator: { serializedName: "instanceType", clientName: "instanceType", @@ -4492,48 +4668,70 @@ export const ReplicationProviderSpecificUpdateContainerMappingInput: coreClient. }, }; -export const RemoveProtectionContainerMappingInput: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "RemoveProtectionContainerMappingInput", - modelProperties: { - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "RemoveProtectionContainerMappingInputProperties", - }, +export const ApplyClusterRecoveryPointInput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplyClusterRecoveryPointInput", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ApplyClusterRecoveryPointInputProperties", }, }, }, - }; + }, +}; -export const RemoveProtectionContainerMappingInputProperties: coreClient.CompositeMapper = +export const ApplyClusterRecoveryPointInputProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RemoveProtectionContainerMappingInputProperties", + className: "ApplyClusterRecoveryPointInputProperties", modelProperties: { - providerSpecificInput: { - serializedName: "providerSpecificInput", + clusterRecoveryPointId: { + serializedName: "clusterRecoveryPointId", + type: { + name: "String", + }, + }, + individualNodeRecoveryPoints: { + serializedName: "individualNodeRecoveryPoints", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + providerSpecificDetails: { + serializedName: "providerSpecificDetails", type: { name: "Composite", - className: "ReplicationProviderContainerUnmappingInput", + className: "ApplyClusterRecoveryPointProviderSpecificInput", }, }, }, }, }; -export const ReplicationProviderContainerUnmappingInput: coreClient.CompositeMapper = +export const ApplyClusterRecoveryPointProviderSpecificInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ReplicationProviderContainerUnmappingInput", + className: "ApplyClusterRecoveryPointProviderSpecificInput", + uberParent: "ApplyClusterRecoveryPointProviderSpecificInput", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType", + }, modelProperties: { instanceType: { serializedName: "instanceType", + required: true, type: { name: "String", }, @@ -4542,29 +4740,80 @@ export const ReplicationProviderContainerUnmappingInput: coreClient.CompositeMap }, }; -export const SwitchProtectionInput: coreClient.CompositeMapper = { +export const ClusterRecoveryPointCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SwitchProtectionInput", + className: "ClusterRecoveryPointCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ClusterRecoveryPoint", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ClusterRecoveryPoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterRecoveryPoint", modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + type: { + name: "String", + }, + }, properties: { serializedName: "properties", type: { name: "Composite", - className: "SwitchProtectionInputProperties", + className: "ClusterRecoveryPointProperties", }, }, }, }, }; -export const SwitchProtectionInputProperties: coreClient.CompositeMapper = { +export const ClusterRecoveryPointProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SwitchProtectionInputProperties", + className: "ClusterRecoveryPointProperties", modelProperties: { - replicationProtectedItemName: { - serializedName: "replicationProtectedItemName", + recoveryPointTime: { + serializedName: "recoveryPointTime", + type: { + name: "DateTime", + }, + }, + recoveryPointType: { + serializedName: "recoveryPointType", type: { name: "String", }, @@ -4573,19 +4822,19 @@ export const SwitchProtectionInputProperties: coreClient.CompositeMapper = { serializedName: "providerSpecificDetails", type: { name: "Composite", - className: "SwitchProtectionProviderSpecificInput", + className: "ClusterProviderSpecificRecoveryPointDetails", }, }, }, }, }; -export const SwitchProtectionProviderSpecificInput: coreClient.CompositeMapper = +export const ClusterProviderSpecificRecoveryPointDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SwitchProtectionProviderSpecificInput", - uberParent: "SwitchProtectionProviderSpecificInput", + className: "ClusterProviderSpecificRecoveryPointDetails", + uberParent: "ClusterProviderSpecificRecoveryPointDetails", polymorphicDiscriminator: { serializedName: "instanceType", clientName: "instanceType", @@ -4594,6 +4843,7 @@ export const SwitchProtectionProviderSpecificInput: coreClient.CompositeMapper = instanceType: { serializedName: "instanceType", required: true, + readOnly: true, type: { name: "String", }, @@ -4602,76 +4852,678 @@ export const SwitchProtectionProviderSpecificInput: coreClient.CompositeMapper = }, }; -export const RecoveryServicesProviderCollection: coreClient.CompositeMapper = { +export const ClusterTestFailoverInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecoveryServicesProviderCollection", + className: "ClusterTestFailoverInput", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecoveryServicesProvider", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", + properties: { + serializedName: "properties", type: { - name: "String", + name: "Composite", + className: "ClusterTestFailoverInputProperties", }, }, }, }, }; -export const RecoveryServicesProviderProperties: coreClient.CompositeMapper = { +export const ClusterTestFailoverInputProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecoveryServicesProviderProperties", + className: "ClusterTestFailoverInputProperties", modelProperties: { - fabricType: { - serializedName: "fabricType", + failoverDirection: { + serializedName: "failoverDirection", type: { name: "String", }, }, - friendlyName: { - serializedName: "friendlyName", + networkType: { + serializedName: "networkType", type: { name: "String", }, }, - providerVersion: { - serializedName: "providerVersion", + networkId: { + serializedName: "networkId", type: { name: "String", }, }, - serverVersion: { - serializedName: "serverVersion", + providerSpecificDetails: { + serializedName: "providerSpecificDetails", type: { - name: "String", + name: "Composite", + className: "ClusterTestFailoverProviderSpecificInput", }, }, - providerVersionState: { - serializedName: "providerVersionState", - type: { - name: "String", + }, + }, +}; + +export const ClusterTestFailoverProviderSpecificInput: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ClusterTestFailoverProviderSpecificInput", + uberParent: "ClusterTestFailoverProviderSpecificInput", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType", + }, + modelProperties: { + instanceType: { + serializedName: "instanceType", + required: true, + type: { + name: "String", + }, }, }, - providerVersionExpiryDate: { - serializedName: "providerVersionExpiryDate", + }, + }; + +export const ClusterTestFailoverCleanupInput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterTestFailoverCleanupInput", + modelProperties: { + properties: { + serializedName: "properties", type: { - name: "DateTime", + name: "Composite", + className: "ClusterTestFailoverCleanupInputProperties", }, }, - fabricFriendlyName: { - serializedName: "fabricFriendlyName", + }, + }, +}; + +export const ClusterTestFailoverCleanupInputProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ClusterTestFailoverCleanupInputProperties", + modelProperties: { + comments: { + constraints: { + MaxLength: 1024, + }, + serializedName: "comments", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ClusterUnplannedFailoverInput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterUnplannedFailoverInput", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ClusterUnplannedFailoverInputProperties", + }, + }, + }, + }, +}; + +export const ClusterUnplannedFailoverInputProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ClusterUnplannedFailoverInputProperties", + modelProperties: { + failoverDirection: { + serializedName: "failoverDirection", + type: { + name: "String", + }, + }, + sourceSiteOperations: { + serializedName: "sourceSiteOperations", + type: { + name: "String", + }, + }, + providerSpecificDetails: { + serializedName: "providerSpecificDetails", + type: { + name: "Composite", + className: "ClusterUnplannedFailoverProviderSpecificInput", + }, + }, + }, + }, + }; + +export const ClusterUnplannedFailoverProviderSpecificInput: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ClusterUnplannedFailoverProviderSpecificInput", + uberParent: "ClusterUnplannedFailoverProviderSpecificInput", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType", + }, + modelProperties: { + instanceType: { + serializedName: "instanceType", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ProtectionContainerMappingCollection: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ProtectionContainerMappingCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProtectionContainerMapping", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ProtectionContainerMappingProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ProtectionContainerMappingProperties", + modelProperties: { + targetProtectionContainerId: { + serializedName: "targetProtectionContainerId", + type: { + name: "String", + }, + }, + targetProtectionContainerFriendlyName: { + serializedName: "targetProtectionContainerFriendlyName", + type: { + name: "String", + }, + }, + providerSpecificDetails: { + serializedName: "providerSpecificDetails", + type: { + name: "Composite", + className: "ProtectionContainerMappingProviderSpecificDetails", + }, + }, + health: { + serializedName: "health", + type: { + name: "String", + }, + }, + healthErrorDetails: { + serializedName: "healthErrorDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthError", + }, + }, + }, + }, + policyId: { + serializedName: "policyId", + type: { + name: "String", + }, + }, + state: { + serializedName: "state", + type: { + name: "String", + }, + }, + sourceProtectionContainerFriendlyName: { + serializedName: "sourceProtectionContainerFriendlyName", + type: { + name: "String", + }, + }, + sourceFabricFriendlyName: { + serializedName: "sourceFabricFriendlyName", + type: { + name: "String", + }, + }, + targetFabricFriendlyName: { + serializedName: "targetFabricFriendlyName", + type: { + name: "String", + }, + }, + policyFriendlyName: { + serializedName: "policyFriendlyName", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ProtectionContainerMappingProviderSpecificDetails: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ProtectionContainerMappingProviderSpecificDetails", + uberParent: "ProtectionContainerMappingProviderSpecificDetails", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType", + }, + modelProperties: { + instanceType: { + serializedName: "instanceType", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const CreateProtectionContainerMappingInput: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CreateProtectionContainerMappingInput", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CreateProtectionContainerMappingInputProperties", + }, + }, + }, + }, + }; + +export const CreateProtectionContainerMappingInputProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CreateProtectionContainerMappingInputProperties", + modelProperties: { + targetProtectionContainerId: { + serializedName: "targetProtectionContainerId", + type: { + name: "String", + }, + }, + policyId: { + serializedName: "policyId", + type: { + name: "String", + }, + }, + providerSpecificInput: { + serializedName: "providerSpecificInput", + type: { + name: "Composite", + className: "ReplicationProviderSpecificContainerMappingInput", + }, + }, + }, + }, + }; + +export const ReplicationProviderSpecificContainerMappingInput: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ReplicationProviderSpecificContainerMappingInput", + uberParent: "ReplicationProviderSpecificContainerMappingInput", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType", + }, + modelProperties: { + instanceType: { + serializedName: "instanceType", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const UpdateProtectionContainerMappingInput: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "UpdateProtectionContainerMappingInput", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "UpdateProtectionContainerMappingInputProperties", + }, + }, + }, + }, + }; + +export const UpdateProtectionContainerMappingInputProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "UpdateProtectionContainerMappingInputProperties", + modelProperties: { + providerSpecificInput: { + serializedName: "providerSpecificInput", + type: { + name: "Composite", + className: "ReplicationProviderSpecificUpdateContainerMappingInput", + }, + }, + }, + }, + }; + +export const ReplicationProviderSpecificUpdateContainerMappingInput: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ReplicationProviderSpecificUpdateContainerMappingInput", + uberParent: "ReplicationProviderSpecificUpdateContainerMappingInput", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType", + }, + modelProperties: { + instanceType: { + serializedName: "instanceType", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const RemoveProtectionContainerMappingInput: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RemoveProtectionContainerMappingInput", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "RemoveProtectionContainerMappingInputProperties", + }, + }, + }, + }, + }; + +export const RemoveProtectionContainerMappingInputProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RemoveProtectionContainerMappingInputProperties", + modelProperties: { + providerSpecificInput: { + serializedName: "providerSpecificInput", + type: { + name: "Composite", + className: "ReplicationProviderContainerUnmappingInput", + }, + }, + }, + }, + }; + +export const ReplicationProviderContainerUnmappingInput: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ReplicationProviderContainerUnmappingInput", + modelProperties: { + instanceType: { + serializedName: "instanceType", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const SwitchClusterProtectionInput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SwitchClusterProtectionInput", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "SwitchClusterProtectionInputProperties", + }, + }, + }, + }, +}; + +export const SwitchClusterProtectionInputProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SwitchClusterProtectionInputProperties", + modelProperties: { + replicationProtectionClusterName: { + serializedName: "replicationProtectionClusterName", + type: { + name: "String", + }, + }, + providerSpecificDetails: { + serializedName: "providerSpecificDetails", + type: { + name: "Composite", + className: "SwitchClusterProtectionProviderSpecificInput", + }, + }, + }, + }, + }; + +export const SwitchClusterProtectionProviderSpecificInput: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SwitchClusterProtectionProviderSpecificInput", + uberParent: "SwitchClusterProtectionProviderSpecificInput", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType", + }, + modelProperties: { + instanceType: { + serializedName: "instanceType", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const SwitchProtectionInput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SwitchProtectionInput", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "SwitchProtectionInputProperties", + }, + }, + }, + }, +}; + +export const SwitchProtectionInputProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SwitchProtectionInputProperties", + modelProperties: { + replicationProtectedItemName: { + serializedName: "replicationProtectedItemName", + type: { + name: "String", + }, + }, + providerSpecificDetails: { + serializedName: "providerSpecificDetails", + type: { + name: "Composite", + className: "SwitchProtectionProviderSpecificInput", + }, + }, + }, + }, +}; + +export const SwitchProtectionProviderSpecificInput: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SwitchProtectionProviderSpecificInput", + uberParent: "SwitchProtectionProviderSpecificInput", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType", + }, + modelProperties: { + instanceType: { + serializedName: "instanceType", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const RecoveryServicesProviderCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RecoveryServicesProviderCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecoveryServicesProvider", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const RecoveryServicesProviderProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RecoveryServicesProviderProperties", + modelProperties: { + fabricType: { + serializedName: "fabricType", + type: { + name: "String", + }, + }, + friendlyName: { + serializedName: "friendlyName", + type: { + name: "String", + }, + }, + providerVersion: { + serializedName: "providerVersion", + type: { + name: "String", + }, + }, + serverVersion: { + serializedName: "serverVersion", + type: { + name: "String", + }, + }, + providerVersionState: { + serializedName: "providerVersionState", + type: { + name: "String", + }, + }, + providerVersionExpiryDate: { + serializedName: "providerVersionExpiryDate", + type: { + name: "DateTime", + }, + }, + fabricFriendlyName: { + serializedName: "fabricFriendlyName", type: { name: "String", }, @@ -7711,26 +8563,102 @@ export const A2AProtectedDiskDetails: coreClient.CompositeMapper = { name: "Boolean", }, }, - keyIdentifier: { - serializedName: "keyIdentifier", + keyIdentifier: { + serializedName: "keyIdentifier", + type: { + name: "String", + }, + }, + kekKeyVaultArmId: { + serializedName: "kekKeyVaultArmId", + type: { + name: "String", + }, + }, + failoverDiskName: { + serializedName: "failoverDiskName", + type: { + name: "String", + }, + }, + tfoDiskName: { + serializedName: "tfoDiskName", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const A2AProtectedItemDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "A2AProtectedItemDetail", + modelProperties: { + vmManagedDisks: { + serializedName: "vmManagedDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "A2AVmManagedDiskInputDetails", + }, + }, + }, + }, + recoveryResourceGroupId: { + serializedName: "recoveryResourceGroupId", + type: { + name: "String", + }, + }, + recoveryAvailabilitySetId: { + serializedName: "recoveryAvailabilitySetId", + type: { + name: "String", + }, + }, + recoveryBootDiagStorageAccountId: { + serializedName: "recoveryBootDiagStorageAccountId", + type: { + name: "String", + }, + }, + recoveryAvailabilityZone: { + serializedName: "recoveryAvailabilityZone", + type: { + name: "String", + }, + }, + recoveryProximityPlacementGroupId: { + serializedName: "recoveryProximityPlacementGroupId", + type: { + name: "String", + }, + }, + recoveryVirtualMachineScaleSetId: { + serializedName: "recoveryVirtualMachineScaleSetId", type: { name: "String", }, }, - kekKeyVaultArmId: { - serializedName: "kekKeyVaultArmId", + recoveryCapacityReservationGroupId: { + serializedName: "recoveryCapacityReservationGroupId", type: { name: "String", }, }, - failoverDiskName: { - serializedName: "failoverDiskName", + diskEncryptionInfo: { + serializedName: "diskEncryptionInfo", type: { - name: "String", + name: "Composite", + className: "DiskEncryptionInfo", }, }, - tfoDiskName: { - serializedName: "tfoDiskName", + replicationProtectedItemName: { + serializedName: "replicationProtectedItemName", type: { name: "String", }, @@ -8243,6 +9171,50 @@ export const InputEndpoint: coreClient.CompositeMapper = { }, }; +export const A2ASharedDiskIRErrorDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "A2ASharedDiskIRErrorDetails", + modelProperties: { + errorCode: { + serializedName: "errorCode", + readOnly: true, + type: { + name: "String", + }, + }, + errorCodeEnum: { + serializedName: "errorCodeEnum", + readOnly: true, + type: { + name: "String", + }, + }, + errorMessage: { + serializedName: "errorMessage", + readOnly: true, + type: { + name: "String", + }, + }, + possibleCauses: { + serializedName: "possibleCauses", + readOnly: true, + type: { + name: "String", + }, + }, + recommendedAction: { + serializedName: "recommendedAction", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + export const A2AVmManagedDiskUpdateDetails: coreClient.CompositeMapper = { type: { name: "Composite", @@ -8612,6 +9584,70 @@ export const AzureVmDiskDetails: coreClient.CompositeMapper = { }, }; +export const FailoverReplicationProtectedItemDetails: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "FailoverReplicationProtectedItemDetails", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + friendlyName: { + serializedName: "friendlyName", + type: { + name: "String", + }, + }, + testVmName: { + serializedName: "testVmName", + type: { + name: "String", + }, + }, + testVmFriendlyName: { + serializedName: "testVmFriendlyName", + type: { + name: "String", + }, + }, + networkConnectionStatus: { + serializedName: "networkConnectionStatus", + type: { + name: "String", + }, + }, + networkFriendlyName: { + serializedName: "networkFriendlyName", + type: { + name: "String", + }, + }, + subnet: { + serializedName: "subnet", + type: { + name: "String", + }, + }, + recoveryPointId: { + serializedName: "recoveryPointId", + type: { + name: "String", + }, + }, + recoveryPointTime: { + serializedName: "recoveryPointTime", + type: { + name: "DateTime", + }, + }, + }, + }, + }; + export const InconsistentVmDetails: coreClient.CompositeMapper = { type: { name: "Composite", @@ -8985,70 +10021,6 @@ export const JobEntity: coreClient.CompositeMapper = { }, }; -export const FailoverReplicationProtectedItemDetails: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "FailoverReplicationProtectedItemDetails", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String", - }, - }, - friendlyName: { - serializedName: "friendlyName", - type: { - name: "String", - }, - }, - testVmName: { - serializedName: "testVmName", - type: { - name: "String", - }, - }, - testVmFriendlyName: { - serializedName: "testVmFriendlyName", - type: { - name: "String", - }, - }, - networkConnectionStatus: { - serializedName: "networkConnectionStatus", - type: { - name: "String", - }, - }, - networkFriendlyName: { - serializedName: "networkFriendlyName", - type: { - name: "String", - }, - }, - subnet: { - serializedName: "subnet", - type: { - name: "String", - }, - }, - recoveryPointId: { - serializedName: "recoveryPointId", - type: { - name: "String", - }, - }, - recoveryPointTime: { - serializedName: "recoveryPointTime", - type: { - name: "DateTime", - }, - }, - }, - }, - }; - export const GatewayOperationDetails: coreClient.CompositeMapper = { type: { name: "Composite", @@ -9178,6 +10150,69 @@ export const HyperVReplicaAzureDiskInputDetails: coreClient.CompositeMapper = { name: "String", }, }, + sectorSizeInBytes: { + serializedName: "sectorSizeInBytes", + type: { + name: "Number", + }, + }, + iops: { + serializedName: "iops", + type: { + name: "Number", + }, + }, + throughputInMbps: { + serializedName: "throughputInMbps", + type: { + name: "Number", + }, + }, + diskSizeInGB: { + serializedName: "diskSizeInGB", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const SecurityProfileProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityProfileProperties", + modelProperties: { + targetVmSecurityType: { + serializedName: "targetVmSecurityType", + type: { + name: "String", + }, + }, + targetVmSecureBoot: { + serializedName: "targetVmSecureBoot", + type: { + name: "String", + }, + }, + targetVmTpm: { + serializedName: "targetVmTpm", + type: { + name: "String", + }, + }, + targetVmMonitoring: { + serializedName: "targetVmMonitoring", + type: { + name: "String", + }, + }, + targetVmConfidentialEncryption: { + serializedName: "targetVmConfidentialEncryption", + type: { + name: "String", + }, + }, }, }, }; @@ -9197,19 +10232,49 @@ export const HyperVReplicaAzureManagedDiskDetails: coreClient.CompositeMapper = seedManagedDiskId: { serializedName: "seedManagedDiskId", type: { - name: "String", + name: "String", + }, + }, + replicaDiskType: { + serializedName: "replicaDiskType", + type: { + name: "String", + }, + }, + diskEncryptionSetId: { + serializedName: "diskEncryptionSetId", + type: { + name: "String", + }, + }, + targetDiskAccountType: { + serializedName: "targetDiskAccountType", + type: { + name: "String", + }, + }, + sectorSizeInBytes: { + serializedName: "sectorSizeInBytes", + type: { + name: "Number", + }, + }, + iops: { + serializedName: "iops", + type: { + name: "Number", }, }, - replicaDiskType: { - serializedName: "replicaDiskType", + throughputInMbps: { + serializedName: "throughputInMbps", type: { - name: "String", + name: "Number", }, }, - diskEncryptionSetId: { - serializedName: "diskEncryptionSetId", + diskSizeInGB: { + serializedName: "diskSizeInGB", type: { - name: "String", + name: "Number", }, }, }, @@ -9278,6 +10343,12 @@ export const OSDetails: coreClient.CompositeMapper = { name: "String", }, }, + userSelectedOSName: { + serializedName: "userSelectedOSName", + type: { + name: "String", + }, + }, }, }, }; @@ -9328,6 +10399,24 @@ export const UpdateDiskInput: coreClient.CompositeMapper = { name: "String", }, }, + iops: { + serializedName: "iops", + type: { + name: "Number", + }, + }, + throughputInMbps: { + serializedName: "throughputInMbps", + type: { + name: "Number", + }, + }, + diskSizeInGB: { + serializedName: "diskSizeInGB", + type: { + name: "Number", + }, + }, }, }, }; @@ -9990,6 +11079,66 @@ export const InMageProtectedDiskDetails: coreClient.CompositeMapper = { }, }; +export const InMageRcmDiskInput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InMageRcmDiskInput", + modelProperties: { + diskId: { + serializedName: "diskId", + required: true, + type: { + name: "String", + }, + }, + logStorageAccountId: { + serializedName: "logStorageAccountId", + required: true, + type: { + name: "String", + }, + }, + diskType: { + serializedName: "diskType", + required: true, + type: { + name: "String", + }, + }, + diskEncryptionSetId: { + serializedName: "diskEncryptionSetId", + type: { + name: "String", + }, + }, + sectorSizeInBytes: { + serializedName: "sectorSizeInBytes", + type: { + name: "Number", + }, + }, + iops: { + serializedName: "iops", + type: { + name: "Number", + }, + }, + throughputInMbps: { + serializedName: "throughputInMbps", + type: { + name: "Number", + }, + }, + diskSizeInGB: { + serializedName: "diskSizeInGB", + type: { + name: "Number", + }, + }, + }, + }, +}; + export const InMageRcmAgentUpgradeBlockingErrorDetails: coreClient.CompositeMapper = { type: { @@ -10947,18 +12096,11 @@ export const InMageRcmDiscoveredProtectedVmDetails: coreClient.CompositeMapper = }, }; -export const InMageRcmDiskInput: coreClient.CompositeMapper = { +export const InMageRcmDisksDefaultInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InMageRcmDiskInput", + className: "InMageRcmDisksDefaultInput", modelProperties: { - diskId: { - serializedName: "diskId", - required: true, - type: { - name: "String", - }, - }, logStorageAccountId: { serializedName: "logStorageAccountId", required: true, @@ -10979,31 +12121,53 @@ export const InMageRcmDiskInput: coreClient.CompositeMapper = { name: "String", }, }, + sectorSizeInBytes: { + serializedName: "sectorSizeInBytes", + type: { + name: "Number", + }, + }, + iops: { + serializedName: "iops", + type: { + name: "Number", + }, + }, + throughputInMbps: { + serializedName: "throughputInMbps", + type: { + name: "Number", + }, + }, + diskSizeInGB: { + serializedName: "diskSizeInGB", + type: { + name: "Number", + }, + }, }, }, }; -export const InMageRcmDisksDefaultInput: coreClient.CompositeMapper = { +export const UserCreatedResourceTag: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InMageRcmDisksDefaultInput", + className: "UserCreatedResourceTag", modelProperties: { - logStorageAccountId: { - serializedName: "logStorageAccountId", - required: true, - type: { - name: "String", + tagName: { + constraints: { + MaxLength: 512, }, - }, - diskType: { - serializedName: "diskType", - required: true, + serializedName: "tagName", type: { name: "String", }, }, - diskEncryptionSetId: { - serializedName: "diskEncryptionSetId", + tagValue: { + constraints: { + MaxLength: 256, + }, + serializedName: "tagValue", type: { name: "String", }, @@ -11609,6 +12773,12 @@ export const InMageRcmNicDetails: coreClient.CompositeMapper = { name: "String", }, }, + targetNicName: { + serializedName: "targetNicName", + type: { + name: "String", + }, + }, }, }, }; @@ -11662,6 +12832,12 @@ export const InMageRcmNicInput: coreClient.CompositeMapper = { name: "String", }, }, + targetNicName: { + serializedName: "targetNicName", + type: { + name: "String", + }, + }, }, }, }; @@ -11699,6 +12875,13 @@ export const InMageRcmProtectedDiskDetails: coreClient.CompositeMapper = { name: "Number", }, }, + diskState: { + serializedName: "diskState", + readOnly: true, + type: { + name: "String", + }, + }, logStorageAccountId: { serializedName: "logStorageAccountId", readOnly: true, @@ -11775,6 +12958,36 @@ export const InMageRcmProtectedDiskDetails: coreClient.CompositeMapper = { className: "InMageRcmSyncDetails", }, }, + customTargetDiskName: { + serializedName: "customTargetDiskName", + type: { + name: "String", + }, + }, + sectorSizeInBytes: { + serializedName: "sectorSizeInBytes", + type: { + name: "Number", + }, + }, + iops: { + serializedName: "iops", + type: { + name: "Number", + }, + }, + throughputInMbps: { + serializedName: "throughputInMbps", + type: { + name: "Number", + }, + }, + diskSizeInGB: { + serializedName: "diskSizeInGB", + type: { + name: "Number", + }, + }, }, }, }; @@ -11844,6 +13057,36 @@ export const InMageRcmSyncDetails: coreClient.CompositeMapper = { }, }; +export const InMageRcmUnProtectedDiskDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InMageRcmUnProtectedDiskDetails", + modelProperties: { + diskId: { + serializedName: "diskId", + readOnly: true, + type: { + name: "String", + }, + }, + diskName: { + serializedName: "diskName", + readOnly: true, + type: { + name: "String", + }, + }, + capacityInBytes: { + serializedName: "capacityInBytes", + readOnly: true, + type: { + name: "Number", + }, + }, + }, + }, +}; + export const OSDiskDetails: coreClient.CompositeMapper = { type: { name: "Composite", @@ -11871,6 +13114,36 @@ export const OSDiskDetails: coreClient.CompositeMapper = { }, }; +export const ManagedRunCommandScriptInput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedRunCommandScriptInput", + modelProperties: { + stepName: { + serializedName: "stepName", + required: true, + type: { + name: "String", + }, + }, + scriptUrl: { + serializedName: "scriptUrl", + required: true, + type: { + name: "String", + }, + }, + scriptParameters: { + serializedName: "scriptParameters", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + export const MasterTargetServer: coreClient.CompositeMapper = { type: { name: "Composite", @@ -12419,6 +13692,33 @@ export const ProtectedItemsQueryParameter: coreClient.CompositeMapper = { }, }; +export const ProtectedClustersQueryParameter: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProtectedClustersQueryParameter", + modelProperties: { + sourceFabricName: { + serializedName: "sourceFabricName", + type: { + name: "String", + }, + }, + sourceFabricLocation: { + serializedName: "sourceFabricLocation", + type: { + name: "String", + }, + }, + instanceType: { + serializedName: "instanceType", + type: { + name: "String", + }, + }, + }, + }, +}; + export const RoleAssignment: coreClient.CompositeMapper = { type: { name: "Composite", @@ -12508,20 +13808,44 @@ export const VMwareCbtDiskInput: coreClient.CompositeMapper = { serializedName: "logStorageAccountId", required: true, type: { - name: "String", + name: "String", + }, + }, + logStorageAccountSasSecretName: { + serializedName: "logStorageAccountSasSecretName", + required: true, + type: { + name: "String", + }, + }, + diskEncryptionSetId: { + serializedName: "diskEncryptionSetId", + type: { + name: "String", + }, + }, + sectorSizeInBytes: { + serializedName: "sectorSizeInBytes", + type: { + name: "Number", + }, + }, + iops: { + serializedName: "iops", + type: { + name: "Number", }, }, - logStorageAccountSasSecretName: { - serializedName: "logStorageAccountSasSecretName", - required: true, + throughputInMbps: { + serializedName: "throughputInMbps", type: { - name: "String", + name: "Number", }, }, - diskEncryptionSetId: { - serializedName: "diskEncryptionSetId", + diskSizeInGB: { + serializedName: "diskSizeInGB", type: { - name: "String", + name: "Number", }, }, }, @@ -12675,6 +13999,30 @@ export const VMwareCbtProtectedDiskDetails: coreClient.CompositeMapper = { className: "GatewayOperationDetails", }, }, + sectorSizeInBytes: { + serializedName: "sectorSizeInBytes", + type: { + name: "Number", + }, + }, + iops: { + serializedName: "iops", + type: { + name: "Number", + }, + }, + throughputInMbps: { + serializedName: "throughputInMbps", + type: { + name: "Number", + }, + }, + diskSizeInGB: { + serializedName: "diskSizeInGB", + type: { + name: "Number", + }, + }, }, }, }; @@ -12859,6 +14207,24 @@ export const VMwareCbtUpdateDiskInput: coreClient.CompositeMapper = { name: "String", }, }, + iops: { + serializedName: "iops", + type: { + name: "Number", + }, + }, + throughputInMbps: { + serializedName: "throughputInMbps", + type: { + name: "Number", + }, + }, + diskSizeInGB: { + serializedName: "diskSizeInGB", + type: { + name: "Number", + }, + }, }, }, }; @@ -14660,6 +16026,12 @@ export const VMwareCbtMigrationDetails: coreClient.CompositeMapper = { name: "String", }, }, + linuxLicenseType: { + serializedName: "linuxLicenseType", + type: { + name: "String", + }, + }, dataMoverRunAsAccountId: { serializedName: "dataMoverRunAsAccountId", readOnly: true, @@ -14996,6 +16368,12 @@ export const VMwareCbtEnableMigrationInput: coreClient.CompositeMapper = { name: "String", }, }, + linuxLicenseType: { + serializedName: "linuxLicenseType", + type: { + name: "String", + }, + }, performSqlBulkRegistration: { serializedName: "performSqlBulkRegistration", type: { @@ -15131,6 +16509,12 @@ export const VMwareCbtEnableMigrationInput: coreClient.CompositeMapper = { value: { type: { name: "String" } }, }, }, + userSelectedOSName: { + serializedName: "userSelectedOSName", + type: { + name: "String", + }, + }, }, }, }; @@ -15235,6 +16619,18 @@ export const VMwareCbtUpdateMigrationItemInput: coreClient.CompositeMapper = { name: "String", }, }, + linuxLicenseType: { + serializedName: "linuxLicenseType", + type: { + name: "String", + }, + }, + userSelectedOSName: { + serializedName: "userSelectedOSName", + type: { + name: "String", + }, + }, performAutoResync: { serializedName: "performAutoResync", type: { @@ -15289,6 +16685,18 @@ export const VMwareCbtMigrateInput: coreClient.CompositeMapper = { name: "String", }, }, + postMigrationSteps: { + serializedName: "postMigrationSteps", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedRunCommandScriptInput", + }, + }, + }, + }, }, }, }; @@ -15376,6 +16784,18 @@ export const VMwareCbtTestMigrateInput: coreClient.CompositeMapper = { name: "String", }, }, + postMigrationSteps: { + serializedName: "postMigrationSteps", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedRunCommandScriptInput", + }, + }, + }, + }, }, }, }; @@ -15684,6 +17104,18 @@ export const A2AReplicationDetails: coreClient.CompositeMapper = { name: "String", }, }, + protectionClusterId: { + serializedName: "protectionClusterId", + type: { + name: "String", + }, + }, + isClusterInfraReady: { + serializedName: "isClusterInfraReady", + type: { + name: "Boolean", + }, + }, protectedDisks: { serializedName: "protectedDisks", type: { @@ -16164,6 +17596,12 @@ export const HyperVReplicaAzureReplicationDetails: coreClient.CompositeMapper = name: "String", }, }, + linuxLicenseType: { + serializedName: "linuxLicenseType", + type: { + name: "String", + }, + }, lastRecoveryPointReceived: { serializedName: "lastRecoveryPointReceived", readOnly: true, @@ -16223,6 +17661,13 @@ export const HyperVReplicaAzureReplicationDetails: coreClient.CompositeMapper = }, }, }, + targetVmSecurityProfile: { + serializedName: "targetVmSecurityProfile", + type: { + name: "Composite", + className: "SecurityProfileProperties", + }, + }, }, }, }; @@ -17261,6 +18706,12 @@ export const InMageRcmReplicationDetails: coreClient.CompositeMapper = { name: "String", }, }, + linuxLicenseType: { + serializedName: "linuxLicenseType", + type: { + name: "String", + }, + }, storageAccountId: { serializedName: "storageAccountId", readOnly: true, @@ -17473,6 +18924,18 @@ export const InMageRcmReplicationDetails: coreClient.CompositeMapper = { }, }, }, + unprotectedDisks: { + serializedName: "unprotectedDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InMageRcmUnProtectedDiskDetails", + }, + }, + }, + }, isLastUpgradeSuccessful: { serializedName: "isLastUpgradeSuccessful", readOnly: true, @@ -17537,6 +19000,84 @@ export const InMageRcmReplicationDetails: coreClient.CompositeMapper = { className: "InMageRcmDiscoveredProtectedVmDetails", }, }, + targetVmTags: { + serializedName: "targetVmTags", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserCreatedResourceTag", + }, + }, + }, + }, + seedManagedDiskTags: { + serializedName: "seedManagedDiskTags", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserCreatedResourceTag", + }, + }, + }, + }, + targetManagedDiskTags: { + serializedName: "targetManagedDiskTags", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserCreatedResourceTag", + }, + }, + }, + }, + targetNicTags: { + serializedName: "targetNicTags", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserCreatedResourceTag", + }, + }, + }, + }, + sqlServerLicenseType: { + serializedName: "sqlServerLicenseType", + type: { + name: "String", + }, + }, + supportedOSVersions: { + serializedName: "supportedOSVersions", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + osName: { + serializedName: "osName", + type: { + name: "String", + }, + }, + targetVmSecurityProfile: { + serializedName: "targetVmSecurityProfile", + type: { + name: "Composite", + className: "SecurityProfileProperties", + }, + }, }, }, }; @@ -17932,6 +19473,12 @@ export const A2AEnableProtectionInput: coreClient.CompositeMapper = { name: "String", }, }, + protectionClusterId: { + serializedName: "protectionClusterId", + type: { + name: "String", + }, + }, recoveryBootDiagStorageAccountId: { serializedName: "recoveryBootDiagStorageAccountId", type: { @@ -18021,6 +19568,12 @@ export const HyperVReplicaAzureEnableProtectionInput: coreClient.CompositeMapper name: "String", }, }, + userSelectedOSName: { + serializedName: "userSelectedOSName", + type: { + name: "String", + }, + }, vhdId: { serializedName: "vhdId", type: { @@ -18116,6 +19669,19 @@ export const HyperVReplicaAzureEnableProtectionInput: coreClient.CompositeMapper name: "String", }, }, + linuxLicenseType: { + serializedName: "linuxLicenseType", + type: { + name: "String", + }, + }, + targetVmSecurityProfile: { + serializedName: "targetVmSecurityProfile", + type: { + name: "Composite", + className: "SecurityProfileProperties", + }, + }, targetVmSize: { serializedName: "targetVmSize", type: { @@ -18564,23 +20130,96 @@ export const InMageRcmEnableProtectionInput: coreClient.CompositeMapper = { name: "String", }, }, - runAsAccountId: { - serializedName: "runAsAccountId", + runAsAccountId: { + serializedName: "runAsAccountId", + type: { + name: "String", + }, + }, + processServerId: { + serializedName: "processServerId", + required: true, + type: { + name: "String", + }, + }, + multiVmGroupName: { + serializedName: "multiVmGroupName", + type: { + name: "String", + }, + }, + sqlServerLicenseType: { + serializedName: "sqlServerLicenseType", + type: { + name: "String", + }, + }, + linuxLicenseType: { + serializedName: "linuxLicenseType", + type: { + name: "String", + }, + }, + targetVmTags: { + serializedName: "targetVmTags", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserCreatedResourceTag", + }, + }, + }, + }, + seedManagedDiskTags: { + serializedName: "seedManagedDiskTags", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserCreatedResourceTag", + }, + }, + }, + }, + targetManagedDiskTags: { + serializedName: "targetManagedDiskTags", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserCreatedResourceTag", + }, + }, + }, + }, + targetNicTags: { + serializedName: "targetNicTags", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserCreatedResourceTag", + }, + }, }, }, - processServerId: { - serializedName: "processServerId", - required: true, + userSelectedOSName: { + serializedName: "userSelectedOSName", type: { name: "String", }, }, - multiVmGroupName: { - serializedName: "multiVmGroupName", + targetVmSecurityProfile: { + serializedName: "targetVmSecurityProfile", type: { - name: "String", + name: "Composite", + className: "SecurityProfileProperties", }, }, }, @@ -18740,6 +20379,18 @@ export const HyperVReplicaAzureUpdateReplicationProtectedItemInput: coreClient.C name: "String", }, }, + linuxLicenseType: { + serializedName: "linuxLicenseType", + type: { + name: "String", + }, + }, + userSelectedOSName: { + serializedName: "userSelectedOSName", + type: { + name: "String", + }, + }, vmDisks: { serializedName: "vmDisks", type: { @@ -18925,6 +20576,60 @@ export const InMageRcmUpdateReplicationProtectedItemInput: coreClient.CompositeM name: "String", }, }, + sqlServerLicenseType: { + serializedName: "sqlServerLicenseType", + type: { + name: "String", + }, + }, + linuxLicenseType: { + serializedName: "linuxLicenseType", + type: { + name: "String", + }, + }, + userSelectedOSName: { + serializedName: "userSelectedOSName", + type: { + name: "String", + }, + }, + targetVmTags: { + serializedName: "targetVmTags", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserCreatedResourceTag", + }, + }, + }, + }, + targetManagedDiskTags: { + serializedName: "targetManagedDiskTags", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserCreatedResourceTag", + }, + }, + }, + }, + targetNicTags: { + serializedName: "targetNicTags", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserCreatedResourceTag", + }, + }, + }, + }, }, }, }; @@ -18967,6 +20672,33 @@ export const A2AAddDisksInput: coreClient.CompositeMapper = { }, }; +export const InMageRcmAddDisksInput: coreClient.CompositeMapper = { + serializedName: "InMageRcm", + type: { + name: "Composite", + className: "InMageRcmAddDisksInput", + uberParent: "AddDisksProviderSpecificInput", + polymorphicDiscriminator: + AddDisksProviderSpecificInput.type.polymorphicDiscriminator, + modelProperties: { + ...AddDisksProviderSpecificInput.type.modelProperties, + disks: { + serializedName: "disks", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InMageRcmDiskInput", + }, + }, + }, + }, + }, + }, +}; + export const A2AApplyRecoveryPointInput: coreClient.CompositeMapper = { serializedName: "A2A", type: { @@ -19698,16 +21430,192 @@ export const HyperVReplicaAzureTestFailoverInput: coreClient.CompositeMapper = { }, }; -export const InMageAzureV2TestFailoverInput: coreClient.CompositeMapper = { - serializedName: "InMageAzureV2", +export const InMageAzureV2TestFailoverInput: coreClient.CompositeMapper = { + serializedName: "InMageAzureV2", + type: { + name: "Composite", + className: "InMageAzureV2TestFailoverInput", + uberParent: "TestFailoverProviderSpecificInput", + polymorphicDiscriminator: + TestFailoverProviderSpecificInput.type.polymorphicDiscriminator, + modelProperties: { + ...TestFailoverProviderSpecificInput.type.modelProperties, + recoveryPointId: { + serializedName: "recoveryPointId", + type: { + name: "String", + }, + }, + osUpgradeVersion: { + serializedName: "osUpgradeVersion", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const InMageRcmTestFailoverInput: coreClient.CompositeMapper = { + serializedName: "InMageRcm", + type: { + name: "Composite", + className: "InMageRcmTestFailoverInput", + uberParent: "TestFailoverProviderSpecificInput", + polymorphicDiscriminator: + TestFailoverProviderSpecificInput.type.polymorphicDiscriminator, + modelProperties: { + ...TestFailoverProviderSpecificInput.type.modelProperties, + networkId: { + serializedName: "networkId", + type: { + name: "String", + }, + }, + recoveryPointId: { + serializedName: "recoveryPointId", + type: { + name: "String", + }, + }, + osUpgradeVersion: { + serializedName: "osUpgradeVersion", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const InMageTestFailoverInput: coreClient.CompositeMapper = { + serializedName: "InMage", + type: { + name: "Composite", + className: "InMageTestFailoverInput", + uberParent: "TestFailoverProviderSpecificInput", + polymorphicDiscriminator: + TestFailoverProviderSpecificInput.type.polymorphicDiscriminator, + modelProperties: { + ...TestFailoverProviderSpecificInput.type.modelProperties, + recoveryPointType: { + serializedName: "recoveryPointType", + type: { + name: "String", + }, + }, + recoveryPointId: { + serializedName: "recoveryPointId", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const A2AUnplannedFailoverInput: coreClient.CompositeMapper = { + serializedName: "A2A", + type: { + name: "Composite", + className: "A2AUnplannedFailoverInput", + uberParent: "UnplannedFailoverProviderSpecificInput", + polymorphicDiscriminator: + UnplannedFailoverProviderSpecificInput.type.polymorphicDiscriminator, + modelProperties: { + ...UnplannedFailoverProviderSpecificInput.type.modelProperties, + recoveryPointId: { + serializedName: "recoveryPointId", + type: { + name: "String", + }, + }, + cloudServiceCreationOption: { + serializedName: "cloudServiceCreationOption", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const HyperVReplicaAzureUnplannedFailoverInput: coreClient.CompositeMapper = + { + serializedName: "HyperVReplicaAzure", + type: { + name: "Composite", + className: "HyperVReplicaAzureUnplannedFailoverInput", + uberParent: "UnplannedFailoverProviderSpecificInput", + polymorphicDiscriminator: + UnplannedFailoverProviderSpecificInput.type.polymorphicDiscriminator, + modelProperties: { + ...UnplannedFailoverProviderSpecificInput.type.modelProperties, + primaryKekCertificatePfx: { + serializedName: "primaryKekCertificatePfx", + type: { + name: "String", + }, + }, + secondaryKekCertificatePfx: { + serializedName: "secondaryKekCertificatePfx", + type: { + name: "String", + }, + }, + recoveryPointId: { + serializedName: "recoveryPointId", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const InMageAzureV2UnplannedFailoverInput: coreClient.CompositeMapper = { + serializedName: "InMageAzureV2", + type: { + name: "Composite", + className: "InMageAzureV2UnplannedFailoverInput", + uberParent: "UnplannedFailoverProviderSpecificInput", + polymorphicDiscriminator: + UnplannedFailoverProviderSpecificInput.type.polymorphicDiscriminator, + modelProperties: { + ...UnplannedFailoverProviderSpecificInput.type.modelProperties, + recoveryPointId: { + serializedName: "recoveryPointId", + type: { + name: "String", + }, + }, + osUpgradeVersion: { + serializedName: "osUpgradeVersion", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const InMageRcmUnplannedFailoverInput: coreClient.CompositeMapper = { + serializedName: "InMageRcm", type: { name: "Composite", - className: "InMageAzureV2TestFailoverInput", - uberParent: "TestFailoverProviderSpecificInput", + className: "InMageRcmUnplannedFailoverInput", + uberParent: "UnplannedFailoverProviderSpecificInput", polymorphicDiscriminator: - TestFailoverProviderSpecificInput.type.polymorphicDiscriminator, + UnplannedFailoverProviderSpecificInput.type.polymorphicDiscriminator, modelProperties: { - ...TestFailoverProviderSpecificInput.type.modelProperties, + ...UnplannedFailoverProviderSpecificInput.type.modelProperties, + performShutdown: { + serializedName: "performShutdown", + required: true, + type: { + name: "String", + }, + }, recoveryPointId: { serializedName: "recoveryPointId", type: { @@ -19724,18 +21632,18 @@ export const InMageAzureV2TestFailoverInput: coreClient.CompositeMapper = { }, }; -export const InMageRcmTestFailoverInput: coreClient.CompositeMapper = { - serializedName: "InMageRcm", +export const InMageUnplannedFailoverInput: coreClient.CompositeMapper = { + serializedName: "InMage", type: { name: "Composite", - className: "InMageRcmTestFailoverInput", - uberParent: "TestFailoverProviderSpecificInput", + className: "InMageUnplannedFailoverInput", + uberParent: "UnplannedFailoverProviderSpecificInput", polymorphicDiscriminator: - TestFailoverProviderSpecificInput.type.polymorphicDiscriminator, + UnplannedFailoverProviderSpecificInput.type.polymorphicDiscriminator, modelProperties: { - ...TestFailoverProviderSpecificInput.type.modelProperties, - networkId: { - serializedName: "networkId", + ...UnplannedFailoverProviderSpecificInput.type.modelProperties, + recoveryPointType: { + serializedName: "recoveryPointType", type: { name: "String", }, @@ -19750,194 +21658,378 @@ export const InMageRcmTestFailoverInput: coreClient.CompositeMapper = { }, }; -export const InMageTestFailoverInput: coreClient.CompositeMapper = { - serializedName: "InMage", +export const InMageRcmUpdateApplianceForReplicationProtectedItemInput: coreClient.CompositeMapper = + { + serializedName: "InMageRcm", + type: { + name: "Composite", + className: "InMageRcmUpdateApplianceForReplicationProtectedItemInput", + uberParent: + "UpdateApplianceForReplicationProtectedItemProviderSpecificInput", + polymorphicDiscriminator: + UpdateApplianceForReplicationProtectedItemProviderSpecificInput.type + .polymorphicDiscriminator, + modelProperties: { + ...UpdateApplianceForReplicationProtectedItemProviderSpecificInput.type + .modelProperties, + runAsAccountId: { + serializedName: "runAsAccountId", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const A2AReplicationProtectionClusterDetails: coreClient.CompositeMapper = + { + serializedName: "A2A", + type: { + name: "Composite", + className: "A2AReplicationProtectionClusterDetails", + uberParent: "ReplicationClusterProviderSpecificSettings", + polymorphicDiscriminator: + ReplicationClusterProviderSpecificSettings.type + .polymorphicDiscriminator, + modelProperties: { + ...ReplicationClusterProviderSpecificSettings.type.modelProperties, + multiVmGroupId: { + serializedName: "multiVmGroupId", + type: { + name: "String", + }, + }, + multiVmGroupName: { + serializedName: "multiVmGroupName", + type: { + name: "String", + }, + }, + multiVmGroupCreateOption: { + serializedName: "multiVmGroupCreateOption", + type: { + name: "String", + }, + }, + primaryFabricLocation: { + serializedName: "primaryFabricLocation", + type: { + name: "String", + }, + }, + recoveryFabricLocation: { + serializedName: "recoveryFabricLocation", + type: { + name: "String", + }, + }, + failoverRecoveryPointId: { + serializedName: "failoverRecoveryPointId", + type: { + name: "String", + }, + }, + clusterManagementId: { + serializedName: "clusterManagementId", + type: { + name: "String", + }, + }, + rpoInSeconds: { + serializedName: "rpoInSeconds", + type: { + name: "Number", + }, + }, + lastRpoCalculatedTime: { + serializedName: "lastRpoCalculatedTime", + type: { + name: "DateTime", + }, + }, + initialPrimaryZone: { + serializedName: "initialPrimaryZone", + type: { + name: "String", + }, + }, + initialPrimaryFabricLocation: { + serializedName: "initialPrimaryFabricLocation", + type: { + name: "String", + }, + }, + initialRecoveryZone: { + serializedName: "initialRecoveryZone", + type: { + name: "String", + }, + }, + initialRecoveryFabricLocation: { + serializedName: "initialRecoveryFabricLocation", + type: { + name: "String", + }, + }, + initialPrimaryExtendedLocation: { + serializedName: "initialPrimaryExtendedLocation", + type: { + name: "Composite", + className: "ExtendedLocation", + }, + }, + initialRecoveryExtendedLocation: { + serializedName: "initialRecoveryExtendedLocation", + type: { + name: "Composite", + className: "ExtendedLocation", + }, + }, + primaryAvailabilityZone: { + serializedName: "primaryAvailabilityZone", + type: { + name: "String", + }, + }, + recoveryAvailabilityZone: { + serializedName: "recoveryAvailabilityZone", + type: { + name: "String", + }, + }, + primaryExtendedLocation: { + serializedName: "primaryExtendedLocation", + type: { + name: "Composite", + className: "ExtendedLocation", + }, + }, + recoveryExtendedLocation: { + serializedName: "recoveryExtendedLocation", + type: { + name: "Composite", + className: "ExtendedLocation", + }, + }, + lifecycleId: { + serializedName: "lifecycleId", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const A2ASharedDiskReplicationDetails: coreClient.CompositeMapper = { + serializedName: "A2A", type: { name: "Composite", - className: "InMageTestFailoverInput", - uberParent: "TestFailoverProviderSpecificInput", + className: "A2ASharedDiskReplicationDetails", + uberParent: "SharedDiskReplicationProviderSpecificSettings", polymorphicDiscriminator: - TestFailoverProviderSpecificInput.type.polymorphicDiscriminator, + SharedDiskReplicationProviderSpecificSettings.type + .polymorphicDiscriminator, modelProperties: { - ...TestFailoverProviderSpecificInput.type.modelProperties, - recoveryPointType: { - serializedName: "recoveryPointType", + ...SharedDiskReplicationProviderSpecificSettings.type.modelProperties, + managementId: { + serializedName: "managementId", type: { name: "String", }, }, - recoveryPointId: { - serializedName: "recoveryPointId", + unprotectedDisks: { + serializedName: "unprotectedDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "A2AUnprotectedDiskDetails", + }, + }, + }, + }, + protectedManagedDisks: { + serializedName: "protectedManagedDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "A2AProtectedManagedDiskDetails", + }, + }, + }, + }, + primaryFabricLocation: { + serializedName: "primaryFabricLocation", + type: { + name: "String", + }, + }, + recoveryFabricLocation: { + serializedName: "recoveryFabricLocation", + type: { + name: "String", + }, + }, + failoverRecoveryPointId: { + serializedName: "failoverRecoveryPointId", + type: { + name: "String", + }, + }, + monitoringPercentageCompletion: { + serializedName: "monitoringPercentageCompletion", + type: { + name: "Number", + }, + }, + monitoringJobType: { + serializedName: "monitoringJobType", type: { name: "String", }, }, + rpoInSeconds: { + serializedName: "rpoInSeconds", + type: { + name: "Number", + }, + }, + lastRpoCalculatedTime: { + serializedName: "lastRpoCalculatedTime", + type: { + name: "DateTime", + }, + }, + sharedDiskIRErrors: { + serializedName: "sharedDiskIRErrors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "A2ASharedDiskIRErrorDetails", + }, + }, + }, + }, }, }, }; -export const A2AUnplannedFailoverInput: coreClient.CompositeMapper = { +export const A2AApplyClusterRecoveryPointInput: coreClient.CompositeMapper = { serializedName: "A2A", type: { name: "Composite", - className: "A2AUnplannedFailoverInput", - uberParent: "UnplannedFailoverProviderSpecificInput", + className: "A2AApplyClusterRecoveryPointInput", + uberParent: "ApplyClusterRecoveryPointProviderSpecificInput", polymorphicDiscriminator: - UnplannedFailoverProviderSpecificInput.type.polymorphicDiscriminator, + ApplyClusterRecoveryPointProviderSpecificInput.type + .polymorphicDiscriminator, modelProperties: { - ...UnplannedFailoverProviderSpecificInput.type.modelProperties, - recoveryPointId: { - serializedName: "recoveryPointId", - type: { - name: "String", - }, - }, - cloudServiceCreationOption: { - serializedName: "cloudServiceCreationOption", - type: { - name: "String", - }, - }, + ...ApplyClusterRecoveryPointProviderSpecificInput.type.modelProperties, }, }, }; -export const HyperVReplicaAzureUnplannedFailoverInput: coreClient.CompositeMapper = - { - serializedName: "HyperVReplicaAzure", - type: { - name: "Composite", - className: "HyperVReplicaAzureUnplannedFailoverInput", - uberParent: "UnplannedFailoverProviderSpecificInput", - polymorphicDiscriminator: - UnplannedFailoverProviderSpecificInput.type.polymorphicDiscriminator, - modelProperties: { - ...UnplannedFailoverProviderSpecificInput.type.modelProperties, - primaryKekCertificatePfx: { - serializedName: "primaryKekCertificatePfx", - type: { - name: "String", - }, - }, - secondaryKekCertificatePfx: { - serializedName: "secondaryKekCertificatePfx", - type: { - name: "String", - }, - }, - recoveryPointId: { - serializedName: "recoveryPointId", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const InMageAzureV2UnplannedFailoverInput: coreClient.CompositeMapper = { - serializedName: "InMageAzureV2", +export const A2AClusterRecoveryPointDetails: coreClient.CompositeMapper = { + serializedName: "A2A", type: { name: "Composite", - className: "InMageAzureV2UnplannedFailoverInput", - uberParent: "UnplannedFailoverProviderSpecificInput", + className: "A2AClusterRecoveryPointDetails", + uberParent: "ClusterProviderSpecificRecoveryPointDetails", polymorphicDiscriminator: - UnplannedFailoverProviderSpecificInput.type.polymorphicDiscriminator, + ClusterProviderSpecificRecoveryPointDetails.type.polymorphicDiscriminator, modelProperties: { - ...UnplannedFailoverProviderSpecificInput.type.modelProperties, - recoveryPointId: { - serializedName: "recoveryPointId", + ...ClusterProviderSpecificRecoveryPointDetails.type.modelProperties, + recoveryPointSyncType: { + serializedName: "recoveryPointSyncType", type: { name: "String", }, }, - osUpgradeVersion: { - serializedName: "osUpgradeVersion", + nodes: { + serializedName: "nodes", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const InMageRcmUnplannedFailoverInput: coreClient.CompositeMapper = { - serializedName: "InMageRcm", +export const A2AClusterTestFailoverInput: coreClient.CompositeMapper = { + serializedName: "A2A", type: { name: "Composite", - className: "InMageRcmUnplannedFailoverInput", - uberParent: "UnplannedFailoverProviderSpecificInput", + className: "A2AClusterTestFailoverInput", + uberParent: "ClusterTestFailoverProviderSpecificInput", polymorphicDiscriminator: - UnplannedFailoverProviderSpecificInput.type.polymorphicDiscriminator, + ClusterTestFailoverProviderSpecificInput.type.polymorphicDiscriminator, modelProperties: { - ...UnplannedFailoverProviderSpecificInput.type.modelProperties, - performShutdown: { - serializedName: "performShutdown", - required: true, + ...ClusterTestFailoverProviderSpecificInput.type.modelProperties, + clusterRecoveryPointId: { + serializedName: "clusterRecoveryPointId", type: { name: "String", }, }, - recoveryPointId: { - serializedName: "recoveryPointId", + individualNodeRecoveryPoints: { + serializedName: "individualNodeRecoveryPoints", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const InMageUnplannedFailoverInput: coreClient.CompositeMapper = { - serializedName: "InMage", +export const A2AClusterUnplannedFailoverInput: coreClient.CompositeMapper = { + serializedName: "A2A", type: { name: "Composite", - className: "InMageUnplannedFailoverInput", - uberParent: "UnplannedFailoverProviderSpecificInput", + className: "A2AClusterUnplannedFailoverInput", + uberParent: "ClusterUnplannedFailoverProviderSpecificInput", polymorphicDiscriminator: - UnplannedFailoverProviderSpecificInput.type.polymorphicDiscriminator, + ClusterUnplannedFailoverProviderSpecificInput.type + .polymorphicDiscriminator, modelProperties: { - ...UnplannedFailoverProviderSpecificInput.type.modelProperties, - recoveryPointType: { - serializedName: "recoveryPointType", + ...ClusterUnplannedFailoverProviderSpecificInput.type.modelProperties, + clusterRecoveryPointId: { + serializedName: "clusterRecoveryPointId", type: { name: "String", }, }, - recoveryPointId: { - serializedName: "recoveryPointId", + individualNodeRecoveryPoints: { + serializedName: "individualNodeRecoveryPoints", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const InMageRcmUpdateApplianceForReplicationProtectedItemInput: coreClient.CompositeMapper = - { - serializedName: "InMageRcm", - type: { - name: "Composite", - className: "InMageRcmUpdateApplianceForReplicationProtectedItemInput", - uberParent: - "UpdateApplianceForReplicationProtectedItemProviderSpecificInput", - polymorphicDiscriminator: - UpdateApplianceForReplicationProtectedItemProviderSpecificInput.type - .polymorphicDiscriminator, - modelProperties: { - ...UpdateApplianceForReplicationProtectedItemProviderSpecificInput.type - .modelProperties, - runAsAccountId: { - serializedName: "runAsAccountId", - type: { - name: "String", - }, - }, - }, - }, - }; - export const A2AProtectionContainerMappingDetails: coreClient.CompositeMapper = { serializedName: "A2A", @@ -20231,6 +22323,45 @@ export const InMageRcmUpdateContainerMappingInput: coreClient.CompositeMapper = }, }; +export const A2ASwitchClusterProtectionInput: coreClient.CompositeMapper = { + serializedName: "A2A", + type: { + name: "Composite", + className: "A2ASwitchClusterProtectionInput", + uberParent: "SwitchClusterProtectionProviderSpecificInput", + polymorphicDiscriminator: + SwitchClusterProtectionProviderSpecificInput.type + .polymorphicDiscriminator, + modelProperties: { + ...SwitchClusterProtectionProviderSpecificInput.type.modelProperties, + recoveryContainerId: { + serializedName: "recoveryContainerId", + type: { + name: "String", + }, + }, + policyId: { + serializedName: "policyId", + type: { + name: "String", + }, + }, + protectedItemsDetail: { + serializedName: "protectedItemsDetail", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "A2AProtectedItemDetail", + }, + }, + }, + }, + }, + }, +}; + export const A2ASwitchProtectionInput: coreClient.CompositeMapper = { serializedName: "A2A", type: { @@ -20592,31 +22723,130 @@ export const RecoveryPlanGroupTaskDetails: coreClient.CompositeMapper = { name: "String", }, }, - groupId: { - serializedName: "groupId", + groupId: { + serializedName: "groupId", + type: { + name: "String", + }, + }, + rpGroupType: { + serializedName: "rpGroupType", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const AsrJobDetails: coreClient.CompositeMapper = { + serializedName: "AsrJobDetails", + type: { + name: "Composite", + className: "AsrJobDetails", + uberParent: "JobDetails", + polymorphicDiscriminator: JobDetails.type.polymorphicDiscriminator, + modelProperties: { + ...JobDetails.type.modelProperties, + }, + }, +}; + +export const ClusterFailoverJobDetails: coreClient.CompositeMapper = { + serializedName: "ClusterFailoverJobDetails", + type: { + name: "Composite", + className: "ClusterFailoverJobDetails", + uberParent: "JobDetails", + polymorphicDiscriminator: JobDetails.type.polymorphicDiscriminator, + modelProperties: { + ...JobDetails.type.modelProperties, + protectedItemDetails: { + serializedName: "protectedItemDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FailoverReplicationProtectedItemDetails", + }, + }, + }, + }, + }, + }, +}; + +export const ClusterSwitchProtectionJobDetails: coreClient.CompositeMapper = { + serializedName: "ClusterSwitchProtectionJobDetails", + type: { + name: "Composite", + className: "ClusterSwitchProtectionJobDetails", + uberParent: "JobDetails", + polymorphicDiscriminator: JobDetails.type.polymorphicDiscriminator, + modelProperties: { + ...JobDetails.type.modelProperties, + newReplicationProtectionClusterId: { + serializedName: "newReplicationProtectionClusterId", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ClusterTestFailoverJobDetails: coreClient.CompositeMapper = { + serializedName: "ClusterTestFailoverJobDetails", + type: { + name: "Composite", + className: "ClusterTestFailoverJobDetails", + uberParent: "JobDetails", + polymorphicDiscriminator: JobDetails.type.polymorphicDiscriminator, + modelProperties: { + ...JobDetails.type.modelProperties, + testFailoverStatus: { + serializedName: "testFailoverStatus", + type: { + name: "String", + }, + }, + comments: { + serializedName: "comments", + type: { + name: "String", + }, + }, + networkName: { + serializedName: "networkName", + type: { + name: "String", + }, + }, + networkFriendlyName: { + serializedName: "networkFriendlyName", type: { name: "String", }, }, - rpGroupType: { - serializedName: "rpGroupType", + networkType: { + serializedName: "networkType", type: { name: "String", }, }, - }, - }, -}; - -export const AsrJobDetails: coreClient.CompositeMapper = { - serializedName: "AsrJobDetails", - type: { - name: "Composite", - className: "AsrJobDetails", - uberParent: "JobDetails", - polymorphicDiscriminator: JobDetails.type.polymorphicDiscriminator, - modelProperties: { - ...JobDetails.type.modelProperties, + protectedItemDetails: { + serializedName: "protectedItemDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FailoverReplicationProtectedItemDetails", + }, + }, + }, + }, }, }, }; @@ -22668,6 +24898,63 @@ export const ReplicationFabricsRemoveInfraHeaders: coreClient.CompositeMapper = }, }; +export const ReplicationProtectionContainersSwitchClusterProtectionHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: + "ReplicationProtectionContainersSwitchClusterProtectionHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ReplicationProtectionContainersSwitchProtectionHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ReplicationProtectionContainersSwitchProtectionHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "String", + }, + }, + }, + }, + }; + export const ReplicationProtectedItemsUpdateMobilityServiceHeaders: coreClient.CompositeMapper = { type: { @@ -22684,6 +24971,230 @@ export const ReplicationProtectedItemsUpdateMobilityServiceHeaders: coreClient.C }, }; +export const ReplicationProtectionClustersCreateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ReplicationProtectionClustersCreateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ReplicationProtectionClustersPurgeHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ReplicationProtectionClustersPurgeHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ReplicationProtectionClustersApplyRecoveryPointHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ReplicationProtectionClustersApplyRecoveryPointHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ReplicationProtectionClustersFailoverCommitHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ReplicationProtectionClustersFailoverCommitHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ReplicationProtectionClustersRepairReplicationHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ReplicationProtectionClustersRepairReplicationHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ReplicationProtectionClustersTestFailoverHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ReplicationProtectionClustersTestFailoverHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ReplicationProtectionClustersTestFailoverCleanupHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ReplicationProtectionClustersTestFailoverCleanupHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ReplicationProtectionClustersUnplannedFailoverHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ReplicationProtectionClustersUnplannedFailoverHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "String", + }, + }, + }, + }, + }; + export let discriminators = { ApplianceSpecificDetails: ApplianceSpecificDetails, EventProviderSpecificDetails: EventProviderSpecificDetails, @@ -22728,12 +25239,26 @@ export let discriminators = { UnplannedFailoverProviderSpecificInput, UpdateApplianceForReplicationProtectedItemProviderSpecificInput: UpdateApplianceForReplicationProtectedItemProviderSpecificInput, + ReplicationClusterProviderSpecificSettings: + ReplicationClusterProviderSpecificSettings, + SharedDiskReplicationProviderSpecificSettings: + SharedDiskReplicationProviderSpecificSettings, + ApplyClusterRecoveryPointProviderSpecificInput: + ApplyClusterRecoveryPointProviderSpecificInput, + ClusterProviderSpecificRecoveryPointDetails: + ClusterProviderSpecificRecoveryPointDetails, + ClusterTestFailoverProviderSpecificInput: + ClusterTestFailoverProviderSpecificInput, + ClusterUnplannedFailoverProviderSpecificInput: + ClusterUnplannedFailoverProviderSpecificInput, ProtectionContainerMappingProviderSpecificDetails: ProtectionContainerMappingProviderSpecificDetails, ReplicationProviderSpecificContainerMappingInput: ReplicationProviderSpecificContainerMappingInput, ReplicationProviderSpecificUpdateContainerMappingInput: ReplicationProviderSpecificUpdateContainerMappingInput, + SwitchClusterProtectionProviderSpecificInput: + SwitchClusterProtectionProviderSpecificInput, SwitchProtectionProviderSpecificInput: SwitchProtectionProviderSpecificInput, TaskTypeDetails: TaskTypeDetails, GroupTaskDetails: GroupTaskDetails, @@ -22854,6 +25379,7 @@ export let discriminators = { "UpdateReplicationProtectedItemProviderInput.InMageRcm": InMageRcmUpdateReplicationProtectedItemInput, "AddDisksProviderSpecificInput.A2A": A2AAddDisksInput, + "AddDisksProviderSpecificInput.InMageRcm": InMageRcmAddDisksInput, "ApplyRecoveryPointProviderSpecificInput.A2A": A2AApplyRecoveryPointInput, "ApplyRecoveryPointProviderSpecificInput.A2ACrossClusterMigration": A2ACrossClusterMigrationApplyRecoveryPointInput, @@ -22904,6 +25430,17 @@ export let discriminators = { "UnplannedFailoverProviderSpecificInput.InMage": InMageUnplannedFailoverInput, "UpdateApplianceForReplicationProtectedItemProviderSpecificInput.InMageRcm": InMageRcmUpdateApplianceForReplicationProtectedItemInput, + "ReplicationClusterProviderSpecificSettings.A2A": + A2AReplicationProtectionClusterDetails, + "SharedDiskReplicationProviderSpecificSettings.A2A": + A2ASharedDiskReplicationDetails, + "ApplyClusterRecoveryPointProviderSpecificInput.A2A": + A2AApplyClusterRecoveryPointInput, + "ClusterProviderSpecificRecoveryPointDetails.A2A": + A2AClusterRecoveryPointDetails, + "ClusterTestFailoverProviderSpecificInput.A2A": A2AClusterTestFailoverInput, + "ClusterUnplannedFailoverProviderSpecificInput.A2A": + A2AClusterUnplannedFailoverInput, "ProtectionContainerMappingProviderSpecificDetails.A2A": A2AProtectionContainerMappingDetails, "ProtectionContainerMappingProviderSpecificDetails.InMageRcm": @@ -22918,6 +25455,8 @@ export let discriminators = { A2AUpdateContainerMappingInput, "ReplicationProviderSpecificUpdateContainerMappingInput.InMageRcm": InMageRcmUpdateContainerMappingInput, + "SwitchClusterProtectionProviderSpecificInput.A2A": + A2ASwitchClusterProtectionInput, "SwitchProtectionProviderSpecificInput.A2A": A2ASwitchProtectionInput, "TaskTypeDetails.AutomationRunbookTaskDetails": AutomationRunbookTaskDetails, "TaskTypeDetails.ConsistencyCheckTaskDetails": ConsistencyCheckTaskDetails, @@ -22928,6 +25467,10 @@ export let discriminators = { "GroupTaskDetails.InlineWorkflowTaskDetails": InlineWorkflowTaskDetails, "GroupTaskDetails.RecoveryPlanGroupTaskDetails": RecoveryPlanGroupTaskDetails, "JobDetails.AsrJobDetails": AsrJobDetails, + "JobDetails.ClusterFailoverJobDetails": ClusterFailoverJobDetails, + "JobDetails.ClusterSwitchProtectionJobDetails": + ClusterSwitchProtectionJobDetails, + "JobDetails.ClusterTestFailoverJobDetails": ClusterTestFailoverJobDetails, "JobDetails.ExportJobDetails": ExportJobDetails, "JobDetails.FailoverJobDetails": FailoverJobDetails, "JobDetails.SwitchProtectionJobDetails": SwitchProtectionJobDetails, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/parameters.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/parameters.ts index 692cc2526f47..5dccf2389086 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/parameters.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/parameters.ts @@ -20,6 +20,7 @@ import { UpdateNetworkMappingInput as UpdateNetworkMappingInputMapper, CreateProtectionContainerInput as CreateProtectionContainerInputMapper, DiscoverProtectableItemRequest as DiscoverProtectableItemRequestMapper, + SwitchClusterProtectionInput as SwitchClusterProtectionInputMapper, SwitchProtectionInput as SwitchProtectionInputMapper, EnableMigrationInput as EnableMigrationInputMapper, UpdateMigrationItemInput as UpdateMigrationItemInputMapper, @@ -44,6 +45,11 @@ import { UnplannedFailoverInput as UnplannedFailoverInputMapper, UpdateApplianceForReplicationProtectedItemInput as UpdateApplianceForReplicationProtectedItemInputMapper, UpdateMobilityServiceRequest as UpdateMobilityServiceRequestMapper, + ReplicationProtectionCluster as ReplicationProtectionClusterMapper, + ApplyClusterRecoveryPointInput as ApplyClusterRecoveryPointInputMapper, + ClusterTestFailoverInput as ClusterTestFailoverInputMapper, + ClusterTestFailoverCleanupInput as ClusterTestFailoverCleanupInputMapper, + ClusterUnplannedFailoverInput as ClusterUnplannedFailoverInputMapper, CreateProtectionContainerMappingInput as CreateProtectionContainerMappingInputMapper, UpdateProtectionContainerMappingInput as UpdateProtectionContainerMappingInputMapper, RemoveProtectionContainerMappingInput as RemoveProtectionContainerMappingInputMapper, @@ -92,7 +98,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-08-01", + defaultValue: "2025-02-01", isConstant: true, serializedName: "api-version", type: { @@ -325,6 +331,25 @@ export const discoverProtectableItemRequest: OperationParameter = { }; export const switchInput: OperationParameter = { + parameterPath: "switchInput", + mapper: SwitchClusterProtectionInputMapper, +}; + +export const protectionContainerName1: OperationURLParameter = { + parameterPath: "protectionContainerName", + mapper: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"), + }, + serializedName: "protectionContainerName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const switchInput1: OperationParameter = { parameterPath: "switchInput", mapper: SwitchProtectionInputMapper, }; @@ -549,6 +574,73 @@ export const recoveryPointName: OperationURLParameter = { }, }; +export const replicationProtectionClusterName: OperationURLParameter = { + parameterPath: "replicationProtectionClusterName", + mapper: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"), + }, + serializedName: "replicationProtectionClusterName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const replicationProtectionCluster: OperationParameter = { + parameterPath: "replicationProtectionCluster", + mapper: ReplicationProtectionClusterMapper, +}; + +export const applyClusterRecoveryPointInput: OperationParameter = { + parameterPath: "applyClusterRecoveryPointInput", + mapper: ApplyClusterRecoveryPointInputMapper, +}; + +export const jobId: OperationURLParameter = { + parameterPath: "jobId", + mapper: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"), + }, + serializedName: "jobId", + required: true, + type: { + name: "String", + }, + }, +}; + +export const failoverInput2: OperationParameter = { + parameterPath: "failoverInput", + mapper: ClusterTestFailoverInputMapper, +}; + +export const cleanupInput1: OperationParameter = { + parameterPath: "cleanupInput", + mapper: ClusterTestFailoverCleanupInputMapper, +}; + +export const failoverInput3: OperationParameter = { + parameterPath: "failoverInput", + mapper: ClusterUnplannedFailoverInputMapper, +}; + +export const recoveryPointName1: OperationURLParameter = { + parameterPath: "recoveryPointName", + mapper: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"), + }, + serializedName: "recoveryPointName", + required: true, + type: { + name: "String", + }, + }, +}; + export const mappingName: OperationURLParameter = { parameterPath: "mappingName", mapper: { diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/clusterRecoveryPointOperations.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/clusterRecoveryPointOperations.ts new file mode 100644 index 000000000000..6ca720dfbdac --- /dev/null +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/clusterRecoveryPointOperations.ts @@ -0,0 +1,94 @@ +/* + * 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 { ClusterRecoveryPointOperations } from "../operationsInterfaces/index.js"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { SiteRecoveryManagementClient } from "../siteRecoveryManagementClient.js"; +import { + ClusterRecoveryPointGetOptionalParams, + ClusterRecoveryPointGetResponse, +} from "../models/index.js"; + +/** Class containing ClusterRecoveryPointOperations operations. */ +export class ClusterRecoveryPointOperationsImpl + implements ClusterRecoveryPointOperations +{ + private readonly client: SiteRecoveryManagementClient; + + /** + * Initialize a new instance of the class ClusterRecoveryPointOperations class. + * @param client Reference to the service client + */ + constructor(client: SiteRecoveryManagementClient) { + this.client = client; + } + + /** + * Get the details of specified recovery point. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param recoveryPointName The recovery point name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + recoveryPointName: string, + options?: ClusterRecoveryPointGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + recoveryPointName, + options, + }, + getOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/recoveryPoints/{recoveryPointName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ClusterRecoveryPoint, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceName1, + Parameters.fabricName1, + Parameters.protectionContainerName1, + Parameters.replicationProtectionClusterName, + Parameters.recoveryPointName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/clusterRecoveryPoints.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/clusterRecoveryPoints.ts new file mode 100644 index 000000000000..faac304c31dc --- /dev/null +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/clusterRecoveryPoints.ts @@ -0,0 +1,267 @@ +/* + * 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.js"; +import { ClusterRecoveryPoints } from "../operationsInterfaces/index.js"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { SiteRecoveryManagementClient } from "../siteRecoveryManagementClient.js"; +import { + ClusterRecoveryPoint, + ClusterRecoveryPointsListByReplicationProtectionClusterNextOptionalParams, + ClusterRecoveryPointsListByReplicationProtectionClusterOptionalParams, + ClusterRecoveryPointsListByReplicationProtectionClusterResponse, + ClusterRecoveryPointsListByReplicationProtectionClusterNextResponse, +} from "../models/index.js"; + +/// +/** Class containing ClusterRecoveryPoints operations. */ +export class ClusterRecoveryPointsImpl implements ClusterRecoveryPoints { + private readonly client: SiteRecoveryManagementClient; + + /** + * Initialize a new instance of the class ClusterRecoveryPoints class. + * @param client Reference to the service client + */ + constructor(client: SiteRecoveryManagementClient) { + this.client = client; + } + + /** + * The list of cluster recovery points. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param options The options parameters. + */ + public listByReplicationProtectionCluster( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + options?: ClusterRecoveryPointsListByReplicationProtectionClusterOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByReplicationProtectionClusterPagingAll( + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + 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.listByReplicationProtectionClusterPagingPage( + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + options, + settings, + ); + }, + }; + } + + private async *listByReplicationProtectionClusterPagingPage( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + options?: ClusterRecoveryPointsListByReplicationProtectionClusterOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ClusterRecoveryPointsListByReplicationProtectionClusterResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByReplicationProtectionCluster( + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByReplicationProtectionClusterNext( + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByReplicationProtectionClusterPagingAll( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + options?: ClusterRecoveryPointsListByReplicationProtectionClusterOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByReplicationProtectionClusterPagingPage( + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + options, + )) { + yield* page; + } + } + + /** + * The list of cluster recovery points. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param options The options parameters. + */ + private _listByReplicationProtectionCluster( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + options?: ClusterRecoveryPointsListByReplicationProtectionClusterOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + options, + }, + listByReplicationProtectionClusterOperationSpec, + ); + } + + /** + * ListByReplicationProtectionClusterNext + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param nextLink The nextLink from the previous successful call to the + * ListByReplicationProtectionCluster method. + * @param options The options parameters. + */ + private _listByReplicationProtectionClusterNext( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + nextLink: string, + options?: ClusterRecoveryPointsListByReplicationProtectionClusterNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + nextLink, + options, + }, + listByReplicationProtectionClusterNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByReplicationProtectionClusterOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/recoveryPoints", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ClusterRecoveryPointCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceName1, + Parameters.fabricName1, + Parameters.protectionContainerName1, + Parameters.replicationProtectionClusterName, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const listByReplicationProtectionClusterNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ClusterRecoveryPointCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceName1, + Parameters.fabricName1, + Parameters.protectionContainerName1, + Parameters.replicationProtectionClusterName, + ], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/index.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/index.ts index 6f26debde6c2..2e7a3b80be80 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/index.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/index.ts @@ -22,6 +22,9 @@ export * from "./replicationProtectableItems.js"; export * from "./replicationProtectedItems.js"; export * from "./recoveryPoints.js"; export * from "./targetComputeSizes.js"; +export * from "./replicationProtectionClusters.js"; +export * from "./clusterRecoveryPoints.js"; +export * from "./clusterRecoveryPointOperations.js"; export * from "./replicationProtectionContainerMappings.js"; export * from "./replicationRecoveryServicesProviders.js"; export * from "./replicationStorageClassifications.js"; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/migrationRecoveryPoints.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/migrationRecoveryPoints.ts index 48db8a5e7973..0d878ec22e43 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/migrationRecoveryPoints.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/migrationRecoveryPoints.ts @@ -38,25 +38,25 @@ export class MigrationRecoveryPointsImpl implements MigrationRecoveryPoints { /** * Gets the recovery points for a migration item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. * @param options The options parameters. */ public listByReplicationMigrationItems( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, options?: MigrationRecoveryPointsListByReplicationMigrationItemsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByReplicationMigrationItemsPagingAll( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -74,8 +74,8 @@ export class MigrationRecoveryPointsImpl implements MigrationRecoveryPoints { throw new Error("maxPageSize is not supported by this operation."); } return this.listByReplicationMigrationItemsPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -87,8 +87,8 @@ export class MigrationRecoveryPointsImpl implements MigrationRecoveryPoints { } private async *listByReplicationMigrationItemsPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -99,8 +99,8 @@ export class MigrationRecoveryPointsImpl implements MigrationRecoveryPoints { let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._listByReplicationMigrationItems( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -113,8 +113,8 @@ export class MigrationRecoveryPointsImpl implements MigrationRecoveryPoints { } while (continuationToken) { result = await this._listByReplicationMigrationItemsNext( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -129,16 +129,16 @@ export class MigrationRecoveryPointsImpl implements MigrationRecoveryPoints { } private async *listByReplicationMigrationItemsPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, options?: MigrationRecoveryPointsListByReplicationMigrationItemsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByReplicationMigrationItemsPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -150,17 +150,17 @@ export class MigrationRecoveryPointsImpl implements MigrationRecoveryPoints { /** * Gets the recovery points for a migration item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. * @param options The options parameters. */ private _listByReplicationMigrationItems( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -168,8 +168,8 @@ export class MigrationRecoveryPointsImpl implements MigrationRecoveryPoints { ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -181,9 +181,9 @@ export class MigrationRecoveryPointsImpl implements MigrationRecoveryPoints { /** * Gets a recovery point for a migration item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -191,8 +191,8 @@ export class MigrationRecoveryPointsImpl implements MigrationRecoveryPoints { * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -201,8 +201,8 @@ export class MigrationRecoveryPointsImpl implements MigrationRecoveryPoints { ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -215,9 +215,9 @@ export class MigrationRecoveryPointsImpl implements MigrationRecoveryPoints { /** * ListByReplicationMigrationItemsNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -226,8 +226,8 @@ export class MigrationRecoveryPointsImpl implements MigrationRecoveryPoints { * @param options The options parameters. */ private _listByReplicationMigrationItemsNext( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -236,8 +236,8 @@ export class MigrationRecoveryPointsImpl implements MigrationRecoveryPoints { ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/recoveryPoints.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/recoveryPoints.ts index 0af22731d481..f289d7342383 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/recoveryPoints.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/recoveryPoints.ts @@ -38,25 +38,25 @@ export class RecoveryPointsImpl implements RecoveryPoints { /** * Lists the available recovery points for a replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. * @param options The options parameters. */ public listByReplicationProtectedItems( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: RecoveryPointsListByReplicationProtectedItemsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByReplicationProtectedItemsPagingAll( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -74,8 +74,8 @@ export class RecoveryPointsImpl implements RecoveryPoints { throw new Error("maxPageSize is not supported by this operation."); } return this.listByReplicationProtectedItemsPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -87,8 +87,8 @@ export class RecoveryPointsImpl implements RecoveryPoints { } private async *listByReplicationProtectedItemsPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -99,8 +99,8 @@ export class RecoveryPointsImpl implements RecoveryPoints { let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._listByReplicationProtectedItems( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -113,8 +113,8 @@ export class RecoveryPointsImpl implements RecoveryPoints { } while (continuationToken) { result = await this._listByReplicationProtectedItemsNext( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -129,16 +129,16 @@ export class RecoveryPointsImpl implements RecoveryPoints { } private async *listByReplicationProtectedItemsPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: RecoveryPointsListByReplicationProtectedItemsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByReplicationProtectedItemsPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -150,17 +150,17 @@ export class RecoveryPointsImpl implements RecoveryPoints { /** * Lists the available recovery points for a replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. * @param options The options parameters. */ private _listByReplicationProtectedItems( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -168,8 +168,8 @@ export class RecoveryPointsImpl implements RecoveryPoints { ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -181,9 +181,9 @@ export class RecoveryPointsImpl implements RecoveryPoints { /** * Get the details of specified recovery point. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. @@ -191,8 +191,8 @@ export class RecoveryPointsImpl implements RecoveryPoints { * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -201,8 +201,8 @@ export class RecoveryPointsImpl implements RecoveryPoints { ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -215,9 +215,9 @@ export class RecoveryPointsImpl implements RecoveryPoints { /** * ListByReplicationProtectedItemsNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. @@ -226,8 +226,8 @@ export class RecoveryPointsImpl implements RecoveryPoints { * @param options The options parameters. */ private _listByReplicationProtectedItemsNext( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -236,8 +236,8 @@ export class RecoveryPointsImpl implements RecoveryPoints { ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationAlertSettings.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationAlertSettings.ts index dafb6549bd6b..c5ff110d2686 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationAlertSettings.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationAlertSettings.ts @@ -41,17 +41,17 @@ export class ReplicationAlertSettingsImpl implements ReplicationAlertSettings { /** * Gets the list of email notification(alert) configurations for the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ public list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationAlertSettingsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceName, resourceGroupName, options); + const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { next() { return iter.next(); @@ -64,8 +64,8 @@ export class ReplicationAlertSettingsImpl implements ReplicationAlertSettings { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, settings, ); @@ -74,15 +74,15 @@ export class ReplicationAlertSettingsImpl implements ReplicationAlertSettings { } private async *listPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationAlertSettingsListOptionalParams, settings?: PageSettings, ): AsyncIterableIterator { let result: ReplicationAlertSettingsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceName, resourceGroupName, options); + result = await this._list(resourceGroupName, resourceName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -90,8 +90,8 @@ export class ReplicationAlertSettingsImpl implements ReplicationAlertSettings { } while (continuationToken) { result = await this._listNext( - resourceName, resourceGroupName, + resourceName, continuationToken, options, ); @@ -103,13 +103,13 @@ export class ReplicationAlertSettingsImpl implements ReplicationAlertSettings { } private async *listPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationAlertSettingsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, )) { yield* page; @@ -118,80 +118,80 @@ export class ReplicationAlertSettingsImpl implements ReplicationAlertSettings { /** * Gets the list of email notification(alert) configurations for the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ private _list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationAlertSettingsListOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, options }, + { resourceGroupName, resourceName, options }, listOperationSpec, ); } /** * Gets the details of the specified email notification(alert) configuration. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param alertSettingName The name of the email notification configuration. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, alertSettingName: string, options?: ReplicationAlertSettingsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, alertSettingName, options }, + { resourceGroupName, resourceName, alertSettingName, options }, getOperationSpec, ); } /** * Create or update an email notification(alert) configuration. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param alertSettingName The name of the email notification(alert) configuration. * @param request The input to configure the email notification(alert). * @param options The options parameters. */ create( - resourceName: string, resourceGroupName: string, + resourceName: string, alertSettingName: string, request: ConfigureAlertRequest, options?: ReplicationAlertSettingsCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, alertSettingName, request, options }, + { resourceGroupName, resourceName, alertSettingName, request, options }, createOperationSpec, ); } /** * ListNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( - resourceName: string, resourceGroupName: string, + resourceName: string, nextLink: string, options?: ReplicationAlertSettingsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, nextLink, options }, + { resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec, ); } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationAppliances.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationAppliances.ts index d0daca85292b..58a05264b7d3 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationAppliances.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationAppliances.ts @@ -36,17 +36,17 @@ export class ReplicationAppliancesImpl implements ReplicationAppliances { /** * Gets the list of Azure Site Recovery appliances for the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ public list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationAppliancesListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceName, resourceGroupName, options); + const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { next() { return iter.next(); @@ -59,8 +59,8 @@ export class ReplicationAppliancesImpl implements ReplicationAppliances { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, settings, ); @@ -69,15 +69,15 @@ export class ReplicationAppliancesImpl implements ReplicationAppliances { } private async *listPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationAppliancesListOptionalParams, settings?: PageSettings, ): AsyncIterableIterator { let result: ReplicationAppliancesListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceName, resourceGroupName, options); + result = await this._list(resourceGroupName, resourceName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -85,8 +85,8 @@ export class ReplicationAppliancesImpl implements ReplicationAppliances { } while (continuationToken) { result = await this._listNext( - resourceName, resourceGroupName, + resourceName, continuationToken, options, ); @@ -98,13 +98,13 @@ export class ReplicationAppliancesImpl implements ReplicationAppliances { } private async *listPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationAppliancesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, )) { yield* page; @@ -113,38 +113,38 @@ export class ReplicationAppliancesImpl implements ReplicationAppliances { /** * Gets the list of Azure Site Recovery appliances for the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ private _list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationAppliancesListOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, options }, + { resourceGroupName, resourceName, options }, listOperationSpec, ); } /** * ListNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( - resourceName: string, resourceGroupName: string, + resourceName: string, nextLink: string, options?: ReplicationAppliancesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, nextLink, options }, + { resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec, ); } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationEvents.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationEvents.ts index eb6c64dfbe0c..11d1a68e5a0e 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationEvents.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationEvents.ts @@ -38,17 +38,17 @@ export class ReplicationEventsImpl implements ReplicationEvents { /** * Gets the list of Azure Site Recovery events for the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ public list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationEventsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceName, resourceGroupName, options); + const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { next() { return iter.next(); @@ -61,8 +61,8 @@ export class ReplicationEventsImpl implements ReplicationEvents { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, settings, ); @@ -71,15 +71,15 @@ export class ReplicationEventsImpl implements ReplicationEvents { } private async *listPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationEventsListOptionalParams, settings?: PageSettings, ): AsyncIterableIterator { let result: ReplicationEventsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceName, resourceGroupName, options); + result = await this._list(resourceGroupName, resourceName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -87,8 +87,8 @@ export class ReplicationEventsImpl implements ReplicationEvents { } while (continuationToken) { result = await this._listNext( - resourceName, resourceGroupName, + resourceName, continuationToken, options, ); @@ -100,13 +100,13 @@ export class ReplicationEventsImpl implements ReplicationEvents { } private async *listPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationEventsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, )) { yield* page; @@ -115,58 +115,58 @@ export class ReplicationEventsImpl implements ReplicationEvents { /** * Gets the list of Azure Site Recovery events for the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ private _list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationEventsListOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, options }, + { resourceGroupName, resourceName, options }, listOperationSpec, ); } /** * The operation to get the details of an Azure Site recovery event. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param eventName The name of the Azure Site Recovery event. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, eventName: string, options?: ReplicationEventsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, eventName, options }, + { resourceGroupName, resourceName, eventName, options }, getOperationSpec, ); } /** * ListNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( - resourceName: string, resourceGroupName: string, + resourceName: string, nextLink: string, options?: ReplicationEventsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, nextLink, options }, + { resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec, ); } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationFabrics.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationFabrics.ts index e7dcb4ac680b..a9778228912a 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationFabrics.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationFabrics.ts @@ -60,17 +60,17 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { /** * Gets a list of the Azure Site Recovery fabrics in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ public list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationFabricsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceName, resourceGroupName, options); + const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { next() { return iter.next(); @@ -83,8 +83,8 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, settings, ); @@ -93,15 +93,15 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { } private async *listPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationFabricsListOptionalParams, settings?: PageSettings, ): AsyncIterableIterator { let result: ReplicationFabricsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceName, resourceGroupName, options); + result = await this._list(resourceGroupName, resourceName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -109,8 +109,8 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { } while (continuationToken) { result = await this._listNext( - resourceName, resourceGroupName, + resourceName, continuationToken, options, ); @@ -122,13 +122,13 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { } private async *listPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationFabricsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, )) { yield* page; @@ -137,54 +137,54 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { /** * Gets a list of the Azure Site Recovery fabrics in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ private _list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationFabricsListOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, options }, + { resourceGroupName, resourceName, options }, listOperationSpec, ); } /** * Gets the details of an Azure Site Recovery fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationFabricsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, fabricName, options }, + { resourceGroupName, resourceName, fabricName, options }, getOperationSpec, ); } /** * The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the ASR fabric. * @param input Fabric creation input. * @param options The options parameters. */ async beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, input: FabricCreationInput, options?: ReplicationFabricsCreateOptionalParams, @@ -234,7 +234,7 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { const lro = createLroSpec({ sendOperationFn, - args: { resourceName, resourceGroupName, fabricName, input, options }, + args: { resourceGroupName, resourceName, fabricName, input, options }, spec: createOperationSpec, }); const poller = await createHttpPoller< @@ -250,23 +250,23 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { /** * The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the ASR fabric. * @param input Fabric creation input. * @param options The options parameters. */ async beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, input: FabricCreationInput, options?: ReplicationFabricsCreateOptionalParams, ): Promise { const poller = await this.beginCreate( - resourceName, resourceGroupName, + resourceName, fabricName, input, options, @@ -276,15 +276,15 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { /** * The operation to purge(force delete) an Azure Site Recovery fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to purge. * @param options The options parameters. */ async beginPurge( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationFabricsPurgeOptionalParams, ): Promise, void>> { @@ -328,7 +328,7 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { const lro = createLroSpec({ sendOperationFn, - args: { resourceName, resourceGroupName, fabricName, options }, + args: { resourceGroupName, resourceName, fabricName, options }, spec: purgeOperationSpec, }); const poller = await createHttpPoller>(lro, { @@ -341,21 +341,21 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { /** * The operation to purge(force delete) an Azure Site Recovery fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to purge. * @param options The options parameters. */ async beginPurgeAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationFabricsPurgeOptionalParams, ): Promise { const poller = await this.beginPurge( - resourceName, resourceGroupName, + resourceName, fabricName, options, ); @@ -364,15 +364,15 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { /** * The operation to perform a consistency check on the fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param options The options parameters. */ async beginCheckConsistency( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationFabricsCheckConsistencyOptionalParams, ): Promise< @@ -421,7 +421,7 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { const lro = createLroSpec({ sendOperationFn, - args: { resourceName, resourceGroupName, fabricName, options }, + args: { resourceGroupName, resourceName, fabricName, options }, spec: checkConsistencyOperationSpec, }); const poller = await createHttpPoller< @@ -437,21 +437,21 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { /** * The operation to perform a consistency check on the fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param options The options parameters. */ async beginCheckConsistencyAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationFabricsCheckConsistencyOptionalParams, ): Promise { const poller = await this.beginCheckConsistency( - resourceName, resourceGroupName, + resourceName, fabricName, options, ); @@ -460,15 +460,15 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { /** * The operation to migrate an Azure Site Recovery fabric to AAD. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to migrate. * @param options The options parameters. */ async beginMigrateToAad( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationFabricsMigrateToAadOptionalParams, ): Promise, void>> { @@ -512,7 +512,7 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { const lro = createLroSpec({ sendOperationFn, - args: { resourceName, resourceGroupName, fabricName, options }, + args: { resourceGroupName, resourceName, fabricName, options }, spec: migrateToAadOperationSpec, }); const poller = await createHttpPoller>(lro, { @@ -525,21 +525,21 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { /** * The operation to migrate an Azure Site Recovery fabric to AAD. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to migrate. * @param options The options parameters. */ async beginMigrateToAadAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationFabricsMigrateToAadOptionalParams, ): Promise { const poller = await this.beginMigrateToAad( - resourceName, resourceGroupName, + resourceName, fabricName, options, ); @@ -548,16 +548,16 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { /** * The operation to move replications from a process server to another process server. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the process server. * @param failoverProcessServerRequest The input to the failover process server operation. * @param options The options parameters. */ async beginReassociateGateway( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, failoverProcessServerRequest: FailoverProcessServerRequest, options?: ReplicationFabricsReassociateGatewayOptionalParams, @@ -608,8 +608,8 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, failoverProcessServerRequest, options, @@ -629,23 +629,23 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { /** * The operation to move replications from a process server to another process server. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the process server. * @param failoverProcessServerRequest The input to the failover process server operation. * @param options The options parameters. */ async beginReassociateGatewayAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, failoverProcessServerRequest: FailoverProcessServerRequest, options?: ReplicationFabricsReassociateGatewayOptionalParams, ): Promise { const poller = await this.beginReassociateGateway( - resourceName, resourceGroupName, + resourceName, fabricName, failoverProcessServerRequest, options, @@ -655,15 +655,15 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { /** * The operation to delete or remove an Azure Site Recovery fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to delete. * @param options The options parameters. */ async beginDelete( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationFabricsDeleteOptionalParams, ): Promise, void>> { @@ -707,7 +707,7 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { const lro = createLroSpec({ sendOperationFn, - args: { resourceName, resourceGroupName, fabricName, options }, + args: { resourceGroupName, resourceName, fabricName, options }, spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { @@ -720,21 +720,21 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { /** * The operation to delete or remove an Azure Site Recovery fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to delete. * @param options The options parameters. */ async beginDeleteAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationFabricsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( - resourceName, resourceGroupName, + resourceName, fabricName, options, ); @@ -743,16 +743,16 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { /** * Renews the connection certificate for the ASR replication fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName fabric name to renew certs for. * @param renewCertificate Renew certificate input. * @param options The options parameters. */ async beginRenewCertificate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, renewCertificate: RenewCertificateInput, options?: ReplicationFabricsRenewCertificateOptionalParams, @@ -803,8 +803,8 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, renewCertificate, options, @@ -824,23 +824,23 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { /** * Renews the connection certificate for the ASR replication fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName fabric name to renew certs for. * @param renewCertificate Renew certificate input. * @param options The options parameters. */ async beginRenewCertificateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, renewCertificate: RenewCertificateInput, options?: ReplicationFabricsRenewCertificateOptionalParams, ): Promise { const poller = await this.beginRenewCertificate( - resourceName, resourceGroupName, + resourceName, fabricName, renewCertificate, options, @@ -946,20 +946,20 @@ export class ReplicationFabricsImpl implements ReplicationFabrics { /** * ListNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( - resourceName: string, resourceGroupName: string, + resourceName: string, nextLink: string, options?: ReplicationFabricsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, nextLink, options }, + { resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec, ); } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationJobs.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationJobs.ts index cc140df9503c..14a2ff9c47fb 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationJobs.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationJobs.ts @@ -54,17 +54,17 @@ export class ReplicationJobsImpl implements ReplicationJobs { /** * Gets the list of Azure Site Recovery Jobs for the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ public list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationJobsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceName, resourceGroupName, options); + const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { next() { return iter.next(); @@ -77,8 +77,8 @@ export class ReplicationJobsImpl implements ReplicationJobs { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, settings, ); @@ -87,15 +87,15 @@ export class ReplicationJobsImpl implements ReplicationJobs { } private async *listPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationJobsListOptionalParams, settings?: PageSettings, ): AsyncIterableIterator { let result: ReplicationJobsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceName, resourceGroupName, options); + result = await this._list(resourceGroupName, resourceName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -103,8 +103,8 @@ export class ReplicationJobsImpl implements ReplicationJobs { } while (continuationToken) { result = await this._listNext( - resourceName, resourceGroupName, + resourceName, continuationToken, options, ); @@ -116,13 +116,13 @@ export class ReplicationJobsImpl implements ReplicationJobs { } private async *listPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationJobsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, )) { yield* page; @@ -131,53 +131,53 @@ export class ReplicationJobsImpl implements ReplicationJobs { /** * Gets the list of Azure Site Recovery Jobs for the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ private _list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationJobsListOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, options }, + { resourceGroupName, resourceName, options }, listOperationSpec, ); } /** * Get the details of an Azure Site Recovery job. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, jobName: string, options?: ReplicationJobsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, jobName, options }, + { resourceGroupName, resourceName, jobName, options }, getOperationSpec, ); } /** * The operation to cancel an Azure Site Recovery job. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param options The options parameters. */ async beginCancel( - resourceName: string, resourceGroupName: string, + resourceName: string, jobName: string, options?: ReplicationJobsCancelOptionalParams, ): Promise< @@ -226,7 +226,7 @@ export class ReplicationJobsImpl implements ReplicationJobs { const lro = createLroSpec({ sendOperationFn, - args: { resourceName, resourceGroupName, jobName, options }, + args: { resourceGroupName, resourceName, jobName, options }, spec: cancelOperationSpec, }); const poller = await createHttpPoller< @@ -242,21 +242,21 @@ export class ReplicationJobsImpl implements ReplicationJobs { /** * The operation to cancel an Azure Site Recovery job. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param options The options parameters. */ async beginCancelAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, jobName: string, options?: ReplicationJobsCancelOptionalParams, ): Promise { const poller = await this.beginCancel( - resourceName, resourceGroupName, + resourceName, jobName, options, ); @@ -265,15 +265,15 @@ export class ReplicationJobsImpl implements ReplicationJobs { /** * The operation to restart an Azure Site Recovery job. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param options The options parameters. */ async beginRestart( - resourceName: string, resourceGroupName: string, + resourceName: string, jobName: string, options?: ReplicationJobsRestartOptionalParams, ): Promise< @@ -322,7 +322,7 @@ export class ReplicationJobsImpl implements ReplicationJobs { const lro = createLroSpec({ sendOperationFn, - args: { resourceName, resourceGroupName, jobName, options }, + args: { resourceGroupName, resourceName, jobName, options }, spec: restartOperationSpec, }); const poller = await createHttpPoller< @@ -338,21 +338,21 @@ export class ReplicationJobsImpl implements ReplicationJobs { /** * The operation to restart an Azure Site Recovery job. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param options The options parameters. */ async beginRestartAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, jobName: string, options?: ReplicationJobsRestartOptionalParams, ): Promise { const poller = await this.beginRestart( - resourceName, resourceGroupName, + resourceName, jobName, options, ); @@ -361,16 +361,16 @@ export class ReplicationJobsImpl implements ReplicationJobs { /** * The operation to resume an Azure Site Recovery job. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param resumeJobParams Resume rob comments. * @param options The options parameters. */ async beginResume( - resourceName: string, resourceGroupName: string, + resourceName: string, jobName: string, resumeJobParams: ResumeJobParams, options?: ReplicationJobsResumeOptionalParams, @@ -421,8 +421,8 @@ export class ReplicationJobsImpl implements ReplicationJobs { const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, jobName, resumeJobParams, options, @@ -442,23 +442,23 @@ export class ReplicationJobsImpl implements ReplicationJobs { /** * The operation to resume an Azure Site Recovery job. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param resumeJobParams Resume rob comments. * @param options The options parameters. */ async beginResumeAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, jobName: string, resumeJobParams: ResumeJobParams, options?: ReplicationJobsResumeOptionalParams, ): Promise { const poller = await this.beginResume( - resourceName, resourceGroupName, + resourceName, jobName, resumeJobParams, options, @@ -468,15 +468,15 @@ export class ReplicationJobsImpl implements ReplicationJobs { /** * The operation to export the details of the Azure Site Recovery jobs of the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param jobQueryParameter job query filter. * @param options The options parameters. */ async beginExport( - resourceName: string, resourceGroupName: string, + resourceName: string, jobQueryParameter: JobQueryParameter, options?: ReplicationJobsExportOptionalParams, ): Promise< @@ -525,7 +525,7 @@ export class ReplicationJobsImpl implements ReplicationJobs { const lro = createLroSpec({ sendOperationFn, - args: { resourceName, resourceGroupName, jobQueryParameter, options }, + args: { resourceGroupName, resourceName, jobQueryParameter, options }, spec: exportOperationSpec, }); const poller = await createHttpPoller< @@ -541,21 +541,21 @@ export class ReplicationJobsImpl implements ReplicationJobs { /** * The operation to export the details of the Azure Site Recovery jobs of the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param jobQueryParameter job query filter. * @param options The options parameters. */ async beginExportAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, jobQueryParameter: JobQueryParameter, options?: ReplicationJobsExportOptionalParams, ): Promise { const poller = await this.beginExport( - resourceName, resourceGroupName, + resourceName, jobQueryParameter, options, ); @@ -564,20 +564,20 @@ export class ReplicationJobsImpl implements ReplicationJobs { /** * ListNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( - resourceName: string, resourceGroupName: string, + resourceName: string, nextLink: string, options?: ReplicationJobsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, nextLink, options }, + { resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec, ); } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationLogicalNetworks.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationLogicalNetworks.ts index afaf4b024664..505313718cb7 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationLogicalNetworks.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationLogicalNetworks.ts @@ -40,21 +40,21 @@ export class ReplicationLogicalNetworksImpl /** * Lists all the logical networks of the Azure Site Recovery fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param options The options parameters. */ public listByReplicationFabrics( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationLogicalNetworksListByReplicationFabricsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByReplicationFabricsPagingAll( - resourceName, resourceGroupName, + resourceName, fabricName, options, ); @@ -70,8 +70,8 @@ export class ReplicationLogicalNetworksImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listByReplicationFabricsPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, options, settings, @@ -81,8 +81,8 @@ export class ReplicationLogicalNetworksImpl } private async *listByReplicationFabricsPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationLogicalNetworksListByReplicationFabricsOptionalParams, settings?: PageSettings, @@ -91,8 +91,8 @@ export class ReplicationLogicalNetworksImpl let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._listByReplicationFabrics( - resourceName, resourceGroupName, + resourceName, fabricName, options, ); @@ -103,8 +103,8 @@ export class ReplicationLogicalNetworksImpl } while (continuationToken) { result = await this._listByReplicationFabricsNext( - resourceName, resourceGroupName, + resourceName, fabricName, continuationToken, options, @@ -117,14 +117,14 @@ export class ReplicationLogicalNetworksImpl } private async *listByReplicationFabricsPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationLogicalNetworksListByReplicationFabricsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByReplicationFabricsPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, options, )) { @@ -134,44 +134,44 @@ export class ReplicationLogicalNetworksImpl /** * Lists all the logical networks of the Azure Site Recovery fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param options The options parameters. */ private _listByReplicationFabrics( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationLogicalNetworksListByReplicationFabricsOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, fabricName, options }, + { resourceGroupName, resourceName, fabricName, options }, listByReplicationFabricsOperationSpec, ); } /** * Gets the details of a logical network. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param logicalNetworkName Logical network name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, logicalNetworkName: string, options?: ReplicationLogicalNetworksGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, logicalNetworkName, options, @@ -182,23 +182,23 @@ export class ReplicationLogicalNetworksImpl /** * ListByReplicationFabricsNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param nextLink The nextLink from the previous successful call to the ListByReplicationFabrics * method. * @param options The options parameters. */ private _listByReplicationFabricsNext( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, nextLink: string, options?: ReplicationLogicalNetworksListByReplicationFabricsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, fabricName, nextLink, options }, + { resourceGroupName, resourceName, fabricName, nextLink, options }, listByReplicationFabricsNextOperationSpec, ); } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationMigrationItems.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationMigrationItems.ts index 42c18da37a03..f90184cde849 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationMigrationItems.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationMigrationItems.ts @@ -75,23 +75,23 @@ export class ReplicationMigrationItemsImpl /** * Gets the list of ASR migration items in the protection container. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param options The options parameters. */ public listByReplicationProtectionContainers( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationMigrationItemsListByReplicationProtectionContainersOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByReplicationProtectionContainersPagingAll( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, options, @@ -108,8 +108,8 @@ export class ReplicationMigrationItemsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listByReplicationProtectionContainersPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, options, @@ -120,8 +120,8 @@ export class ReplicationMigrationItemsImpl } private async *listByReplicationProtectionContainersPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationMigrationItemsListByReplicationProtectionContainersOptionalParams, @@ -131,8 +131,8 @@ export class ReplicationMigrationItemsImpl let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._listByReplicationProtectionContainers( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, options, @@ -144,8 +144,8 @@ export class ReplicationMigrationItemsImpl } while (continuationToken) { result = await this._listByReplicationProtectionContainersNext( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, continuationToken, @@ -159,15 +159,15 @@ export class ReplicationMigrationItemsImpl } private async *listByReplicationProtectionContainersPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationMigrationItemsListByReplicationProtectionContainersOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByReplicationProtectionContainersPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, options, @@ -178,17 +178,17 @@ export class ReplicationMigrationItemsImpl /** * Gets the list of migration items in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ public list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationMigrationItemsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceName, resourceGroupName, options); + const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { next() { return iter.next(); @@ -201,8 +201,8 @@ export class ReplicationMigrationItemsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, settings, ); @@ -211,15 +211,15 @@ export class ReplicationMigrationItemsImpl } private async *listPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationMigrationItemsListOptionalParams, settings?: PageSettings, ): AsyncIterableIterator { let result: ReplicationMigrationItemsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceName, resourceGroupName, options); + result = await this._list(resourceGroupName, resourceName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -227,8 +227,8 @@ export class ReplicationMigrationItemsImpl } while (continuationToken) { result = await this._listNext( - resourceName, resourceGroupName, + resourceName, continuationToken, options, ); @@ -240,13 +240,13 @@ export class ReplicationMigrationItemsImpl } private async *listPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationMigrationItemsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, )) { yield* page; @@ -255,24 +255,24 @@ export class ReplicationMigrationItemsImpl /** * Gets the list of ASR migration items in the protection container. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param options The options parameters. */ private _listByReplicationProtectionContainers( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationMigrationItemsListByReplicationProtectionContainersOptionalParams, ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, options, @@ -283,17 +283,17 @@ export class ReplicationMigrationItemsImpl /** * Gets the details of a migration item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -301,8 +301,8 @@ export class ReplicationMigrationItemsImpl ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -314,9 +314,9 @@ export class ReplicationMigrationItemsImpl /** * The operation to create an ASR migration item (enable migration). - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -324,8 +324,8 @@ export class ReplicationMigrationItemsImpl * @param options The options parameters. */ async beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -378,8 +378,8 @@ export class ReplicationMigrationItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -401,9 +401,9 @@ export class ReplicationMigrationItemsImpl /** * The operation to create an ASR migration item (enable migration). - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -411,8 +411,8 @@ export class ReplicationMigrationItemsImpl * @param options The options parameters. */ async beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -420,8 +420,8 @@ export class ReplicationMigrationItemsImpl options?: ReplicationMigrationItemsCreateOptionalParams, ): Promise { const poller = await this.beginCreate( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -433,17 +433,17 @@ export class ReplicationMigrationItemsImpl /** * The operation to delete an ASR migration item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. * @param options The options parameters. */ async beginDelete( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -490,8 +490,8 @@ export class ReplicationMigrationItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -509,25 +509,25 @@ export class ReplicationMigrationItemsImpl /** * The operation to delete an ASR migration item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. * @param options The options parameters. */ async beginDeleteAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, options?: ReplicationMigrationItemsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -538,9 +538,9 @@ export class ReplicationMigrationItemsImpl /** * The operation to update the recovery settings of an ASR migration item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -548,8 +548,8 @@ export class ReplicationMigrationItemsImpl * @param options The options parameters. */ async beginUpdate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -602,8 +602,8 @@ export class ReplicationMigrationItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -625,9 +625,9 @@ export class ReplicationMigrationItemsImpl /** * The operation to update the recovery settings of an ASR migration item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -635,8 +635,8 @@ export class ReplicationMigrationItemsImpl * @param options The options parameters. */ async beginUpdateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -644,8 +644,8 @@ export class ReplicationMigrationItemsImpl options?: ReplicationMigrationItemsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -657,9 +657,9 @@ export class ReplicationMigrationItemsImpl /** * The operation to initiate migration of the item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -667,8 +667,8 @@ export class ReplicationMigrationItemsImpl * @param options The options parameters. */ async beginMigrate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -721,8 +721,8 @@ export class ReplicationMigrationItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -744,9 +744,9 @@ export class ReplicationMigrationItemsImpl /** * The operation to initiate migration of the item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -754,8 +754,8 @@ export class ReplicationMigrationItemsImpl * @param options The options parameters. */ async beginMigrateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -763,8 +763,8 @@ export class ReplicationMigrationItemsImpl options?: ReplicationMigrationItemsMigrateOptionalParams, ): Promise { const poller = await this.beginMigrate( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -776,9 +776,9 @@ export class ReplicationMigrationItemsImpl /** * The operation to initiate pause replication of the item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -786,8 +786,8 @@ export class ReplicationMigrationItemsImpl * @param options The options parameters. */ async beginPauseReplication( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -840,8 +840,8 @@ export class ReplicationMigrationItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -863,9 +863,9 @@ export class ReplicationMigrationItemsImpl /** * The operation to initiate pause replication of the item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -873,8 +873,8 @@ export class ReplicationMigrationItemsImpl * @param options The options parameters. */ async beginPauseReplicationAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -882,8 +882,8 @@ export class ReplicationMigrationItemsImpl options?: ReplicationMigrationItemsPauseReplicationOptionalParams, ): Promise { const poller = await this.beginPauseReplication( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -895,9 +895,9 @@ export class ReplicationMigrationItemsImpl /** * The operation to initiate resume replication of the item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -905,8 +905,8 @@ export class ReplicationMigrationItemsImpl * @param options The options parameters. */ async beginResumeReplication( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -959,8 +959,8 @@ export class ReplicationMigrationItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -982,9 +982,9 @@ export class ReplicationMigrationItemsImpl /** * The operation to initiate resume replication of the item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -992,8 +992,8 @@ export class ReplicationMigrationItemsImpl * @param options The options parameters. */ async beginResumeReplicationAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -1001,8 +1001,8 @@ export class ReplicationMigrationItemsImpl options?: ReplicationMigrationItemsResumeReplicationOptionalParams, ): Promise { const poller = await this.beginResumeReplication( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -1014,9 +1014,9 @@ export class ReplicationMigrationItemsImpl /** * The operation to resynchronize replication of an ASR migration item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1024,8 +1024,8 @@ export class ReplicationMigrationItemsImpl * @param options The options parameters. */ async beginResync( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -1078,8 +1078,8 @@ export class ReplicationMigrationItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -1101,9 +1101,9 @@ export class ReplicationMigrationItemsImpl /** * The operation to resynchronize replication of an ASR migration item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1111,8 +1111,8 @@ export class ReplicationMigrationItemsImpl * @param options The options parameters. */ async beginResyncAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -1120,8 +1120,8 @@ export class ReplicationMigrationItemsImpl options?: ReplicationMigrationItemsResyncOptionalParams, ): Promise { const poller = await this.beginResync( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -1133,9 +1133,9 @@ export class ReplicationMigrationItemsImpl /** * The operation to initiate test migration of the item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1143,8 +1143,8 @@ export class ReplicationMigrationItemsImpl * @param options The options parameters. */ async beginTestMigrate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -1197,8 +1197,8 @@ export class ReplicationMigrationItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -1220,9 +1220,9 @@ export class ReplicationMigrationItemsImpl /** * The operation to initiate test migration of the item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1230,8 +1230,8 @@ export class ReplicationMigrationItemsImpl * @param options The options parameters. */ async beginTestMigrateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -1239,8 +1239,8 @@ export class ReplicationMigrationItemsImpl options?: ReplicationMigrationItemsTestMigrateOptionalParams, ): Promise { const poller = await this.beginTestMigrate( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -1252,9 +1252,9 @@ export class ReplicationMigrationItemsImpl /** * The operation to initiate test migrate cleanup. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1262,8 +1262,8 @@ export class ReplicationMigrationItemsImpl * @param options The options parameters. */ async beginTestMigrateCleanup( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -1316,8 +1316,8 @@ export class ReplicationMigrationItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -1339,9 +1339,9 @@ export class ReplicationMigrationItemsImpl /** * The operation to initiate test migrate cleanup. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -1349,8 +1349,8 @@ export class ReplicationMigrationItemsImpl * @param options The options parameters. */ async beginTestMigrateCleanupAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -1358,8 +1358,8 @@ export class ReplicationMigrationItemsImpl options?: ReplicationMigrationItemsTestMigrateCleanupOptionalParams, ): Promise { const poller = await this.beginTestMigrateCleanup( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, migrationItemName, @@ -1371,27 +1371,27 @@ export class ReplicationMigrationItemsImpl /** * Gets the list of migration items in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ private _list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationMigrationItemsListOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, options }, + { resourceGroupName, resourceName, options }, listOperationSpec, ); } /** * ListByReplicationProtectionContainersNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param nextLink The nextLink from the previous successful call to the @@ -1399,8 +1399,8 @@ export class ReplicationMigrationItemsImpl * @param options The options parameters. */ private _listByReplicationProtectionContainersNext( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, nextLink: string, @@ -1408,8 +1408,8 @@ export class ReplicationMigrationItemsImpl ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, nextLink, @@ -1421,20 +1421,20 @@ export class ReplicationMigrationItemsImpl /** * ListNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( - resourceName: string, resourceGroupName: string, + resourceName: string, nextLink: string, options?: ReplicationMigrationItemsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, nextLink, options }, + { resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec, ); } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationNetworkMappings.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationNetworkMappings.ts index 917d05d14f25..d57fb18c466f 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationNetworkMappings.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationNetworkMappings.ts @@ -57,23 +57,23 @@ export class ReplicationNetworkMappingsImpl /** * Lists all ASR network mappings for the specified network. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param options The options parameters. */ public listByReplicationNetworks( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, networkName: string, options?: ReplicationNetworkMappingsListByReplicationNetworksOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByReplicationNetworksPagingAll( - resourceName, resourceGroupName, + resourceName, fabricName, networkName, options, @@ -90,8 +90,8 @@ export class ReplicationNetworkMappingsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listByReplicationNetworksPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, networkName, options, @@ -102,8 +102,8 @@ export class ReplicationNetworkMappingsImpl } private async *listByReplicationNetworksPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, networkName: string, options?: ReplicationNetworkMappingsListByReplicationNetworksOptionalParams, @@ -113,8 +113,8 @@ export class ReplicationNetworkMappingsImpl let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._listByReplicationNetworks( - resourceName, resourceGroupName, + resourceName, fabricName, networkName, options, @@ -126,8 +126,8 @@ export class ReplicationNetworkMappingsImpl } while (continuationToken) { result = await this._listByReplicationNetworksNext( - resourceName, resourceGroupName, + resourceName, fabricName, networkName, continuationToken, @@ -141,15 +141,15 @@ export class ReplicationNetworkMappingsImpl } private async *listByReplicationNetworksPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, networkName: string, options?: ReplicationNetworkMappingsListByReplicationNetworksOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByReplicationNetworksPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, networkName, options, @@ -160,17 +160,17 @@ export class ReplicationNetworkMappingsImpl /** * Lists all ASR network mappings in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ public list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationNetworkMappingsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceName, resourceGroupName, options); + const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { next() { return iter.next(); @@ -183,8 +183,8 @@ export class ReplicationNetworkMappingsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, settings, ); @@ -193,15 +193,15 @@ export class ReplicationNetworkMappingsImpl } private async *listPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationNetworkMappingsListOptionalParams, settings?: PageSettings, ): AsyncIterableIterator { let result: ReplicationNetworkMappingsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceName, resourceGroupName, options); + result = await this._list(resourceGroupName, resourceName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -209,8 +209,8 @@ export class ReplicationNetworkMappingsImpl } while (continuationToken) { result = await this._listNext( - resourceName, resourceGroupName, + resourceName, continuationToken, options, ); @@ -222,13 +222,13 @@ export class ReplicationNetworkMappingsImpl } private async *listPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationNetworkMappingsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, )) { yield* page; @@ -237,39 +237,39 @@ export class ReplicationNetworkMappingsImpl /** * Lists all ASR network mappings for the specified network. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param options The options parameters. */ private _listByReplicationNetworks( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, networkName: string, options?: ReplicationNetworkMappingsListByReplicationNetworksOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, fabricName, networkName, options }, + { resourceGroupName, resourceName, fabricName, networkName, options }, listByReplicationNetworksOperationSpec, ); } /** * Gets the details of an ASR network mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, networkName: string, networkMappingName: string, @@ -277,8 +277,8 @@ export class ReplicationNetworkMappingsImpl ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, networkName, networkMappingName, @@ -290,9 +290,9 @@ export class ReplicationNetworkMappingsImpl /** * The operation to create an ASR network mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -300,8 +300,8 @@ export class ReplicationNetworkMappingsImpl * @param options The options parameters. */ async beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, networkName: string, networkMappingName: string, @@ -354,8 +354,8 @@ export class ReplicationNetworkMappingsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, networkName, networkMappingName, @@ -377,9 +377,9 @@ export class ReplicationNetworkMappingsImpl /** * The operation to create an ASR network mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -387,8 +387,8 @@ export class ReplicationNetworkMappingsImpl * @param options The options parameters. */ async beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, networkName: string, networkMappingName: string, @@ -396,8 +396,8 @@ export class ReplicationNetworkMappingsImpl options?: ReplicationNetworkMappingsCreateOptionalParams, ): Promise { const poller = await this.beginCreate( - resourceName, resourceGroupName, + resourceName, fabricName, networkName, networkMappingName, @@ -409,17 +409,17 @@ export class ReplicationNetworkMappingsImpl /** * The operation to delete a network mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName ARM Resource Name for network mapping. * @param options The options parameters. */ async beginDelete( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, networkName: string, networkMappingName: string, @@ -466,8 +466,8 @@ export class ReplicationNetworkMappingsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, networkName, networkMappingName, @@ -485,25 +485,25 @@ export class ReplicationNetworkMappingsImpl /** * The operation to delete a network mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName ARM Resource Name for network mapping. * @param options The options parameters. */ async beginDeleteAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, networkName: string, networkMappingName: string, options?: ReplicationNetworkMappingsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( - resourceName, resourceGroupName, + resourceName, fabricName, networkName, networkMappingName, @@ -514,9 +514,9 @@ export class ReplicationNetworkMappingsImpl /** * The operation to update an ASR network mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -524,8 +524,8 @@ export class ReplicationNetworkMappingsImpl * @param options The options parameters. */ async beginUpdate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, networkName: string, networkMappingName: string, @@ -578,8 +578,8 @@ export class ReplicationNetworkMappingsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, networkName, networkMappingName, @@ -601,9 +601,9 @@ export class ReplicationNetworkMappingsImpl /** * The operation to update an ASR network mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -611,8 +611,8 @@ export class ReplicationNetworkMappingsImpl * @param options The options parameters. */ async beginUpdateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, networkName: string, networkMappingName: string, @@ -620,8 +620,8 @@ export class ReplicationNetworkMappingsImpl options?: ReplicationNetworkMappingsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( - resourceName, resourceGroupName, + resourceName, fabricName, networkName, networkMappingName, @@ -633,27 +633,27 @@ export class ReplicationNetworkMappingsImpl /** * Lists all ASR network mappings in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ private _list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationNetworkMappingsListOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, options }, + { resourceGroupName, resourceName, options }, listOperationSpec, ); } /** * ListByReplicationNetworksNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param nextLink The nextLink from the previous successful call to the ListByReplicationNetworks @@ -661,8 +661,8 @@ export class ReplicationNetworkMappingsImpl * @param options The options parameters. */ private _listByReplicationNetworksNext( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, networkName: string, nextLink: string, @@ -670,8 +670,8 @@ export class ReplicationNetworkMappingsImpl ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, networkName, nextLink, @@ -683,20 +683,20 @@ export class ReplicationNetworkMappingsImpl /** * ListNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( - resourceName: string, resourceGroupName: string, + resourceName: string, nextLink: string, options?: ReplicationNetworkMappingsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, nextLink, options }, + { resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec, ); } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationNetworks.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationNetworks.ts index 8c49aa590f9c..4a692108e7a9 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationNetworks.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationNetworks.ts @@ -42,21 +42,21 @@ export class ReplicationNetworksImpl implements ReplicationNetworks { /** * Lists the networks available for a fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param options The options parameters. */ public listByReplicationFabrics( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationNetworksListByReplicationFabricsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByReplicationFabricsPagingAll( - resourceName, resourceGroupName, + resourceName, fabricName, options, ); @@ -72,8 +72,8 @@ export class ReplicationNetworksImpl implements ReplicationNetworks { throw new Error("maxPageSize is not supported by this operation."); } return this.listByReplicationFabricsPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, options, settings, @@ -83,8 +83,8 @@ export class ReplicationNetworksImpl implements ReplicationNetworks { } private async *listByReplicationFabricsPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationNetworksListByReplicationFabricsOptionalParams, settings?: PageSettings, @@ -93,8 +93,8 @@ export class ReplicationNetworksImpl implements ReplicationNetworks { let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._listByReplicationFabrics( - resourceName, resourceGroupName, + resourceName, fabricName, options, ); @@ -105,8 +105,8 @@ export class ReplicationNetworksImpl implements ReplicationNetworks { } while (continuationToken) { result = await this._listByReplicationFabricsNext( - resourceName, resourceGroupName, + resourceName, fabricName, continuationToken, options, @@ -119,14 +119,14 @@ export class ReplicationNetworksImpl implements ReplicationNetworks { } private async *listByReplicationFabricsPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationNetworksListByReplicationFabricsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByReplicationFabricsPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, options, )) { @@ -136,17 +136,17 @@ export class ReplicationNetworksImpl implements ReplicationNetworks { /** * Lists the networks available in a vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ public list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationNetworksListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceName, resourceGroupName, options); + const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { next() { return iter.next(); @@ -159,8 +159,8 @@ export class ReplicationNetworksImpl implements ReplicationNetworks { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, settings, ); @@ -169,15 +169,15 @@ export class ReplicationNetworksImpl implements ReplicationNetworks { } private async *listPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationNetworksListOptionalParams, settings?: PageSettings, ): AsyncIterableIterator { let result: ReplicationNetworksListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceName, resourceGroupName, options); + result = await this._list(resourceGroupName, resourceName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -185,8 +185,8 @@ export class ReplicationNetworksImpl implements ReplicationNetworks { } while (continuationToken) { result = await this._listNext( - resourceName, resourceGroupName, + resourceName, continuationToken, options, ); @@ -198,13 +198,13 @@ export class ReplicationNetworksImpl implements ReplicationNetworks { } private async *listPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationNetworksListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, )) { yield* page; @@ -213,103 +213,103 @@ export class ReplicationNetworksImpl implements ReplicationNetworks { /** * Lists the networks available for a fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param options The options parameters. */ private _listByReplicationFabrics( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationNetworksListByReplicationFabricsOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, fabricName, options }, + { resourceGroupName, resourceName, fabricName, options }, listByReplicationFabricsOperationSpec, ); } /** * Gets the details of a network. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param networkName Primary network name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, networkName: string, options?: ReplicationNetworksGetOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, fabricName, networkName, options }, + { resourceGroupName, resourceName, fabricName, networkName, options }, getOperationSpec, ); } /** * Lists the networks available in a vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ private _list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationNetworksListOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, options }, + { resourceGroupName, resourceName, options }, listOperationSpec, ); } /** * ListByReplicationFabricsNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param nextLink The nextLink from the previous successful call to the ListByReplicationFabrics * method. * @param options The options parameters. */ private _listByReplicationFabricsNext( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, nextLink: string, options?: ReplicationNetworksListByReplicationFabricsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, fabricName, nextLink, options }, + { resourceGroupName, resourceName, fabricName, nextLink, options }, listByReplicationFabricsNextOperationSpec, ); } /** * ListNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( - resourceName: string, resourceGroupName: string, + resourceName: string, nextLink: string, options?: ReplicationNetworksListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, nextLink, options }, + { resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec, ); } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationPolicies.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationPolicies.ts index 969e9fd0dac1..f0569933aad4 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationPolicies.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationPolicies.ts @@ -51,17 +51,17 @@ export class ReplicationPoliciesImpl implements ReplicationPolicies { /** * Lists the replication policies for a vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ public list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationPoliciesListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceName, resourceGroupName, options); + const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { next() { return iter.next(); @@ -74,8 +74,8 @@ export class ReplicationPoliciesImpl implements ReplicationPolicies { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, settings, ); @@ -84,15 +84,15 @@ export class ReplicationPoliciesImpl implements ReplicationPolicies { } private async *listPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationPoliciesListOptionalParams, settings?: PageSettings, ): AsyncIterableIterator { let result: ReplicationPoliciesListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceName, resourceGroupName, options); + result = await this._list(resourceGroupName, resourceName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -100,8 +100,8 @@ export class ReplicationPoliciesImpl implements ReplicationPolicies { } while (continuationToken) { result = await this._listNext( - resourceName, resourceGroupName, + resourceName, continuationToken, options, ); @@ -113,13 +113,13 @@ export class ReplicationPoliciesImpl implements ReplicationPolicies { } private async *listPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationPoliciesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, )) { yield* page; @@ -128,54 +128,54 @@ export class ReplicationPoliciesImpl implements ReplicationPolicies { /** * Lists the replication policies for a vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ private _list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationPoliciesListOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, options }, + { resourceGroupName, resourceName, options }, listOperationSpec, ); } /** * Gets the details of a replication policy. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, policyName: string, options?: ReplicationPoliciesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, policyName, options }, + { resourceGroupName, resourceName, policyName, options }, getOperationSpec, ); } /** * The operation to create a replication policy. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param input Create policy input. * @param options The options parameters. */ async beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, policyName: string, input: CreatePolicyInput, options?: ReplicationPoliciesCreateOptionalParams, @@ -225,7 +225,7 @@ export class ReplicationPoliciesImpl implements ReplicationPolicies { const lro = createLroSpec({ sendOperationFn, - args: { resourceName, resourceGroupName, policyName, input, options }, + args: { resourceGroupName, resourceName, policyName, input, options }, spec: createOperationSpec, }); const poller = await createHttpPoller< @@ -241,23 +241,23 @@ export class ReplicationPoliciesImpl implements ReplicationPolicies { /** * The operation to create a replication policy. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param input Create policy input. * @param options The options parameters. */ async beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, policyName: string, input: CreatePolicyInput, options?: ReplicationPoliciesCreateOptionalParams, ): Promise { const poller = await this.beginCreate( - resourceName, resourceGroupName, + resourceName, policyName, input, options, @@ -267,15 +267,15 @@ export class ReplicationPoliciesImpl implements ReplicationPolicies { /** * The operation to delete a replication policy. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param options The options parameters. */ async beginDelete( - resourceName: string, resourceGroupName: string, + resourceName: string, policyName: string, options?: ReplicationPoliciesDeleteOptionalParams, ): Promise, void>> { @@ -319,7 +319,7 @@ export class ReplicationPoliciesImpl implements ReplicationPolicies { const lro = createLroSpec({ sendOperationFn, - args: { resourceName, resourceGroupName, policyName, options }, + args: { resourceGroupName, resourceName, policyName, options }, spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { @@ -332,21 +332,21 @@ export class ReplicationPoliciesImpl implements ReplicationPolicies { /** * The operation to delete a replication policy. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param options The options parameters. */ async beginDeleteAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, policyName: string, options?: ReplicationPoliciesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( - resourceName, resourceGroupName, + resourceName, policyName, options, ); @@ -355,16 +355,16 @@ export class ReplicationPoliciesImpl implements ReplicationPolicies { /** * The operation to update a replication policy. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param policyName Policy Id. * @param input Update Policy Input. * @param options The options parameters. */ async beginUpdate( - resourceName: string, resourceGroupName: string, + resourceName: string, policyName: string, input: UpdatePolicyInput, options?: ReplicationPoliciesUpdateOptionalParams, @@ -414,7 +414,7 @@ export class ReplicationPoliciesImpl implements ReplicationPolicies { const lro = createLroSpec({ sendOperationFn, - args: { resourceName, resourceGroupName, policyName, input, options }, + args: { resourceGroupName, resourceName, policyName, input, options }, spec: updateOperationSpec, }); const poller = await createHttpPoller< @@ -430,23 +430,23 @@ export class ReplicationPoliciesImpl implements ReplicationPolicies { /** * The operation to update a replication policy. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param policyName Policy Id. * @param input Update Policy Input. * @param options The options parameters. */ async beginUpdateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, policyName: string, input: UpdatePolicyInput, options?: ReplicationPoliciesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( - resourceName, resourceGroupName, + resourceName, policyName, input, options, @@ -456,20 +456,20 @@ export class ReplicationPoliciesImpl implements ReplicationPolicies { /** * ListNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( - resourceName: string, resourceGroupName: string, + resourceName: string, nextLink: string, options?: ReplicationPoliciesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, nextLink, options }, + { resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec, ); } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectableItems.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectableItems.ts index 22ab30dde7ba..c764d6b6d567 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectableItems.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectableItems.ts @@ -40,23 +40,23 @@ export class ReplicationProtectableItemsImpl /** * Lists the protectable items in a protection container. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param options The options parameters. */ public listByReplicationProtectionContainers( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectableItemsListByReplicationProtectionContainersOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByReplicationProtectionContainersPagingAll( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, options, @@ -73,8 +73,8 @@ export class ReplicationProtectableItemsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listByReplicationProtectionContainersPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, options, @@ -85,8 +85,8 @@ export class ReplicationProtectableItemsImpl } private async *listByReplicationProtectionContainersPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectableItemsListByReplicationProtectionContainersOptionalParams, @@ -96,8 +96,8 @@ export class ReplicationProtectableItemsImpl let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._listByReplicationProtectionContainers( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, options, @@ -109,8 +109,8 @@ export class ReplicationProtectableItemsImpl } while (continuationToken) { result = await this._listByReplicationProtectionContainersNext( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, continuationToken, @@ -124,15 +124,15 @@ export class ReplicationProtectableItemsImpl } private async *listByReplicationProtectionContainersPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectableItemsListByReplicationProtectionContainersOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByReplicationProtectionContainersPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, options, @@ -143,24 +143,24 @@ export class ReplicationProtectableItemsImpl /** * Lists the protectable items in a protection container. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param options The options parameters. */ private _listByReplicationProtectionContainers( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectableItemsListByReplicationProtectionContainersOptionalParams, ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, options, @@ -171,17 +171,17 @@ export class ReplicationProtectableItemsImpl /** * The operation to get the details of a protectable item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param protectableItemName Protectable item name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, protectableItemName: string, @@ -189,8 +189,8 @@ export class ReplicationProtectableItemsImpl ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, protectableItemName, @@ -202,9 +202,9 @@ export class ReplicationProtectableItemsImpl /** * ListByReplicationProtectionContainersNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param nextLink The nextLink from the previous successful call to the @@ -212,8 +212,8 @@ export class ReplicationProtectableItemsImpl * @param options The options parameters. */ private _listByReplicationProtectionContainersNext( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, nextLink: string, @@ -221,8 +221,8 @@ export class ReplicationProtectableItemsImpl ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, nextLink, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectedItems.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectedItems.ts index 9ad76fa4ae9f..21911d29cd18 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectedItems.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectedItems.ts @@ -101,23 +101,23 @@ export class ReplicationProtectedItemsImpl /** * Gets the list of ASR replication protected items in the protection container. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param options The options parameters. */ public listByReplicationProtectionContainers( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectedItemsListByReplicationProtectionContainersOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByReplicationProtectionContainersPagingAll( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, options, @@ -134,8 +134,8 @@ export class ReplicationProtectedItemsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listByReplicationProtectionContainersPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, options, @@ -146,8 +146,8 @@ export class ReplicationProtectedItemsImpl } private async *listByReplicationProtectionContainersPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectedItemsListByReplicationProtectionContainersOptionalParams, @@ -157,8 +157,8 @@ export class ReplicationProtectedItemsImpl let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._listByReplicationProtectionContainers( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, options, @@ -170,8 +170,8 @@ export class ReplicationProtectedItemsImpl } while (continuationToken) { result = await this._listByReplicationProtectionContainersNext( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, continuationToken, @@ -185,15 +185,15 @@ export class ReplicationProtectedItemsImpl } private async *listByReplicationProtectionContainersPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectedItemsListByReplicationProtectionContainersOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByReplicationProtectionContainersPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, options, @@ -204,17 +204,17 @@ export class ReplicationProtectedItemsImpl /** * Gets the list of ASR replication protected items in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ public list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationProtectedItemsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceName, resourceGroupName, options); + const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { next() { return iter.next(); @@ -227,8 +227,8 @@ export class ReplicationProtectedItemsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, settings, ); @@ -237,15 +237,15 @@ export class ReplicationProtectedItemsImpl } private async *listPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationProtectedItemsListOptionalParams, settings?: PageSettings, ): AsyncIterableIterator { let result: ReplicationProtectedItemsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceName, resourceGroupName, options); + result = await this._list(resourceGroupName, resourceName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -253,8 +253,8 @@ export class ReplicationProtectedItemsImpl } while (continuationToken) { result = await this._listNext( - resourceName, resourceGroupName, + resourceName, continuationToken, options, ); @@ -266,13 +266,13 @@ export class ReplicationProtectedItemsImpl } private async *listPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationProtectedItemsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, )) { yield* page; @@ -281,24 +281,24 @@ export class ReplicationProtectedItemsImpl /** * Gets the list of ASR replication protected items in the protection container. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param options The options parameters. */ private _listByReplicationProtectionContainers( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectedItemsListByReplicationProtectionContainersOptionalParams, ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, options, @@ -309,17 +309,17 @@ export class ReplicationProtectedItemsImpl /** * Gets the details of an ASR replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -327,8 +327,8 @@ export class ReplicationProtectedItemsImpl ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -340,9 +340,9 @@ export class ReplicationProtectedItemsImpl /** * The operation to create an ASR replication protected item (Enable replication). - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the fabric. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName A name for the replication protected item. @@ -350,8 +350,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -404,8 +404,8 @@ export class ReplicationProtectedItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -427,9 +427,9 @@ export class ReplicationProtectedItemsImpl /** * The operation to create an ASR replication protected item (Enable replication). - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the fabric. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName A name for the replication protected item. @@ -437,8 +437,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -446,8 +446,8 @@ export class ReplicationProtectedItemsImpl options?: ReplicationProtectedItemsCreateOptionalParams, ): Promise { const poller = await this.beginCreate( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -461,17 +461,17 @@ export class ReplicationProtectedItemsImpl * The operation to delete or purge a replication protected item. This operation will force delete the * replication protected item. Use the remove operation on replication protected item to perform a * clean disable replication for the item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. * @param options The options parameters. */ async beginPurge( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -518,8 +518,8 @@ export class ReplicationProtectedItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -539,25 +539,25 @@ export class ReplicationProtectedItemsImpl * The operation to delete or purge a replication protected item. This operation will force delete the * replication protected item. Use the remove operation on replication protected item to perform a * clean disable replication for the item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. * @param options The options parameters. */ async beginPurgeAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: ReplicationProtectedItemsPurgeOptionalParams, ): Promise { const poller = await this.beginPurge( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -568,9 +568,9 @@ export class ReplicationProtectedItemsImpl /** * The operation to update the recovery settings of an ASR replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -578,8 +578,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginUpdate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -632,8 +632,8 @@ export class ReplicationProtectedItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -655,9 +655,9 @@ export class ReplicationProtectedItemsImpl /** * The operation to update the recovery settings of an ASR replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -665,8 +665,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginUpdateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -674,8 +674,8 @@ export class ReplicationProtectedItemsImpl options?: ReplicationProtectedItemsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -687,9 +687,9 @@ export class ReplicationProtectedItemsImpl /** * Operation to add disks(s) to the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -697,8 +697,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginAddDisks( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -751,8 +751,8 @@ export class ReplicationProtectedItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -774,9 +774,9 @@ export class ReplicationProtectedItemsImpl /** * Operation to add disks(s) to the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -784,8 +784,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginAddDisksAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -793,8 +793,8 @@ export class ReplicationProtectedItemsImpl options?: ReplicationProtectedItemsAddDisksOptionalParams, ): Promise { const poller = await this.beginAddDisks( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -806,9 +806,9 @@ export class ReplicationProtectedItemsImpl /** * The operation to change the recovery point of a failed over replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The ARM fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replicated protected item name. @@ -816,8 +816,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginApplyRecoveryPoint( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -870,8 +870,8 @@ export class ReplicationProtectedItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -893,9 +893,9 @@ export class ReplicationProtectedItemsImpl /** * The operation to change the recovery point of a failed over replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The ARM fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replicated protected item name. @@ -903,8 +903,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginApplyRecoveryPointAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -912,8 +912,8 @@ export class ReplicationProtectedItemsImpl options?: ReplicationProtectedItemsApplyRecoveryPointOptionalParams, ): Promise { const poller = await this.beginApplyRecoveryPoint( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -925,17 +925,17 @@ export class ReplicationProtectedItemsImpl /** * Operation to cancel the failover of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. * @param options The options parameters. */ async beginFailoverCancel( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -987,8 +987,8 @@ export class ReplicationProtectedItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -1009,25 +1009,25 @@ export class ReplicationProtectedItemsImpl /** * Operation to cancel the failover of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. * @param options The options parameters. */ async beginFailoverCancelAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: ReplicationProtectedItemsFailoverCancelOptionalParams, ): Promise { const poller = await this.beginFailoverCancel( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -1038,17 +1038,17 @@ export class ReplicationProtectedItemsImpl /** * Operation to commit the failover of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. * @param options The options parameters. */ async beginFailoverCommit( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -1100,8 +1100,8 @@ export class ReplicationProtectedItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -1122,25 +1122,25 @@ export class ReplicationProtectedItemsImpl /** * Operation to commit the failover of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. * @param options The options parameters. */ async beginFailoverCommitAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: ReplicationProtectedItemsFailoverCommitOptionalParams, ): Promise { const poller = await this.beginFailoverCommit( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -1151,9 +1151,9 @@ export class ReplicationProtectedItemsImpl /** * Operation to initiate a planned failover of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1161,8 +1161,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginPlannedFailover( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -1215,8 +1215,8 @@ export class ReplicationProtectedItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -1238,9 +1238,9 @@ export class ReplicationProtectedItemsImpl /** * Operation to initiate a planned failover of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1248,8 +1248,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginPlannedFailoverAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -1257,8 +1257,8 @@ export class ReplicationProtectedItemsImpl options?: ReplicationProtectedItemsPlannedFailoverOptionalParams, ): Promise { const poller = await this.beginPlannedFailover( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -1271,9 +1271,9 @@ export class ReplicationProtectedItemsImpl /** * The operation to disable replication on a replication protected item. This will also remove the * item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1281,8 +1281,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginDelete( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -1330,8 +1330,8 @@ export class ReplicationProtectedItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -1351,9 +1351,9 @@ export class ReplicationProtectedItemsImpl /** * The operation to disable replication on a replication protected item. This will also remove the * item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1361,8 +1361,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginDeleteAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -1370,8 +1370,8 @@ export class ReplicationProtectedItemsImpl options?: ReplicationProtectedItemsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -1383,9 +1383,9 @@ export class ReplicationProtectedItemsImpl /** * Operation to remove disk(s) from the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1393,8 +1393,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginRemoveDisks( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -1447,8 +1447,8 @@ export class ReplicationProtectedItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -1470,9 +1470,9 @@ export class ReplicationProtectedItemsImpl /** * Operation to remove disk(s) from the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1480,8 +1480,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginRemoveDisksAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -1489,8 +1489,8 @@ export class ReplicationProtectedItemsImpl options?: ReplicationProtectedItemsRemoveDisksOptionalParams, ): Promise { const poller = await this.beginRemoveDisks( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -1503,17 +1503,17 @@ export class ReplicationProtectedItemsImpl /** * The operation to start resynchronize/repair replication for a replication protected item requiring * resynchronization. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the container. * @param replicatedProtectedItemName The name of the replication protected item. * @param options The options parameters. */ async beginRepairReplication( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -1565,8 +1565,8 @@ export class ReplicationProtectedItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -1588,25 +1588,25 @@ export class ReplicationProtectedItemsImpl /** * The operation to start resynchronize/repair replication for a replication protected item requiring * resynchronization. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the container. * @param replicatedProtectedItemName The name of the replication protected item. * @param options The options parameters. */ async beginRepairReplicationAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: ReplicationProtectedItemsRepairReplicationOptionalParams, ): Promise { const poller = await this.beginRepairReplication( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -1617,9 +1617,9 @@ export class ReplicationProtectedItemsImpl /** * Operation to reprotect or reverse replicate a failed over replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1627,8 +1627,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginReprotect( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -1681,8 +1681,8 @@ export class ReplicationProtectedItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -1704,9 +1704,9 @@ export class ReplicationProtectedItemsImpl /** * Operation to reprotect or reverse replicate a failed over replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1714,8 +1714,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginReprotectAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -1723,8 +1723,8 @@ export class ReplicationProtectedItemsImpl options?: ReplicationProtectedItemsReprotectOptionalParams, ): Promise { const poller = await this.beginReprotect( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -1736,9 +1736,9 @@ export class ReplicationProtectedItemsImpl /** * Operation to resolve health issues of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1746,8 +1746,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginResolveHealthErrors( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -1800,8 +1800,8 @@ export class ReplicationProtectedItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -1823,9 +1823,9 @@ export class ReplicationProtectedItemsImpl /** * Operation to resolve health issues of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1833,8 +1833,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginResolveHealthErrorsAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -1842,8 +1842,8 @@ export class ReplicationProtectedItemsImpl options?: ReplicationProtectedItemsResolveHealthErrorsOptionalParams, ): Promise { const poller = await this.beginResolveHealthErrors( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -1855,9 +1855,9 @@ export class ReplicationProtectedItemsImpl /** * Operation to initiate a switch provider of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1865,8 +1865,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginSwitchProvider( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -1919,8 +1919,8 @@ export class ReplicationProtectedItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -1943,9 +1943,9 @@ export class ReplicationProtectedItemsImpl /** * Operation to initiate a switch provider of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1953,8 +1953,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginSwitchProviderAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -1962,8 +1962,8 @@ export class ReplicationProtectedItemsImpl options?: ReplicationProtectedItemsSwitchProviderOptionalParams, ): Promise { const poller = await this.beginSwitchProvider( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -1975,9 +1975,9 @@ export class ReplicationProtectedItemsImpl /** * Operation to perform a test failover of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -1985,8 +1985,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginTestFailover( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -2039,8 +2039,8 @@ export class ReplicationProtectedItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -2062,9 +2062,9 @@ export class ReplicationProtectedItemsImpl /** * Operation to perform a test failover of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2072,8 +2072,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginTestFailoverAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -2081,8 +2081,8 @@ export class ReplicationProtectedItemsImpl options?: ReplicationProtectedItemsTestFailoverOptionalParams, ): Promise { const poller = await this.beginTestFailover( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -2094,9 +2094,9 @@ export class ReplicationProtectedItemsImpl /** * Operation to clean up the test failover of a replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2104,8 +2104,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginTestFailoverCleanup( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -2158,8 +2158,8 @@ export class ReplicationProtectedItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -2181,9 +2181,9 @@ export class ReplicationProtectedItemsImpl /** * Operation to clean up the test failover of a replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2191,8 +2191,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginTestFailoverCleanupAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -2200,8 +2200,8 @@ export class ReplicationProtectedItemsImpl options?: ReplicationProtectedItemsTestFailoverCleanupOptionalParams, ): Promise { const poller = await this.beginTestFailoverCleanup( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -2213,9 +2213,9 @@ export class ReplicationProtectedItemsImpl /** * Operation to initiate a failover of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2223,8 +2223,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginUnplannedFailover( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -2277,8 +2277,8 @@ export class ReplicationProtectedItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -2300,9 +2300,9 @@ export class ReplicationProtectedItemsImpl /** * Operation to initiate a failover of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2310,8 +2310,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginUnplannedFailoverAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -2319,8 +2319,8 @@ export class ReplicationProtectedItemsImpl options?: ReplicationProtectedItemsUnplannedFailoverOptionalParams, ): Promise { const poller = await this.beginUnplannedFailover( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -2332,9 +2332,9 @@ export class ReplicationProtectedItemsImpl /** * The operation to update appliance of an ASR replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2342,8 +2342,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginUpdateAppliance( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -2396,8 +2396,8 @@ export class ReplicationProtectedItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -2419,9 +2419,9 @@ export class ReplicationProtectedItemsImpl /** * The operation to update appliance of an ASR replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -2429,8 +2429,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginUpdateApplianceAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -2438,8 +2438,8 @@ export class ReplicationProtectedItemsImpl options?: ReplicationProtectedItemsUpdateApplianceOptionalParams, ): Promise { const poller = await this.beginUpdateAppliance( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -2452,9 +2452,9 @@ export class ReplicationProtectedItemsImpl /** * The operation to update(push update) the installed mobility service software on a replication * protected item to the latest available version. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the protected item. * @param protectionContainerName The name of the container containing the protected item. * @param replicatedProtectedItemName The name of the protected item on which the agent is to be @@ -2463,8 +2463,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginUpdateMobilityService( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -2517,8 +2517,8 @@ export class ReplicationProtectedItemsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -2542,9 +2542,9 @@ export class ReplicationProtectedItemsImpl /** * The operation to update(push update) the installed mobility service software on a replication * protected item to the latest available version. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the protected item. * @param protectionContainerName The name of the container containing the protected item. * @param replicatedProtectedItemName The name of the protected item on which the agent is to be @@ -2553,8 +2553,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ async beginUpdateMobilityServiceAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -2562,8 +2562,8 @@ export class ReplicationProtectedItemsImpl options?: ReplicationProtectedItemsUpdateMobilityServiceOptionalParams, ): Promise { const poller = await this.beginUpdateMobilityService( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -2575,27 +2575,27 @@ export class ReplicationProtectedItemsImpl /** * Gets the list of ASR replication protected items in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ private _list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationProtectedItemsListOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, options }, + { resourceGroupName, resourceName, options }, listOperationSpec, ); } /** * ListByReplicationProtectionContainersNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param nextLink The nextLink from the previous successful call to the @@ -2603,8 +2603,8 @@ export class ReplicationProtectedItemsImpl * @param options The options parameters. */ private _listByReplicationProtectionContainersNext( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, nextLink: string, @@ -2612,8 +2612,8 @@ export class ReplicationProtectedItemsImpl ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, nextLink, @@ -2625,20 +2625,20 @@ export class ReplicationProtectedItemsImpl /** * ListNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( - resourceName: string, resourceGroupName: string, + resourceName: string, nextLink: string, options?: ReplicationProtectedItemsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, nextLink, options }, + { resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec, ); } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionClusters.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionClusters.ts new file mode 100644 index 000000000000..1129de7d0c1d --- /dev/null +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionClusters.ts @@ -0,0 +1,1780 @@ +/* + * 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.js"; +import { ReplicationProtectionClusters } from "../operationsInterfaces/index.js"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { SiteRecoveryManagementClient } from "../siteRecoveryManagementClient.js"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl.js"; +import { + ReplicationProtectionCluster, + ReplicationProtectionClustersListByReplicationProtectionContainersNextOptionalParams, + ReplicationProtectionClustersListByReplicationProtectionContainersOptionalParams, + ReplicationProtectionClustersListByReplicationProtectionContainersResponse, + ReplicationProtectionClustersListNextOptionalParams, + ReplicationProtectionClustersListOptionalParams, + ReplicationProtectionClustersListResponse, + ReplicationProtectionClustersGetOptionalParams, + ReplicationProtectionClustersGetResponse, + ReplicationProtectionClustersCreateOptionalParams, + ReplicationProtectionClustersCreateResponse, + ReplicationProtectionClustersPurgeOptionalParams, + ReplicationProtectionClustersPurgeResponse, + ApplyClusterRecoveryPointInput, + ReplicationProtectionClustersApplyRecoveryPointOptionalParams, + ReplicationProtectionClustersApplyRecoveryPointResponse, + ReplicationProtectionClustersFailoverCommitOptionalParams, + ReplicationProtectionClustersFailoverCommitResponse, + ReplicationProtectionClustersGetOperationResultsOptionalParams, + ReplicationProtectionClustersGetOperationResultsResponse, + ReplicationProtectionClustersRepairReplicationOptionalParams, + ReplicationProtectionClustersRepairReplicationResponse, + ClusterTestFailoverInput, + ReplicationProtectionClustersTestFailoverOptionalParams, + ReplicationProtectionClustersTestFailoverResponse, + ClusterTestFailoverCleanupInput, + ReplicationProtectionClustersTestFailoverCleanupOptionalParams, + ReplicationProtectionClustersTestFailoverCleanupResponse, + ClusterUnplannedFailoverInput, + ReplicationProtectionClustersUnplannedFailoverOptionalParams, + ReplicationProtectionClustersUnplannedFailoverResponse, + ReplicationProtectionClustersListByReplicationProtectionContainersNextResponse, + ReplicationProtectionClustersListNextResponse, +} from "../models/index.js"; + +/// +/** Class containing ReplicationProtectionClusters operations. */ +export class ReplicationProtectionClustersImpl + implements ReplicationProtectionClusters +{ + private readonly client: SiteRecoveryManagementClient; + + /** + * Initialize a new instance of the class ReplicationProtectionClusters class. + * @param client Reference to the service client + */ + constructor(client: SiteRecoveryManagementClient) { + this.client = client; + } + + /** + * Gets the list of ASR replication protected clusters in the protection container. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param options The options parameters. + */ + public listByReplicationProtectionContainers( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + options?: ReplicationProtectionClustersListByReplicationProtectionContainersOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByReplicationProtectionContainersPagingAll( + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + 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.listByReplicationProtectionContainersPagingPage( + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + options, + settings, + ); + }, + }; + } + + private async *listByReplicationProtectionContainersPagingPage( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + options?: ReplicationProtectionClustersListByReplicationProtectionContainersOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ReplicationProtectionClustersListByReplicationProtectionContainersResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByReplicationProtectionContainers( + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByReplicationProtectionContainersNext( + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByReplicationProtectionContainersPagingAll( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + options?: ReplicationProtectionClustersListByReplicationProtectionContainersOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByReplicationProtectionContainersPagingPage( + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + options, + )) { + yield* page; + } + } + + /** + * Gets the list of ASR replication protected clusters in the vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + resourceName: string, + options?: ReplicationProtectionClustersListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, resourceName, 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, + resourceName, + options, + settings, + ); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + resourceName: string, + options?: ReplicationProtectionClustersListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ReplicationProtectionClustersListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, resourceName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + resourceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + resourceName: string, + options?: ReplicationProtectionClustersListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + resourceName, + options, + )) { + yield* page; + } + } + + /** + * Gets the list of ASR replication protected clusters in the protection container. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param options The options parameters. + */ + private _listByReplicationProtectionContainers( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + options?: ReplicationProtectionClustersListByReplicationProtectionContainersOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + options, + }, + listByReplicationProtectionContainersOperationSpec, + ); + } + + /** + * Gets the details of an ASR replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + options?: ReplicationProtectionClustersGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + options, + }, + getOperationSpec, + ); + } + + /** + * The operation to create an ASR replication protection cluster item. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param replicationProtectionCluster Create replication protection cluster Input. + * @param options The options parameters. + */ + async beginCreate( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + replicationProtectionCluster: ReplicationProtectionCluster, + options?: ReplicationProtectionClustersCreateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ReplicationProtectionClustersCreateResponse + > + > { + 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, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + replicationProtectionCluster, + options, + }, + spec: createOperationSpec, + }); + const poller = await createHttpPoller< + ReplicationProtectionClustersCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * The operation to create an ASR replication protection cluster item. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param replicationProtectionCluster Create replication protection cluster Input. + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + replicationProtectionCluster: ReplicationProtectionCluster, + options?: ReplicationProtectionClustersCreateOptionalParams, + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + replicationProtectionCluster, + options, + ); + return poller.pollUntilDone(); + } + + /** + * The operation to purge the replication protection cluster. This operation will force delete the + * replication protection cluster. Use the remove operation on replication protection cluster to + * perform a clean disable replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param options The options parameters. + */ + async beginPurge( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + options?: ReplicationProtectionClustersPurgeOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ReplicationProtectionClustersPurgeResponse + > + > { + 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, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + options, + }, + spec: purgeOperationSpec, + }); + const poller = await createHttpPoller< + ReplicationProtectionClustersPurgeResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to purge the replication protection cluster. This operation will force delete the + * replication protection cluster. Use the remove operation on replication protection cluster to + * perform a clean disable replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param options The options parameters. + */ + async beginPurgeAndWait( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + options?: ReplicationProtectionClustersPurgeOptionalParams, + ): Promise { + const poller = await this.beginPurge( + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Operation to apply a new cluster recovery point on the Protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param applyClusterRecoveryPointInput Apply recovery point input. + * @param options The options parameters. + */ + async beginApplyRecoveryPoint( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + applyClusterRecoveryPointInput: ApplyClusterRecoveryPointInput, + options?: ReplicationProtectionClustersApplyRecoveryPointOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ReplicationProtectionClustersApplyRecoveryPointResponse + > + > { + 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, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + applyClusterRecoveryPointInput, + options, + }, + spec: applyRecoveryPointOperationSpec, + }); + const poller = await createHttpPoller< + ReplicationProtectionClustersApplyRecoveryPointResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Operation to apply a new cluster recovery point on the Protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param applyClusterRecoveryPointInput Apply recovery point input. + * @param options The options parameters. + */ + async beginApplyRecoveryPointAndWait( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + applyClusterRecoveryPointInput: ApplyClusterRecoveryPointInput, + options?: ReplicationProtectionClustersApplyRecoveryPointOptionalParams, + ): Promise { + const poller = await this.beginApplyRecoveryPoint( + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + applyClusterRecoveryPointInput, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Operation to initiate commit failover of the replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param options The options parameters. + */ + async beginFailoverCommit( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + options?: ReplicationProtectionClustersFailoverCommitOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ReplicationProtectionClustersFailoverCommitResponse + > + > { + 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, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + options, + }, + spec: failoverCommitOperationSpec, + }); + const poller = await createHttpPoller< + ReplicationProtectionClustersFailoverCommitResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Operation to initiate commit failover of the replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param options The options parameters. + */ + async beginFailoverCommitAndWait( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + options?: ReplicationProtectionClustersFailoverCommitOptionalParams, + ): Promise { + const poller = await this.beginFailoverCommit( + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Track the results of an asynchronous operation on the replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param jobId job id to track. + * @param options The options parameters. + */ + getOperationResults( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + jobId: string, + options?: ReplicationProtectionClustersGetOperationResultsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + jobId, + options, + }, + getOperationResultsOperationSpec, + ); + } + + /** + * The operation to repair replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param options The options parameters. + */ + async beginRepairReplication( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + options?: ReplicationProtectionClustersRepairReplicationOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ReplicationProtectionClustersRepairReplicationResponse + > + > { + 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, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + options, + }, + spec: repairReplicationOperationSpec, + }); + const poller = await createHttpPoller< + ReplicationProtectionClustersRepairReplicationResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to repair replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param options The options parameters. + */ + async beginRepairReplicationAndWait( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + options?: ReplicationProtectionClustersRepairReplicationOptionalParams, + ): Promise { + const poller = await this.beginRepairReplication( + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Operation to initiate a failover of the replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Cluster test failover input body. + * @param options The options parameters. + */ + async beginTestFailover( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + failoverInput: ClusterTestFailoverInput, + options?: ReplicationProtectionClustersTestFailoverOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ReplicationProtectionClustersTestFailoverResponse + > + > { + 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, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + failoverInput, + options, + }, + spec: testFailoverOperationSpec, + }); + const poller = await createHttpPoller< + ReplicationProtectionClustersTestFailoverResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Operation to initiate a failover of the replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Cluster test failover input body. + * @param options The options parameters. + */ + async beginTestFailoverAndWait( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + failoverInput: ClusterTestFailoverInput, + options?: ReplicationProtectionClustersTestFailoverOptionalParams, + ): Promise { + const poller = await this.beginTestFailover( + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + failoverInput, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Operation to clean up the test failover of a replication protected cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param cleanupInput Test failover cleanup input. + * @param options The options parameters. + */ + async beginTestFailoverCleanup( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + cleanupInput: ClusterTestFailoverCleanupInput, + options?: ReplicationProtectionClustersTestFailoverCleanupOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ReplicationProtectionClustersTestFailoverCleanupResponse + > + > { + 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, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + cleanupInput, + options, + }, + spec: testFailoverCleanupOperationSpec, + }); + const poller = await createHttpPoller< + ReplicationProtectionClustersTestFailoverCleanupResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Operation to clean up the test failover of a replication protected cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param cleanupInput Test failover cleanup input. + * @param options The options parameters. + */ + async beginTestFailoverCleanupAndWait( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + cleanupInput: ClusterTestFailoverCleanupInput, + options?: ReplicationProtectionClustersTestFailoverCleanupOptionalParams, + ): Promise { + const poller = await this.beginTestFailoverCleanup( + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + cleanupInput, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Operation to initiate a failover of the replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Failover input. + * @param options The options parameters. + */ + async beginUnplannedFailover( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + failoverInput: ClusterUnplannedFailoverInput, + options?: ReplicationProtectionClustersUnplannedFailoverOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ReplicationProtectionClustersUnplannedFailoverResponse + > + > { + 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, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + failoverInput, + options, + }, + spec: unplannedFailoverOperationSpec, + }); + const poller = await createHttpPoller< + ReplicationProtectionClustersUnplannedFailoverResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Operation to initiate a failover of the replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Failover input. + * @param options The options parameters. + */ + async beginUnplannedFailoverAndWait( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + failoverInput: ClusterUnplannedFailoverInput, + options?: ReplicationProtectionClustersUnplannedFailoverOptionalParams, + ): Promise { + const poller = await this.beginUnplannedFailover( + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + replicationProtectionClusterName, + failoverInput, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Gets the list of ASR replication protected clusters in the vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + resourceName: string, + options?: ReplicationProtectionClustersListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, resourceName, options }, + listOperationSpec, + ); + } + + /** + * ListByReplicationProtectionContainersNext + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param nextLink The nextLink from the previous successful call to the + * ListByReplicationProtectionContainers method. + * @param options The options parameters. + */ + private _listByReplicationProtectionContainersNext( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + nextLink: string, + options?: ReplicationProtectionClustersListByReplicationProtectionContainersNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + fabricName, + protectionContainerName, + nextLink, + options, + }, + listByReplicationProtectionContainersNextOperationSpec, + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + resourceName: string, + nextLink: string, + options?: ReplicationProtectionClustersListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, resourceName, nextLink, options }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByReplicationProtectionContainersOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ReplicationProtectionClusterCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceName1, + Parameters.fabricName1, + Parameters.protectionContainerName1, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceName1, + Parameters.fabricName1, + Parameters.protectionContainerName1, + Parameters.replicationProtectionClusterName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + 201: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + 202: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + 204: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.replicationProtectionCluster, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceName, + Parameters.fabricName1, + Parameters.protectionContainerName1, + Parameters.replicationProtectionClusterName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const purgeOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.ReplicationProtectionClustersPurgeHeaders, + }, + 201: { + headersMapper: Mappers.ReplicationProtectionClustersPurgeHeaders, + }, + 202: { + headersMapper: Mappers.ReplicationProtectionClustersPurgeHeaders, + }, + 204: { + headersMapper: Mappers.ReplicationProtectionClustersPurgeHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceName, + Parameters.fabricName1, + Parameters.protectionContainerName1, + Parameters.replicationProtectionClusterName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const applyRecoveryPointOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/applyRecoveryPoint", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + 201: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + 202: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + 204: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.applyClusterRecoveryPointInput, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceName1, + Parameters.fabricName1, + Parameters.protectionContainerName1, + Parameters.replicationProtectionClusterName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const failoverCommitOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/failoverCommit", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + 201: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + 202: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + 204: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceName1, + Parameters.fabricName1, + Parameters.protectionContainerName1, + Parameters.replicationProtectionClusterName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationResultsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/operationResults/{jobId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceName1, + Parameters.fabricName1, + Parameters.protectionContainerName1, + Parameters.replicationProtectionClusterName, + Parameters.jobId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const repairReplicationOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/repairReplication", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + 201: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + 202: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + 204: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceName1, + Parameters.fabricName1, + Parameters.protectionContainerName1, + Parameters.replicationProtectionClusterName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const testFailoverOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/testFailover", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + 201: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + 202: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + 204: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.failoverInput2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceName1, + Parameters.fabricName1, + Parameters.protectionContainerName1, + Parameters.replicationProtectionClusterName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const testFailoverCleanupOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/testFailoverCleanup", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + 201: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + 202: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + 204: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.cleanupInput1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceName1, + Parameters.fabricName1, + Parameters.protectionContainerName1, + Parameters.replicationProtectionClusterName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const unplannedFailoverOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/unplannedFailover", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + 201: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + 202: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + 204: { + bodyMapper: Mappers.ReplicationProtectionCluster, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.failoverInput3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceName1, + Parameters.fabricName1, + Parameters.protectionContainerName1, + Parameters.replicationProtectionClusterName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionClusters", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ReplicationProtectionClusterCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.skipToken, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByReplicationProtectionContainersNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ReplicationProtectionClusterCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceName1, + Parameters.fabricName1, + Parameters.protectionContainerName1, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ReplicationProtectionClusterCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionContainerMappings.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionContainerMappings.ts index 288aa63b7dca..8f5ddf684cc6 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionContainerMappings.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionContainerMappings.ts @@ -59,23 +59,23 @@ export class ReplicationProtectionContainerMappingsImpl /** * Lists the protection container mappings for a protection container. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param options The options parameters. */ public listByReplicationProtectionContainers( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectionContainerMappingsListByReplicationProtectionContainersOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByReplicationProtectionContainersPagingAll( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, options, @@ -92,8 +92,8 @@ export class ReplicationProtectionContainerMappingsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listByReplicationProtectionContainersPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, options, @@ -104,8 +104,8 @@ export class ReplicationProtectionContainerMappingsImpl } private async *listByReplicationProtectionContainersPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectionContainerMappingsListByReplicationProtectionContainersOptionalParams, @@ -115,8 +115,8 @@ export class ReplicationProtectionContainerMappingsImpl let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._listByReplicationProtectionContainers( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, options, @@ -128,8 +128,8 @@ export class ReplicationProtectionContainerMappingsImpl } while (continuationToken) { result = await this._listByReplicationProtectionContainersNext( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, continuationToken, @@ -143,15 +143,15 @@ export class ReplicationProtectionContainerMappingsImpl } private async *listByReplicationProtectionContainersPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectionContainerMappingsListByReplicationProtectionContainersOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByReplicationProtectionContainersPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, options, @@ -162,17 +162,17 @@ export class ReplicationProtectionContainerMappingsImpl /** * Lists the protection container mappings in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ public list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationProtectionContainerMappingsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceName, resourceGroupName, options); + const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { next() { return iter.next(); @@ -185,8 +185,8 @@ export class ReplicationProtectionContainerMappingsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, settings, ); @@ -195,15 +195,15 @@ export class ReplicationProtectionContainerMappingsImpl } private async *listPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationProtectionContainerMappingsListOptionalParams, settings?: PageSettings, ): AsyncIterableIterator { let result: ReplicationProtectionContainerMappingsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceName, resourceGroupName, options); + result = await this._list(resourceGroupName, resourceName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -211,8 +211,8 @@ export class ReplicationProtectionContainerMappingsImpl } while (continuationToken) { result = await this._listNext( - resourceName, resourceGroupName, + resourceName, continuationToken, options, ); @@ -224,13 +224,13 @@ export class ReplicationProtectionContainerMappingsImpl } private async *listPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationProtectionContainerMappingsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, )) { yield* page; @@ -239,24 +239,24 @@ export class ReplicationProtectionContainerMappingsImpl /** * Lists the protection container mappings for a protection container. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param options The options parameters. */ private _listByReplicationProtectionContainers( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectionContainerMappingsListByReplicationProtectionContainersOptionalParams, ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, options, @@ -267,17 +267,17 @@ export class ReplicationProtectionContainerMappingsImpl /** * Gets the details of a protection container mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection Container mapping name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, @@ -285,8 +285,8 @@ export class ReplicationProtectionContainerMappingsImpl ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, mappingName, @@ -298,9 +298,9 @@ export class ReplicationProtectionContainerMappingsImpl /** * The operation to create a protection container mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -308,8 +308,8 @@ export class ReplicationProtectionContainerMappingsImpl * @param options The options parameters. */ async beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, @@ -362,8 +362,8 @@ export class ReplicationProtectionContainerMappingsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, mappingName, @@ -385,9 +385,9 @@ export class ReplicationProtectionContainerMappingsImpl /** * The operation to create a protection container mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -395,8 +395,8 @@ export class ReplicationProtectionContainerMappingsImpl * @param options The options parameters. */ async beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, @@ -404,8 +404,8 @@ export class ReplicationProtectionContainerMappingsImpl options?: ReplicationProtectionContainerMappingsCreateOptionalParams, ): Promise { const poller = await this.beginCreate( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, mappingName, @@ -417,17 +417,17 @@ export class ReplicationProtectionContainerMappingsImpl /** * The operation to purge(force delete) a protection container mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. * @param options The options parameters. */ async beginPurge( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, @@ -474,8 +474,8 @@ export class ReplicationProtectionContainerMappingsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, mappingName, @@ -493,25 +493,25 @@ export class ReplicationProtectionContainerMappingsImpl /** * The operation to purge(force delete) a protection container mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. * @param options The options parameters. */ async beginPurgeAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, options?: ReplicationProtectionContainerMappingsPurgeOptionalParams, ): Promise { const poller = await this.beginPurge( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, mappingName, @@ -522,9 +522,9 @@ export class ReplicationProtectionContainerMappingsImpl /** * The operation to update protection container mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -532,8 +532,8 @@ export class ReplicationProtectionContainerMappingsImpl * @param options The options parameters. */ async beginUpdate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, @@ -586,8 +586,8 @@ export class ReplicationProtectionContainerMappingsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, mappingName, @@ -609,9 +609,9 @@ export class ReplicationProtectionContainerMappingsImpl /** * The operation to update protection container mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -619,8 +619,8 @@ export class ReplicationProtectionContainerMappingsImpl * @param options The options parameters. */ async beginUpdateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, @@ -628,8 +628,8 @@ export class ReplicationProtectionContainerMappingsImpl options?: ReplicationProtectionContainerMappingsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, mappingName, @@ -641,9 +641,9 @@ export class ReplicationProtectionContainerMappingsImpl /** * The operation to delete or remove a protection container mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -651,8 +651,8 @@ export class ReplicationProtectionContainerMappingsImpl * @param options The options parameters. */ async beginDelete( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, @@ -700,8 +700,8 @@ export class ReplicationProtectionContainerMappingsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, mappingName, @@ -720,9 +720,9 @@ export class ReplicationProtectionContainerMappingsImpl /** * The operation to delete or remove a protection container mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -730,8 +730,8 @@ export class ReplicationProtectionContainerMappingsImpl * @param options The options parameters. */ async beginDeleteAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, @@ -739,8 +739,8 @@ export class ReplicationProtectionContainerMappingsImpl options?: ReplicationProtectionContainerMappingsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, mappingName, @@ -752,27 +752,27 @@ export class ReplicationProtectionContainerMappingsImpl /** * Lists the protection container mappings in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ private _list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationProtectionContainerMappingsListOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, options }, + { resourceGroupName, resourceName, options }, listOperationSpec, ); } /** * ListByReplicationProtectionContainersNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param nextLink The nextLink from the previous successful call to the @@ -780,8 +780,8 @@ export class ReplicationProtectionContainerMappingsImpl * @param options The options parameters. */ private _listByReplicationProtectionContainersNext( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, nextLink: string, @@ -789,8 +789,8 @@ export class ReplicationProtectionContainerMappingsImpl ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, nextLink, @@ -802,20 +802,20 @@ export class ReplicationProtectionContainerMappingsImpl /** * ListNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( - resourceName: string, resourceGroupName: string, + resourceName: string, nextLink: string, options?: ReplicationProtectionContainerMappingsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, nextLink, options }, + { resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec, ); } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionContainers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionContainers.ts index 3b713d51ea8b..3e38c105192d 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionContainers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionContainers.ts @@ -36,6 +36,9 @@ import { ReplicationProtectionContainersDiscoverProtectableItemOptionalParams, ReplicationProtectionContainersDiscoverProtectableItemResponse, ReplicationProtectionContainersDeleteOptionalParams, + SwitchClusterProtectionInput, + ReplicationProtectionContainersSwitchClusterProtectionOptionalParams, + ReplicationProtectionContainersSwitchClusterProtectionResponse, SwitchProtectionInput, ReplicationProtectionContainersSwitchProtectionOptionalParams, ReplicationProtectionContainersSwitchProtectionResponse, @@ -60,21 +63,21 @@ export class ReplicationProtectionContainersImpl /** * Lists the protection containers in the specified fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param options The options parameters. */ public listByReplicationFabrics( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationProtectionContainersListByReplicationFabricsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByReplicationFabricsPagingAll( - resourceName, resourceGroupName, + resourceName, fabricName, options, ); @@ -90,8 +93,8 @@ export class ReplicationProtectionContainersImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listByReplicationFabricsPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, options, settings, @@ -101,8 +104,8 @@ export class ReplicationProtectionContainersImpl } private async *listByReplicationFabricsPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationProtectionContainersListByReplicationFabricsOptionalParams, settings?: PageSettings, @@ -111,8 +114,8 @@ export class ReplicationProtectionContainersImpl let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._listByReplicationFabrics( - resourceName, resourceGroupName, + resourceName, fabricName, options, ); @@ -123,8 +126,8 @@ export class ReplicationProtectionContainersImpl } while (continuationToken) { result = await this._listByReplicationFabricsNext( - resourceName, resourceGroupName, + resourceName, fabricName, continuationToken, options, @@ -137,14 +140,14 @@ export class ReplicationProtectionContainersImpl } private async *listByReplicationFabricsPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationProtectionContainersListByReplicationFabricsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByReplicationFabricsPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, options, )) { @@ -154,17 +157,17 @@ export class ReplicationProtectionContainersImpl /** * Lists the protection containers in a vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ public list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationProtectionContainersListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceName, resourceGroupName, options); + const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { next() { return iter.next(); @@ -177,8 +180,8 @@ export class ReplicationProtectionContainersImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, settings, ); @@ -187,15 +190,15 @@ export class ReplicationProtectionContainersImpl } private async *listPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationProtectionContainersListOptionalParams, settings?: PageSettings, ): AsyncIterableIterator { let result: ReplicationProtectionContainersListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceName, resourceGroupName, options); + result = await this._list(resourceGroupName, resourceName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -203,8 +206,8 @@ export class ReplicationProtectionContainersImpl } while (continuationToken) { result = await this._listNext( - resourceName, resourceGroupName, + resourceName, continuationToken, options, ); @@ -216,13 +219,13 @@ export class ReplicationProtectionContainersImpl } private async *listPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationProtectionContainersListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, )) { yield* page; @@ -231,44 +234,44 @@ export class ReplicationProtectionContainersImpl /** * Lists the protection containers in the specified fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param options The options parameters. */ private _listByReplicationFabrics( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationProtectionContainersListByReplicationFabricsOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, fabricName, options }, + { resourceGroupName, resourceName, fabricName, options }, listByReplicationFabricsOperationSpec, ); } /** * Gets the details of a protection container. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectionContainersGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, options, @@ -279,17 +282,17 @@ export class ReplicationProtectionContainersImpl /** * Operation to create a protection container. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param creationInput Creation input. * @param options The options parameters. */ async beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, creationInput: CreateProtectionContainerInput, @@ -341,8 +344,8 @@ export class ReplicationProtectionContainersImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, creationInput, @@ -363,25 +366,25 @@ export class ReplicationProtectionContainersImpl /** * Operation to create a protection container. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param creationInput Creation input. * @param options The options parameters. */ async beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, creationInput: CreateProtectionContainerInput, options?: ReplicationProtectionContainersCreateOptionalParams, ): Promise { const poller = await this.beginCreate( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, creationInput, @@ -392,17 +395,17 @@ export class ReplicationProtectionContainersImpl /** * The operation to a add a protectable item to a protection container(Add physical server). - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the protection container. * @param discoverProtectableItemRequest The request object to add a protectable item. * @param options The options parameters. */ async beginDiscoverProtectableItem( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, discoverProtectableItemRequest: DiscoverProtectableItemRequest, @@ -454,8 +457,8 @@ export class ReplicationProtectionContainersImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, discoverProtectableItemRequest, @@ -476,25 +479,25 @@ export class ReplicationProtectionContainersImpl /** * The operation to a add a protectable item to a protection container(Add physical server). - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the protection container. * @param discoverProtectableItemRequest The request object to add a protectable item. * @param options The options parameters. */ async beginDiscoverProtectableItemAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, discoverProtectableItemRequest: DiscoverProtectableItemRequest, options?: ReplicationProtectionContainersDiscoverProtectableItemOptionalParams, ): Promise { const poller = await this.beginDiscoverProtectableItem( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, discoverProtectableItemRequest, @@ -505,16 +508,16 @@ export class ReplicationProtectionContainersImpl /** * Operation to remove a protection container. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param options The options parameters. */ async beginDelete( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectionContainersDeleteOptionalParams, @@ -560,8 +563,8 @@ export class ReplicationProtectionContainersImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, options, @@ -578,25 +581,139 @@ export class ReplicationProtectionContainersImpl /** * Operation to remove a protection container. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param options The options parameters. */ async beginDeleteAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectionContainersDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( + resourceGroupName, resourceName, + fabricName, + protectionContainerName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Operation to switch protection from one container to another. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param switchInput Switch protection input. + * @param options The options parameters. + */ + async beginSwitchClusterProtection( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + switchInput: SwitchClusterProtectionInput, + options?: ReplicationProtectionContainersSwitchClusterProtectionOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ReplicationProtectionContainersSwitchClusterProtectionResponse + > + > { + 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, + resourceName, + fabricName, + protectionContainerName, + switchInput, + options, + }, + spec: switchClusterProtectionOperationSpec, + }); + const poller = await createHttpPoller< + ReplicationProtectionContainersSwitchClusterProtectionResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Operation to switch protection from one container to another. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param switchInput Switch protection input. + * @param options The options parameters. + */ + async beginSwitchClusterProtectionAndWait( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + switchInput: SwitchClusterProtectionInput, + options?: ReplicationProtectionContainersSwitchClusterProtectionOptionalParams, + ): Promise { + const poller = await this.beginSwitchClusterProtection( resourceGroupName, + resourceName, fabricName, protectionContainerName, + switchInput, options, ); return poller.pollUntilDone(); @@ -604,17 +721,17 @@ export class ReplicationProtectionContainersImpl /** * Operation to switch protection from one container to another or one replication provider to another. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param switchInput Switch protection input. * @param options The options parameters. */ async beginSwitchProtection( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, switchInput: SwitchProtectionInput, @@ -666,8 +783,8 @@ export class ReplicationProtectionContainersImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, switchInput, @@ -688,25 +805,25 @@ export class ReplicationProtectionContainersImpl /** * Operation to switch protection from one container to another or one replication provider to another. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param switchInput Switch protection input. * @param options The options parameters. */ async beginSwitchProtectionAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, switchInput: SwitchProtectionInput, options?: ReplicationProtectionContainersSwitchProtectionOptionalParams, ): Promise { const poller = await this.beginSwitchProtection( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, switchInput, @@ -717,61 +834,61 @@ export class ReplicationProtectionContainersImpl /** * Lists the protection containers in a vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ private _list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationProtectionContainersListOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, options }, + { resourceGroupName, resourceName, options }, listOperationSpec, ); } /** * ListByReplicationFabricsNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param nextLink The nextLink from the previous successful call to the ListByReplicationFabrics * method. * @param options The options parameters. */ private _listByReplicationFabricsNext( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, nextLink: string, options?: ReplicationProtectionContainersListByReplicationFabricsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, fabricName, nextLink, options }, + { resourceGroupName, resourceName, fabricName, nextLink, options }, listByReplicationFabricsNextOperationSpec, ); } /** * ListNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( - resourceName: string, resourceGroupName: string, + resourceName: string, nextLink: string, options?: ReplicationProtectionContainersListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, nextLink, options }, + { resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec, ); } @@ -895,6 +1012,40 @@ const deleteOperationSpec: coreClient.OperationSpec = { ], serializer, }; +const switchClusterProtectionOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/switchClusterProtection", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ProtectionContainer, + }, + 201: { + bodyMapper: Mappers.ProtectionContainer, + }, + 202: { + bodyMapper: Mappers.ProtectionContainer, + }, + 204: { + bodyMapper: Mappers.ProtectionContainer, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.switchInput, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceName1, + Parameters.fabricName1, + Parameters.protectionContainerName1, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; const switchProtectionOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/switchprotection", httpMethod: "POST", @@ -912,7 +1063,7 @@ const switchProtectionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ProtectionContainer, }, }, - requestBody: Parameters.switchInput, + requestBody: Parameters.switchInput1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionIntents.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionIntents.ts index 40592a54ac55..8889db83b02a 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionIntents.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionIntents.ts @@ -43,17 +43,17 @@ export class ReplicationProtectionIntentsImpl /** * Gets the list of ASR replication protection intent objects in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ public list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationProtectionIntentsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceName, resourceGroupName, options); + const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { next() { return iter.next(); @@ -66,8 +66,8 @@ export class ReplicationProtectionIntentsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, settings, ); @@ -76,15 +76,15 @@ export class ReplicationProtectionIntentsImpl } private async *listPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationProtectionIntentsListOptionalParams, settings?: PageSettings, ): AsyncIterableIterator { let result: ReplicationProtectionIntentsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceName, resourceGroupName, options); + result = await this._list(resourceGroupName, resourceName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -92,8 +92,8 @@ export class ReplicationProtectionIntentsImpl } while (continuationToken) { result = await this._listNext( - resourceName, resourceGroupName, + resourceName, continuationToken, options, ); @@ -105,13 +105,13 @@ export class ReplicationProtectionIntentsImpl } private async *listPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationProtectionIntentsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, )) { yield* page; @@ -120,80 +120,80 @@ export class ReplicationProtectionIntentsImpl /** * Gets the list of ASR replication protection intent objects in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ private _list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationProtectionIntentsListOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, options }, + { resourceGroupName, resourceName, options }, listOperationSpec, ); } /** * Gets the details of an ASR replication protection intent. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param intentObjectName Replication protection intent name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, intentObjectName: string, options?: ReplicationProtectionIntentsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, intentObjectName, options }, + { resourceGroupName, resourceName, intentObjectName, options }, getOperationSpec, ); } /** * The operation to create an ASR replication protection intent item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param intentObjectName A name for the replication protection item. * @param input Create Protection Intent Input. * @param options The options parameters. */ create( - resourceName: string, resourceGroupName: string, + resourceName: string, intentObjectName: string, input: CreateProtectionIntentInput, options?: ReplicationProtectionIntentsCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, intentObjectName, input, options }, + { resourceGroupName, resourceName, intentObjectName, input, options }, createOperationSpec, ); } /** * ListNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( - resourceName: string, resourceGroupName: string, + resourceName: string, nextLink: string, options?: ReplicationProtectionIntentsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, nextLink, options }, + { resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec, ); } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationRecoveryPlans.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationRecoveryPlans.ts index 509c8189c512..d937ec1e1807 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationRecoveryPlans.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationRecoveryPlans.ts @@ -69,17 +69,17 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { /** * Lists the recovery plans in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ public list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationRecoveryPlansListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceName, resourceGroupName, options); + const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { next() { return iter.next(); @@ -92,8 +92,8 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, settings, ); @@ -102,15 +102,15 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { } private async *listPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationRecoveryPlansListOptionalParams, settings?: PageSettings, ): AsyncIterableIterator { let result: ReplicationRecoveryPlansListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceName, resourceGroupName, options); + result = await this._list(resourceGroupName, resourceName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -118,8 +118,8 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { } while (continuationToken) { result = await this._listNext( - resourceName, resourceGroupName, + resourceName, continuationToken, options, ); @@ -131,13 +131,13 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { } private async *listPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationRecoveryPlansListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, )) { yield* page; @@ -146,54 +146,54 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { /** * Lists the recovery plans in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ private _list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationRecoveryPlansListOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, options }, + { resourceGroupName, resourceName, options }, listOperationSpec, ); } /** * Gets the details of the recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Name of the recovery plan. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansGetOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, recoveryPlanName, options }, + { resourceGroupName, resourceName, recoveryPlanName, options }, getOperationSpec, ); } /** * The operation to create a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery Plan creation input. * @param options The options parameters. */ async beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: CreateRecoveryPlanInput, options?: ReplicationRecoveryPlansCreateOptionalParams, @@ -244,8 +244,8 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, recoveryPlanName, input, options, @@ -265,23 +265,23 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { /** * The operation to create a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery Plan creation input. * @param options The options parameters. */ async beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: CreateRecoveryPlanInput, options?: ReplicationRecoveryPlansCreateOptionalParams, ): Promise { const poller = await this.beginCreate( - resourceName, resourceGroupName, + resourceName, recoveryPlanName, input, options, @@ -291,15 +291,15 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { /** * Delete a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param options The options parameters. */ async beginDelete( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansDeleteOptionalParams, ): Promise, void>> { @@ -343,7 +343,7 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { const lro = createLroSpec({ sendOperationFn, - args: { resourceName, resourceGroupName, recoveryPlanName, options }, + args: { resourceGroupName, resourceName, recoveryPlanName, options }, spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { @@ -356,21 +356,21 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { /** * Delete a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param options The options parameters. */ async beginDeleteAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( - resourceName, resourceGroupName, + resourceName, recoveryPlanName, options, ); @@ -379,16 +379,16 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { /** * The operation to update a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Update recovery plan input. * @param options The options parameters. */ async beginUpdate( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: UpdateRecoveryPlanInput, options?: ReplicationRecoveryPlansUpdateOptionalParams, @@ -439,8 +439,8 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, recoveryPlanName, input, options, @@ -460,23 +460,23 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { /** * The operation to update a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Update recovery plan input. * @param options The options parameters. */ async beginUpdateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: UpdateRecoveryPlanInput, options?: ReplicationRecoveryPlansUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( - resourceName, resourceGroupName, + resourceName, recoveryPlanName, input, options, @@ -486,15 +486,15 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { /** * The operation to cancel the failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param options The options parameters. */ async beginFailoverCancel( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansFailoverCancelOptionalParams, ): Promise< @@ -543,7 +543,7 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { const lro = createLroSpec({ sendOperationFn, - args: { resourceName, resourceGroupName, recoveryPlanName, options }, + args: { resourceGroupName, resourceName, recoveryPlanName, options }, spec: failoverCancelOperationSpec, }); const poller = await createHttpPoller< @@ -559,21 +559,21 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { /** * The operation to cancel the failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param options The options parameters. */ async beginFailoverCancelAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansFailoverCancelOptionalParams, ): Promise { const poller = await this.beginFailoverCancel( - resourceName, resourceGroupName, + resourceName, recoveryPlanName, options, ); @@ -582,15 +582,15 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { /** * The operation to commit the failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param options The options parameters. */ async beginFailoverCommit( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansFailoverCommitOptionalParams, ): Promise< @@ -639,7 +639,7 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { const lro = createLroSpec({ sendOperationFn, - args: { resourceName, resourceGroupName, recoveryPlanName, options }, + args: { resourceGroupName, resourceName, recoveryPlanName, options }, spec: failoverCommitOperationSpec, }); const poller = await createHttpPoller< @@ -655,21 +655,21 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { /** * The operation to commit the failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param options The options parameters. */ async beginFailoverCommitAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansFailoverCommitOptionalParams, ): Promise { const poller = await this.beginFailoverCommit( - resourceName, resourceGroupName, + resourceName, recoveryPlanName, options, ); @@ -678,16 +678,16 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { /** * The operation to start the planned failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Failover input. * @param options The options parameters. */ async beginPlannedFailover( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: RecoveryPlanPlannedFailoverInput, options?: ReplicationRecoveryPlansPlannedFailoverOptionalParams, @@ -738,8 +738,8 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, recoveryPlanName, input, options, @@ -759,23 +759,23 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { /** * The operation to start the planned failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Failover input. * @param options The options parameters. */ async beginPlannedFailoverAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: RecoveryPlanPlannedFailoverInput, options?: ReplicationRecoveryPlansPlannedFailoverOptionalParams, ): Promise { const poller = await this.beginPlannedFailover( - resourceName, resourceGroupName, + resourceName, recoveryPlanName, input, options, @@ -784,16 +784,17 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { } /** - * The operation to reprotect(reverse replicate) a recovery plan. - * @param resourceName The name of the recovery services vault. + * The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios + * and no longer works. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param options The options parameters. */ async beginReprotect( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansReprotectOptionalParams, ): Promise< @@ -842,7 +843,7 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { const lro = createLroSpec({ sendOperationFn, - args: { resourceName, resourceGroupName, recoveryPlanName, options }, + args: { resourceGroupName, resourceName, recoveryPlanName, options }, spec: reprotectOperationSpec, }); const poller = await createHttpPoller< @@ -857,22 +858,23 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { } /** - * The operation to reprotect(reverse replicate) a recovery plan. - * @param resourceName The name of the recovery services vault. + * The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios + * and no longer works. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param options The options parameters. */ async beginReprotectAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansReprotectOptionalParams, ): Promise { const poller = await this.beginReprotect( - resourceName, resourceGroupName, + resourceName, recoveryPlanName, options, ); @@ -881,16 +883,16 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { /** * The operation to start the test failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover input. * @param options The options parameters. */ async beginTestFailover( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: RecoveryPlanTestFailoverInput, options?: ReplicationRecoveryPlansTestFailoverOptionalParams, @@ -941,8 +943,8 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, recoveryPlanName, input, options, @@ -962,23 +964,23 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { /** * The operation to start the test failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover input. * @param options The options parameters. */ async beginTestFailoverAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: RecoveryPlanTestFailoverInput, options?: ReplicationRecoveryPlansTestFailoverOptionalParams, ): Promise { const poller = await this.beginTestFailover( - resourceName, resourceGroupName, + resourceName, recoveryPlanName, input, options, @@ -988,16 +990,16 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { /** * The operation to cleanup test failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover cleanup input. * @param options The options parameters. */ async beginTestFailoverCleanup( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: RecoveryPlanTestFailoverCleanupInput, options?: ReplicationRecoveryPlansTestFailoverCleanupOptionalParams, @@ -1048,8 +1050,8 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, recoveryPlanName, input, options, @@ -1069,23 +1071,23 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { /** * The operation to cleanup test failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover cleanup input. * @param options The options parameters. */ async beginTestFailoverCleanupAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: RecoveryPlanTestFailoverCleanupInput, options?: ReplicationRecoveryPlansTestFailoverCleanupOptionalParams, ): Promise { const poller = await this.beginTestFailoverCleanup( - resourceName, resourceGroupName, + resourceName, recoveryPlanName, input, options, @@ -1095,16 +1097,16 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { /** * The operation to start the unplanned failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan unplanned failover input. * @param options The options parameters. */ async beginUnplannedFailover( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: RecoveryPlanUnplannedFailoverInput, options?: ReplicationRecoveryPlansUnplannedFailoverOptionalParams, @@ -1155,8 +1157,8 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, recoveryPlanName, input, options, @@ -1176,23 +1178,23 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { /** * The operation to start the unplanned failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan unplanned failover input. * @param options The options parameters. */ async beginUnplannedFailoverAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: RecoveryPlanUnplannedFailoverInput, options?: ReplicationRecoveryPlansUnplannedFailoverOptionalParams, ): Promise { const poller = await this.beginUnplannedFailover( - resourceName, resourceGroupName, + resourceName, recoveryPlanName, input, options, @@ -1202,20 +1204,20 @@ export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans { /** * ListNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( - resourceName: string, resourceGroupName: string, + resourceName: string, nextLink: string, options?: ReplicationRecoveryPlansListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, nextLink, options }, + { resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec, ); } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationRecoveryServicesProviders.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationRecoveryServicesProviders.ts index f16ff8670b5b..0cabb1d88405 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationRecoveryServicesProviders.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationRecoveryServicesProviders.ts @@ -57,21 +57,21 @@ export class ReplicationRecoveryServicesProvidersImpl /** * Lists the registered recovery services providers for the specified fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param options The options parameters. */ public listByReplicationFabrics( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationRecoveryServicesProvidersListByReplicationFabricsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByReplicationFabricsPagingAll( - resourceName, resourceGroupName, + resourceName, fabricName, options, ); @@ -87,8 +87,8 @@ export class ReplicationRecoveryServicesProvidersImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listByReplicationFabricsPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, options, settings, @@ -98,8 +98,8 @@ export class ReplicationRecoveryServicesProvidersImpl } private async *listByReplicationFabricsPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationRecoveryServicesProvidersListByReplicationFabricsOptionalParams, settings?: PageSettings, @@ -108,8 +108,8 @@ export class ReplicationRecoveryServicesProvidersImpl let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._listByReplicationFabrics( - resourceName, resourceGroupName, + resourceName, fabricName, options, ); @@ -120,8 +120,8 @@ export class ReplicationRecoveryServicesProvidersImpl } while (continuationToken) { result = await this._listByReplicationFabricsNext( - resourceName, resourceGroupName, + resourceName, fabricName, continuationToken, options, @@ -134,14 +134,14 @@ export class ReplicationRecoveryServicesProvidersImpl } private async *listByReplicationFabricsPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationRecoveryServicesProvidersListByReplicationFabricsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByReplicationFabricsPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, options, )) { @@ -151,17 +151,17 @@ export class ReplicationRecoveryServicesProvidersImpl /** * Lists the registered recovery services providers in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ public list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationRecoveryServicesProvidersListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceName, resourceGroupName, options); + const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { next() { return iter.next(); @@ -174,8 +174,8 @@ export class ReplicationRecoveryServicesProvidersImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, settings, ); @@ -184,15 +184,15 @@ export class ReplicationRecoveryServicesProvidersImpl } private async *listPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationRecoveryServicesProvidersListOptionalParams, settings?: PageSettings, ): AsyncIterableIterator { let result: ReplicationRecoveryServicesProvidersListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceName, resourceGroupName, options); + result = await this._list(resourceGroupName, resourceName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -200,8 +200,8 @@ export class ReplicationRecoveryServicesProvidersImpl } while (continuationToken) { result = await this._listNext( - resourceName, resourceGroupName, + resourceName, continuationToken, options, ); @@ -213,13 +213,13 @@ export class ReplicationRecoveryServicesProvidersImpl } private async *listPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationRecoveryServicesProvidersListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, )) { yield* page; @@ -228,59 +228,59 @@ export class ReplicationRecoveryServicesProvidersImpl /** * Lists the registered recovery services providers for the specified fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param options The options parameters. */ private _listByReplicationFabrics( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationRecoveryServicesProvidersListByReplicationFabricsOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, fabricName, options }, + { resourceGroupName, resourceName, fabricName, options }, listByReplicationFabricsOperationSpec, ); } /** * Gets the details of registered recovery services provider. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersGetOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, fabricName, providerName, options }, + { resourceGroupName, resourceName, fabricName, providerName, options }, getOperationSpec, ); } /** * The operation to add a recovery services provider. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param addProviderInput Add provider input. * @param options The options parameters. */ async beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, providerName: string, addProviderInput: AddRecoveryServicesProviderInput, @@ -332,8 +332,8 @@ export class ReplicationRecoveryServicesProvidersImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, providerName, addProviderInput, @@ -354,25 +354,25 @@ export class ReplicationRecoveryServicesProvidersImpl /** * The operation to add a recovery services provider. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param addProviderInput Add provider input. * @param options The options parameters. */ async beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, providerName: string, addProviderInput: AddRecoveryServicesProviderInput, options?: ReplicationRecoveryServicesProvidersCreateOptionalParams, ): Promise { const poller = await this.beginCreate( - resourceName, resourceGroupName, + resourceName, fabricName, providerName, addProviderInput, @@ -383,16 +383,16 @@ export class ReplicationRecoveryServicesProvidersImpl /** * The operation to purge(force delete) a recovery services provider from the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param options The options parameters. */ async beginPurge( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersPurgeOptionalParams, @@ -438,8 +438,8 @@ export class ReplicationRecoveryServicesProvidersImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, providerName, options, @@ -456,23 +456,23 @@ export class ReplicationRecoveryServicesProvidersImpl /** * The operation to purge(force delete) a recovery services provider from the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param options The options parameters. */ async beginPurgeAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersPurgeOptionalParams, ): Promise { const poller = await this.beginPurge( - resourceName, resourceGroupName, + resourceName, fabricName, providerName, options, @@ -482,16 +482,16 @@ export class ReplicationRecoveryServicesProvidersImpl /** * The operation to refresh the information from the recovery services provider. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param options The options parameters. */ async beginRefreshProvider( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersRefreshProviderOptionalParams, @@ -542,8 +542,8 @@ export class ReplicationRecoveryServicesProvidersImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, providerName, options, @@ -563,23 +563,23 @@ export class ReplicationRecoveryServicesProvidersImpl /** * The operation to refresh the information from the recovery services provider. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param options The options parameters. */ async beginRefreshProviderAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersRefreshProviderOptionalParams, ): Promise { const poller = await this.beginRefreshProvider( - resourceName, resourceGroupName, + resourceName, fabricName, providerName, options, @@ -589,16 +589,16 @@ export class ReplicationRecoveryServicesProvidersImpl /** * The operation to removes/delete(unregister) a recovery services provider from the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param options The options parameters. */ async beginDelete( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersDeleteOptionalParams, @@ -644,8 +644,8 @@ export class ReplicationRecoveryServicesProvidersImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, providerName, options, @@ -662,23 +662,23 @@ export class ReplicationRecoveryServicesProvidersImpl /** * The operation to removes/delete(unregister) a recovery services provider from the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param options The options parameters. */ async beginDeleteAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( - resourceName, resourceGroupName, + resourceName, fabricName, providerName, options, @@ -688,61 +688,61 @@ export class ReplicationRecoveryServicesProvidersImpl /** * Lists the registered recovery services providers in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ private _list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationRecoveryServicesProvidersListOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, options }, + { resourceGroupName, resourceName, options }, listOperationSpec, ); } /** * ListByReplicationFabricsNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param nextLink The nextLink from the previous successful call to the ListByReplicationFabrics * method. * @param options The options parameters. */ private _listByReplicationFabricsNext( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, nextLink: string, options?: ReplicationRecoveryServicesProvidersListByReplicationFabricsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, fabricName, nextLink, options }, + { resourceGroupName, resourceName, fabricName, nextLink, options }, listByReplicationFabricsNextOperationSpec, ); } /** * ListNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( - resourceName: string, resourceGroupName: string, + resourceName: string, nextLink: string, options?: ReplicationRecoveryServicesProvidersListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, nextLink, options }, + { resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec, ); } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationStorageClassificationMappings.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationStorageClassificationMappings.ts index 04fa4acaa3c5..f7631d556b4d 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationStorageClassificationMappings.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationStorageClassificationMappings.ts @@ -54,23 +54,23 @@ export class ReplicationStorageClassificationMappingsImpl /** * Lists the storage classification mappings for the fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param options The options parameters. */ public listByReplicationStorageClassifications( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, storageClassificationName: string, options?: ReplicationStorageClassificationMappingsListByReplicationStorageClassificationsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByReplicationStorageClassificationsPagingAll( - resourceName, resourceGroupName, + resourceName, fabricName, storageClassificationName, options, @@ -87,8 +87,8 @@ export class ReplicationStorageClassificationMappingsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listByReplicationStorageClassificationsPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, storageClassificationName, options, @@ -99,8 +99,8 @@ export class ReplicationStorageClassificationMappingsImpl } private async *listByReplicationStorageClassificationsPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, storageClassificationName: string, options?: ReplicationStorageClassificationMappingsListByReplicationStorageClassificationsOptionalParams, @@ -110,8 +110,8 @@ export class ReplicationStorageClassificationMappingsImpl let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._listByReplicationStorageClassifications( - resourceName, resourceGroupName, + resourceName, fabricName, storageClassificationName, options, @@ -123,8 +123,8 @@ export class ReplicationStorageClassificationMappingsImpl } while (continuationToken) { result = await this._listByReplicationStorageClassificationsNext( - resourceName, resourceGroupName, + resourceName, fabricName, storageClassificationName, continuationToken, @@ -138,15 +138,15 @@ export class ReplicationStorageClassificationMappingsImpl } private async *listByReplicationStorageClassificationsPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, storageClassificationName: string, options?: ReplicationStorageClassificationMappingsListByReplicationStorageClassificationsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByReplicationStorageClassificationsPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, storageClassificationName, options, @@ -157,17 +157,17 @@ export class ReplicationStorageClassificationMappingsImpl /** * Lists the storage classification mappings in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ public list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationStorageClassificationMappingsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceName, resourceGroupName, options); + const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { next() { return iter.next(); @@ -180,8 +180,8 @@ export class ReplicationStorageClassificationMappingsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, settings, ); @@ -190,15 +190,15 @@ export class ReplicationStorageClassificationMappingsImpl } private async *listPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationStorageClassificationMappingsListOptionalParams, settings?: PageSettings, ): AsyncIterableIterator { let result: ReplicationStorageClassificationMappingsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceName, resourceGroupName, options); + result = await this._list(resourceGroupName, resourceName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -206,8 +206,8 @@ export class ReplicationStorageClassificationMappingsImpl } while (continuationToken) { result = await this._listNext( - resourceName, resourceGroupName, + resourceName, continuationToken, options, ); @@ -219,13 +219,13 @@ export class ReplicationStorageClassificationMappingsImpl } private async *listPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationStorageClassificationMappingsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, )) { yield* page; @@ -234,24 +234,24 @@ export class ReplicationStorageClassificationMappingsImpl /** * Lists the storage classification mappings for the fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param options The options parameters. */ private _listByReplicationStorageClassifications( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, storageClassificationName: string, options?: ReplicationStorageClassificationMappingsListByReplicationStorageClassificationsOptionalParams, ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, storageClassificationName, options, @@ -262,17 +262,17 @@ export class ReplicationStorageClassificationMappingsImpl /** * Gets the details of the specified storage classification mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, storageClassificationName: string, storageClassificationMappingName: string, @@ -280,8 +280,8 @@ export class ReplicationStorageClassificationMappingsImpl ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, storageClassificationName, storageClassificationMappingName, @@ -293,9 +293,9 @@ export class ReplicationStorageClassificationMappingsImpl /** * The operation to create a storage classification mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -303,8 +303,8 @@ export class ReplicationStorageClassificationMappingsImpl * @param options The options parameters. */ async beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, storageClassificationName: string, storageClassificationMappingName: string, @@ -357,8 +357,8 @@ export class ReplicationStorageClassificationMappingsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, storageClassificationName, storageClassificationMappingName, @@ -380,9 +380,9 @@ export class ReplicationStorageClassificationMappingsImpl /** * The operation to create a storage classification mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -390,8 +390,8 @@ export class ReplicationStorageClassificationMappingsImpl * @param options The options parameters. */ async beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, storageClassificationName: string, storageClassificationMappingName: string, @@ -399,8 +399,8 @@ export class ReplicationStorageClassificationMappingsImpl options?: ReplicationStorageClassificationMappingsCreateOptionalParams, ): Promise { const poller = await this.beginCreate( - resourceName, resourceGroupName, + resourceName, fabricName, storageClassificationName, storageClassificationMappingName, @@ -412,17 +412,17 @@ export class ReplicationStorageClassificationMappingsImpl /** * The operation to delete a storage classification mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. * @param options The options parameters. */ async beginDelete( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, storageClassificationName: string, storageClassificationMappingName: string, @@ -469,8 +469,8 @@ export class ReplicationStorageClassificationMappingsImpl const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, storageClassificationName, storageClassificationMappingName, @@ -488,25 +488,25 @@ export class ReplicationStorageClassificationMappingsImpl /** * The operation to delete a storage classification mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. * @param options The options parameters. */ async beginDeleteAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, storageClassificationName: string, storageClassificationMappingName: string, options?: ReplicationStorageClassificationMappingsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( - resourceName, resourceGroupName, + resourceName, fabricName, storageClassificationName, storageClassificationMappingName, @@ -517,27 +517,27 @@ export class ReplicationStorageClassificationMappingsImpl /** * Lists the storage classification mappings in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ private _list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationStorageClassificationMappingsListOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, options }, + { resourceGroupName, resourceName, options }, listOperationSpec, ); } /** * ListByReplicationStorageClassificationsNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param nextLink The nextLink from the previous successful call to the @@ -545,8 +545,8 @@ export class ReplicationStorageClassificationMappingsImpl * @param options The options parameters. */ private _listByReplicationStorageClassificationsNext( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, storageClassificationName: string, nextLink: string, @@ -554,8 +554,8 @@ export class ReplicationStorageClassificationMappingsImpl ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, storageClassificationName, nextLink, @@ -567,20 +567,20 @@ export class ReplicationStorageClassificationMappingsImpl /** * ListNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( - resourceName: string, resourceGroupName: string, + resourceName: string, nextLink: string, options?: ReplicationStorageClassificationMappingsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, nextLink, options }, + { resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec, ); } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationStorageClassifications.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationStorageClassifications.ts index 3c2aae32e1e1..e9da2926462a 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationStorageClassifications.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationStorageClassifications.ts @@ -44,21 +44,21 @@ export class ReplicationStorageClassificationsImpl /** * Lists the storage classifications available in the specified fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Site name of interest. * @param options The options parameters. */ public listByReplicationFabrics( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationStorageClassificationsListByReplicationFabricsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByReplicationFabricsPagingAll( - resourceName, resourceGroupName, + resourceName, fabricName, options, ); @@ -74,8 +74,8 @@ export class ReplicationStorageClassificationsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listByReplicationFabricsPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, options, settings, @@ -85,8 +85,8 @@ export class ReplicationStorageClassificationsImpl } private async *listByReplicationFabricsPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationStorageClassificationsListByReplicationFabricsOptionalParams, settings?: PageSettings, @@ -95,8 +95,8 @@ export class ReplicationStorageClassificationsImpl let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._listByReplicationFabrics( - resourceName, resourceGroupName, + resourceName, fabricName, options, ); @@ -107,8 +107,8 @@ export class ReplicationStorageClassificationsImpl } while (continuationToken) { result = await this._listByReplicationFabricsNext( - resourceName, resourceGroupName, + resourceName, fabricName, continuationToken, options, @@ -121,14 +121,14 @@ export class ReplicationStorageClassificationsImpl } private async *listByReplicationFabricsPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationStorageClassificationsListByReplicationFabricsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByReplicationFabricsPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, options, )) { @@ -138,17 +138,17 @@ export class ReplicationStorageClassificationsImpl /** * Lists the storage classifications in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ public list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationStorageClassificationsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceName, resourceGroupName, options); + const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { next() { return iter.next(); @@ -161,8 +161,8 @@ export class ReplicationStorageClassificationsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, settings, ); @@ -171,15 +171,15 @@ export class ReplicationStorageClassificationsImpl } private async *listPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationStorageClassificationsListOptionalParams, settings?: PageSettings, ): AsyncIterableIterator { let result: ReplicationStorageClassificationsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceName, resourceGroupName, options); + result = await this._list(resourceGroupName, resourceName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -187,8 +187,8 @@ export class ReplicationStorageClassificationsImpl } while (continuationToken) { result = await this._listNext( - resourceName, resourceGroupName, + resourceName, continuationToken, options, ); @@ -200,13 +200,13 @@ export class ReplicationStorageClassificationsImpl } private async *listPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationStorageClassificationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, )) { yield* page; @@ -215,44 +215,44 @@ export class ReplicationStorageClassificationsImpl /** * Lists the storage classifications available in the specified fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Site name of interest. * @param options The options parameters. */ private _listByReplicationFabrics( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationStorageClassificationsListByReplicationFabricsOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, fabricName, options }, + { resourceGroupName, resourceName, fabricName, options }, listByReplicationFabricsOperationSpec, ); } /** * Gets the details of the specified storage classification. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, storageClassificationName: string, options?: ReplicationStorageClassificationsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, storageClassificationName, options, @@ -263,61 +263,61 @@ export class ReplicationStorageClassificationsImpl /** * Lists the storage classifications in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ private _list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationStorageClassificationsListOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, options }, + { resourceGroupName, resourceName, options }, listOperationSpec, ); } /** * ListByReplicationFabricsNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Site name of interest. * @param nextLink The nextLink from the previous successful call to the ListByReplicationFabrics * method. * @param options The options parameters. */ private _listByReplicationFabricsNext( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, nextLink: string, options?: ReplicationStorageClassificationsListByReplicationFabricsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, fabricName, nextLink, options }, + { resourceGroupName, resourceName, fabricName, nextLink, options }, listByReplicationFabricsNextOperationSpec, ); } /** * ListNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( - resourceName: string, resourceGroupName: string, + resourceName: string, nextLink: string, options?: ReplicationStorageClassificationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, nextLink, options }, + { resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec, ); } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationVaultHealth.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationVaultHealth.ts index 5e46cfe38271..98eaa1845cfb 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationVaultHealth.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationVaultHealth.ts @@ -38,32 +38,32 @@ export class ReplicationVaultHealthImpl implements ReplicationVaultHealth { /** * Gets the health details of the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationVaultHealthGetOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, options }, + { resourceGroupName, resourceName, options }, getOperationSpec, ); } /** * Refreshes health summary of the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ async beginRefresh( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationVaultHealthRefreshOptionalParams, ): Promise< SimplePollerLike< @@ -111,7 +111,7 @@ export class ReplicationVaultHealthImpl implements ReplicationVaultHealth { const lro = createLroSpec({ sendOperationFn, - args: { resourceName, resourceGroupName, options }, + args: { resourceGroupName, resourceName, options }, spec: refreshOperationSpec, }); const poller = await createHttpPoller< @@ -127,19 +127,19 @@ export class ReplicationVaultHealthImpl implements ReplicationVaultHealth { /** * Refreshes health summary of the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ async beginRefreshAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationVaultHealthRefreshOptionalParams, ): Promise { const poller = await this.beginRefresh( - resourceName, resourceGroupName, + resourceName, options, ); return poller.pollUntilDone(); diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationVaultSetting.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationVaultSetting.ts index fb53bf3ad77d..ba5e3eb0f3e4 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationVaultSetting.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationVaultSetting.ts @@ -47,17 +47,17 @@ export class ReplicationVaultSettingImpl implements ReplicationVaultSetting { /** * Gets the list of vault setting. This includes the Migration Hub connection settings. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ public list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationVaultSettingListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceName, resourceGroupName, options); + const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { next() { return iter.next(); @@ -70,8 +70,8 @@ export class ReplicationVaultSettingImpl implements ReplicationVaultSetting { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, settings, ); @@ -80,15 +80,15 @@ export class ReplicationVaultSettingImpl implements ReplicationVaultSetting { } private async *listPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationVaultSettingListOptionalParams, settings?: PageSettings, ): AsyncIterableIterator { let result: ReplicationVaultSettingListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceName, resourceGroupName, options); + result = await this._list(resourceGroupName, resourceName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -96,8 +96,8 @@ export class ReplicationVaultSettingImpl implements ReplicationVaultSetting { } while (continuationToken) { result = await this._listNext( - resourceName, resourceGroupName, + resourceName, continuationToken, options, ); @@ -109,13 +109,13 @@ export class ReplicationVaultSettingImpl implements ReplicationVaultSetting { } private async *listPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationVaultSettingListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, )) { yield* page; @@ -124,54 +124,54 @@ export class ReplicationVaultSettingImpl implements ReplicationVaultSetting { /** * Gets the list of vault setting. This includes the Migration Hub connection settings. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ private _list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationVaultSettingListOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, options }, + { resourceGroupName, resourceName, options }, listOperationSpec, ); } /** * Gets the vault setting. This includes the Migration Hub connection settings. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, vaultSettingName: string, options?: ReplicationVaultSettingGetOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, vaultSettingName, options }, + { resourceGroupName, resourceName, vaultSettingName, options }, getOperationSpec, ); } /** * The operation to configure vault setting. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param input Vault setting creation input. * @param options The options parameters. */ async beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, vaultSettingName: string, input: VaultSettingCreationInput, options?: ReplicationVaultSettingCreateOptionalParams, @@ -222,8 +222,8 @@ export class ReplicationVaultSettingImpl implements ReplicationVaultSetting { const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, vaultSettingName, input, options, @@ -243,23 +243,23 @@ export class ReplicationVaultSettingImpl implements ReplicationVaultSetting { /** * The operation to configure vault setting. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param input Vault setting creation input. * @param options The options parameters. */ async beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, vaultSettingName: string, input: VaultSettingCreationInput, options?: ReplicationVaultSettingCreateOptionalParams, ): Promise { const poller = await this.beginCreate( - resourceName, resourceGroupName, + resourceName, vaultSettingName, input, options, @@ -269,20 +269,20 @@ export class ReplicationVaultSettingImpl implements ReplicationVaultSetting { /** * ListNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( - resourceName: string, resourceGroupName: string, + resourceName: string, nextLink: string, options?: ReplicationVaultSettingListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, nextLink, options }, + { resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec, ); } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationvCenters.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationvCenters.ts index c4b518fd5d8a..cc8cb69729ea 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationvCenters.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationvCenters.ts @@ -55,21 +55,21 @@ export class ReplicationvCentersImpl implements ReplicationvCenters { /** * Lists the vCenter servers registered in a fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param options The options parameters. */ public listByReplicationFabrics( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationvCentersListByReplicationFabricsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByReplicationFabricsPagingAll( - resourceName, resourceGroupName, + resourceName, fabricName, options, ); @@ -85,8 +85,8 @@ export class ReplicationvCentersImpl implements ReplicationvCenters { throw new Error("maxPageSize is not supported by this operation."); } return this.listByReplicationFabricsPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, options, settings, @@ -96,8 +96,8 @@ export class ReplicationvCentersImpl implements ReplicationvCenters { } private async *listByReplicationFabricsPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationvCentersListByReplicationFabricsOptionalParams, settings?: PageSettings, @@ -106,8 +106,8 @@ export class ReplicationvCentersImpl implements ReplicationvCenters { let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._listByReplicationFabrics( - resourceName, resourceGroupName, + resourceName, fabricName, options, ); @@ -118,8 +118,8 @@ export class ReplicationvCentersImpl implements ReplicationvCenters { } while (continuationToken) { result = await this._listByReplicationFabricsNext( - resourceName, resourceGroupName, + resourceName, fabricName, continuationToken, options, @@ -132,14 +132,14 @@ export class ReplicationvCentersImpl implements ReplicationvCenters { } private async *listByReplicationFabricsPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationvCentersListByReplicationFabricsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByReplicationFabricsPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, options, )) { @@ -149,17 +149,17 @@ export class ReplicationvCentersImpl implements ReplicationvCenters { /** * Lists the vCenter servers registered in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ public list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationvCentersListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceName, resourceGroupName, options); + const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { next() { return iter.next(); @@ -172,8 +172,8 @@ export class ReplicationvCentersImpl implements ReplicationvCenters { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, settings, ); @@ -182,15 +182,15 @@ export class ReplicationvCentersImpl implements ReplicationvCenters { } private async *listPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationvCentersListOptionalParams, settings?: PageSettings, ): AsyncIterableIterator { let result: ReplicationvCentersListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceName, resourceGroupName, options); + result = await this._list(resourceGroupName, resourceName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -198,8 +198,8 @@ export class ReplicationvCentersImpl implements ReplicationvCenters { } while (continuationToken) { result = await this._listNext( - resourceName, resourceGroupName, + resourceName, continuationToken, options, ); @@ -211,13 +211,13 @@ export class ReplicationvCentersImpl implements ReplicationvCenters { } private async *listPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationvCentersListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( - resourceName, resourceGroupName, + resourceName, options, )) { yield* page; @@ -226,59 +226,59 @@ export class ReplicationvCentersImpl implements ReplicationvCenters { /** * Lists the vCenter servers registered in a fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param options The options parameters. */ private _listByReplicationFabrics( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationvCentersListByReplicationFabricsOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, fabricName, options }, + { resourceGroupName, resourceName, fabricName, options }, listByReplicationFabricsOperationSpec, ); } /** * Gets the details of a registered vCenter server(Add vCenter server). - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, vcenterName: string, options?: ReplicationvCentersGetOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, fabricName, vcenterName, options }, + { resourceGroupName, resourceName, fabricName, vcenterName, options }, getOperationSpec, ); } /** * The operation to create a vCenter object.. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param addVCenterRequest The input to the add vCenter operation. * @param options The options parameters. */ async beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, vcenterName: string, addVCenterRequest: AddVCenterRequest, @@ -330,8 +330,8 @@ export class ReplicationvCentersImpl implements ReplicationvCenters { const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, vcenterName, addVCenterRequest, @@ -352,25 +352,25 @@ export class ReplicationvCentersImpl implements ReplicationvCenters { /** * The operation to create a vCenter object.. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param addVCenterRequest The input to the add vCenter operation. * @param options The options parameters. */ async beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, vcenterName: string, addVCenterRequest: AddVCenterRequest, options?: ReplicationvCentersCreateOptionalParams, ): Promise { const poller = await this.beginCreate( - resourceName, resourceGroupName, + resourceName, fabricName, vcenterName, addVCenterRequest, @@ -381,16 +381,16 @@ export class ReplicationvCentersImpl implements ReplicationvCenters { /** * The operation to remove(unregister) a registered vCenter server from the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param options The options parameters. */ async beginDelete( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, vcenterName: string, options?: ReplicationvCentersDeleteOptionalParams, @@ -436,8 +436,8 @@ export class ReplicationvCentersImpl implements ReplicationvCenters { const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, vcenterName, options, @@ -454,23 +454,23 @@ export class ReplicationvCentersImpl implements ReplicationvCenters { /** * The operation to remove(unregister) a registered vCenter server from the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param options The options parameters. */ async beginDeleteAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, vcenterName: string, options?: ReplicationvCentersDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( - resourceName, resourceGroupName, + resourceName, fabricName, vcenterName, options, @@ -480,17 +480,17 @@ export class ReplicationvCentersImpl implements ReplicationvCenters { /** * The operation to update a registered vCenter. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param updateVCenterRequest The input to the update vCenter operation. * @param options The options parameters. */ async beginUpdate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, vcenterName: string, updateVCenterRequest: UpdateVCenterRequest, @@ -542,8 +542,8 @@ export class ReplicationvCentersImpl implements ReplicationvCenters { const lro = createLroSpec({ sendOperationFn, args: { - resourceName, resourceGroupName, + resourceName, fabricName, vcenterName, updateVCenterRequest, @@ -564,25 +564,25 @@ export class ReplicationvCentersImpl implements ReplicationvCenters { /** * The operation to update a registered vCenter. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param updateVCenterRequest The input to the update vCenter operation. * @param options The options parameters. */ async beginUpdateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, vcenterName: string, updateVCenterRequest: UpdateVCenterRequest, options?: ReplicationvCentersUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( - resourceName, resourceGroupName, + resourceName, fabricName, vcenterName, updateVCenterRequest, @@ -593,61 +593,61 @@ export class ReplicationvCentersImpl implements ReplicationvCenters { /** * Lists the vCenter servers registered in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ private _list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationvCentersListOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, options }, + { resourceGroupName, resourceName, options }, listOperationSpec, ); } /** * ListByReplicationFabricsNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param nextLink The nextLink from the previous successful call to the ListByReplicationFabrics * method. * @param options The options parameters. */ private _listByReplicationFabricsNext( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, nextLink: string, options?: ReplicationvCentersListByReplicationFabricsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, fabricName, nextLink, options }, + { resourceGroupName, resourceName, fabricName, nextLink, options }, listByReplicationFabricsNextOperationSpec, ); } /** * ListNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( - resourceName: string, resourceGroupName: string, + resourceName: string, nextLink: string, options?: ReplicationvCentersListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, nextLink, options }, + { resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec, ); } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/supportedOperatingSystemsOperations.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/supportedOperatingSystemsOperations.ts index bae2d373ccf0..2611c8e27d88 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/supportedOperatingSystemsOperations.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/supportedOperatingSystemsOperations.ts @@ -32,18 +32,18 @@ export class SupportedOperatingSystemsOperationsImpl /** * Gets the data of supported operating systems by SRS. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: SupportedOperatingSystemsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceName, resourceGroupName, options }, + { resourceGroupName, resourceName, options }, getOperationSpec, ); } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/targetComputeSizes.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/targetComputeSizes.ts index 31adf372a4f9..440fef1c4519 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/targetComputeSizes.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/targetComputeSizes.ts @@ -36,25 +36,25 @@ export class TargetComputeSizesImpl implements TargetComputeSizes { /** * Lists the available target compute sizes for a replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName protection container name. * @param replicatedProtectedItemName Replication protected item name. * @param options The options parameters. */ public listByReplicationProtectedItems( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: TargetComputeSizesListByReplicationProtectedItemsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByReplicationProtectedItemsPagingAll( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -72,8 +72,8 @@ export class TargetComputeSizesImpl implements TargetComputeSizes { throw new Error("maxPageSize is not supported by this operation."); } return this.listByReplicationProtectedItemsPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -85,8 +85,8 @@ export class TargetComputeSizesImpl implements TargetComputeSizes { } private async *listByReplicationProtectedItemsPagingPage( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -97,8 +97,8 @@ export class TargetComputeSizesImpl implements TargetComputeSizes { let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._listByReplicationProtectedItems( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -111,8 +111,8 @@ export class TargetComputeSizesImpl implements TargetComputeSizes { } while (continuationToken) { result = await this._listByReplicationProtectedItemsNext( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -127,16 +127,16 @@ export class TargetComputeSizesImpl implements TargetComputeSizes { } private async *listByReplicationProtectedItemsPagingAll( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: TargetComputeSizesListByReplicationProtectedItemsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByReplicationProtectedItemsPagingPage( - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -148,17 +148,17 @@ export class TargetComputeSizesImpl implements TargetComputeSizes { /** * Lists the available target compute sizes for a replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName protection container name. * @param replicatedProtectedItemName Replication protected item name. * @param options The options parameters. */ private _listByReplicationProtectedItems( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -166,8 +166,8 @@ export class TargetComputeSizesImpl implements TargetComputeSizes { ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, @@ -179,9 +179,9 @@ export class TargetComputeSizesImpl implements TargetComputeSizes { /** * ListByReplicationProtectedItemsNext - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -190,8 +190,8 @@ export class TargetComputeSizesImpl implements TargetComputeSizes { * @param options The options parameters. */ private _listByReplicationProtectedItemsNext( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -200,8 +200,8 @@ export class TargetComputeSizesImpl implements TargetComputeSizes { ): Promise { return this.client.sendOperationRequest( { - resourceName, resourceGroupName, + resourceName, fabricName, protectionContainerName, replicatedProtectedItemName, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/clusterRecoveryPointOperations.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/clusterRecoveryPointOperations.ts new file mode 100644 index 000000000000..ec8113c640ef --- /dev/null +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/clusterRecoveryPointOperations.ts @@ -0,0 +1,36 @@ +/* + * 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 { + ClusterRecoveryPointGetOptionalParams, + ClusterRecoveryPointGetResponse, +} from "../models/index.js"; + +/** Interface representing a ClusterRecoveryPointOperations. */ +export interface ClusterRecoveryPointOperations { + /** + * Get the details of specified recovery point. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param recoveryPointName The recovery point name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + recoveryPointName: string, + options?: ClusterRecoveryPointGetOptionalParams, + ): Promise; +} diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/clusterRecoveryPoints.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/clusterRecoveryPoints.ts new file mode 100644 index 000000000000..d2c3e47b6880 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/clusterRecoveryPoints.ts @@ -0,0 +1,36 @@ +/* + * 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 { + ClusterRecoveryPoint, + ClusterRecoveryPointsListByReplicationProtectionClusterOptionalParams, +} from "../models/index.js"; + +/// +/** Interface representing a ClusterRecoveryPoints. */ +export interface ClusterRecoveryPoints { + /** + * The list of cluster recovery points. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param options The options parameters. + */ + listByReplicationProtectionCluster( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + options?: ClusterRecoveryPointsListByReplicationProtectionClusterOptionalParams, + ): PagedAsyncIterableIterator; +} diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/index.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/index.ts index 6f26debde6c2..2e7a3b80be80 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/index.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/index.ts @@ -22,6 +22,9 @@ export * from "./replicationProtectableItems.js"; export * from "./replicationProtectedItems.js"; export * from "./recoveryPoints.js"; export * from "./targetComputeSizes.js"; +export * from "./replicationProtectionClusters.js"; +export * from "./clusterRecoveryPoints.js"; +export * from "./clusterRecoveryPointOperations.js"; export * from "./replicationProtectionContainerMappings.js"; export * from "./replicationRecoveryServicesProviders.js"; export * from "./replicationStorageClassifications.js"; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/migrationRecoveryPoints.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/migrationRecoveryPoints.ts index 4fb51cb688ad..e6bb123c365f 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/migrationRecoveryPoints.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/migrationRecoveryPoints.ts @@ -19,17 +19,17 @@ import { export interface MigrationRecoveryPoints { /** * Gets the recovery points for a migration item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. * @param options The options parameters. */ listByReplicationMigrationItems( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -37,9 +37,9 @@ export interface MigrationRecoveryPoints { ): PagedAsyncIterableIterator; /** * Gets a recovery point for a migration item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -47,8 +47,8 @@ export interface MigrationRecoveryPoints { * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/recoveryPoints.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/recoveryPoints.ts index 07ff9cfe8c45..4b218c813e86 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/recoveryPoints.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/recoveryPoints.ts @@ -19,17 +19,17 @@ import { export interface RecoveryPoints { /** * Lists the available recovery points for a replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. * @param options The options parameters. */ listByReplicationProtectedItems( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -37,9 +37,9 @@ export interface RecoveryPoints { ): PagedAsyncIterableIterator; /** * Get the details of specified recovery point. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replication protected item name. @@ -47,8 +47,8 @@ export interface RecoveryPoints { * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationAlertSettings.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationAlertSettings.ts index 56e7d39dbe38..62ee91db1580 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationAlertSettings.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationAlertSettings.ts @@ -22,42 +22,42 @@ import { export interface ReplicationAlertSettings { /** * Gets the list of email notification(alert) configurations for the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationAlertSettingsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of the specified email notification(alert) configuration. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param alertSettingName The name of the email notification configuration. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, alertSettingName: string, options?: ReplicationAlertSettingsGetOptionalParams, ): Promise; /** * Create or update an email notification(alert) configuration. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param alertSettingName The name of the email notification(alert) configuration. * @param request The input to configure the email notification(alert). * @param options The options parameters. */ create( - resourceName: string, resourceGroupName: string, + resourceName: string, alertSettingName: string, request: ConfigureAlertRequest, options?: ReplicationAlertSettingsCreateOptionalParams, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationAppliances.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationAppliances.ts index fecb786f4508..c5180a99756e 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationAppliances.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationAppliances.ts @@ -17,14 +17,14 @@ import { export interface ReplicationAppliances { /** * Gets the list of Azure Site Recovery appliances for the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationAppliancesListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationEvents.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationEvents.ts index 4836728296df..cd45c8d0f840 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationEvents.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationEvents.ts @@ -19,27 +19,27 @@ import { export interface ReplicationEvents { /** * Gets the list of Azure Site Recovery events for the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationEventsListOptionalParams, ): PagedAsyncIterableIterator; /** * The operation to get the details of an Azure Site recovery event. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param eventName The name of the Azure Site Recovery event. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, eventName: string, options?: ReplicationEventsGetOptionalParams, ): Promise; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationFabrics.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationFabrics.ts index cd8bdad2eccc..762c173e7f7a 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationFabrics.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationFabrics.ts @@ -36,42 +36,42 @@ import { export interface ReplicationFabrics { /** * Gets a list of the Azure Site Recovery fabrics in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationFabricsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of an Azure Site Recovery fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationFabricsGetOptionalParams, ): Promise; /** * The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the ASR fabric. * @param input Fabric creation input. * @param options The options parameters. */ beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, input: FabricCreationInput, options?: ReplicationFabricsCreateOptionalParams, @@ -83,59 +83,59 @@ export interface ReplicationFabrics { >; /** * The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the ASR fabric. * @param input Fabric creation input. * @param options The options parameters. */ beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, input: FabricCreationInput, options?: ReplicationFabricsCreateOptionalParams, ): Promise; /** * The operation to purge(force delete) an Azure Site Recovery fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to purge. * @param options The options parameters. */ beginPurge( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationFabricsPurgeOptionalParams, ): Promise, void>>; /** * The operation to purge(force delete) an Azure Site Recovery fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to purge. * @param options The options parameters. */ beginPurgeAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationFabricsPurgeOptionalParams, ): Promise; /** * The operation to perform a consistency check on the fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param options The options parameters. */ beginCheckConsistency( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationFabricsCheckConsistencyOptionalParams, ): Promise< @@ -146,58 +146,58 @@ export interface ReplicationFabrics { >; /** * The operation to perform a consistency check on the fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param options The options parameters. */ beginCheckConsistencyAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationFabricsCheckConsistencyOptionalParams, ): Promise; /** * The operation to migrate an Azure Site Recovery fabric to AAD. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to migrate. * @param options The options parameters. */ beginMigrateToAad( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationFabricsMigrateToAadOptionalParams, ): Promise, void>>; /** * The operation to migrate an Azure Site Recovery fabric to AAD. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to migrate. * @param options The options parameters. */ beginMigrateToAadAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationFabricsMigrateToAadOptionalParams, ): Promise; /** * The operation to move replications from a process server to another process server. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the process server. * @param failoverProcessServerRequest The input to the failover process server operation. * @param options The options parameters. */ beginReassociateGateway( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, failoverProcessServerRequest: FailoverProcessServerRequest, options?: ReplicationFabricsReassociateGatewayOptionalParams, @@ -209,60 +209,60 @@ export interface ReplicationFabrics { >; /** * The operation to move replications from a process server to another process server. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the process server. * @param failoverProcessServerRequest The input to the failover process server operation. * @param options The options parameters. */ beginReassociateGatewayAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, failoverProcessServerRequest: FailoverProcessServerRequest, options?: ReplicationFabricsReassociateGatewayOptionalParams, ): Promise; /** * The operation to delete or remove an Azure Site Recovery fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to delete. * @param options The options parameters. */ beginDelete( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationFabricsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete or remove an Azure Site Recovery fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName ASR fabric to delete. * @param options The options parameters. */ beginDeleteAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationFabricsDeleteOptionalParams, ): Promise; /** * Renews the connection certificate for the ASR replication fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName fabric name to renew certs for. * @param renewCertificate Renew certificate input. * @param options The options parameters. */ beginRenewCertificate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, renewCertificate: RenewCertificateInput, options?: ReplicationFabricsRenewCertificateOptionalParams, @@ -274,16 +274,16 @@ export interface ReplicationFabrics { >; /** * Renews the connection certificate for the ASR replication fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName fabric name to renew certs for. * @param renewCertificate Renew certificate input. * @param options The options parameters. */ beginRenewCertificateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, renewCertificate: RenewCertificateInput, options?: ReplicationFabricsRenewCertificateOptionalParams, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationJobs.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationJobs.ts index 70ae6af362d6..3d87759ed6ee 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationJobs.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationJobs.ts @@ -30,41 +30,41 @@ import { export interface ReplicationJobs { /** * Gets the list of Azure Site Recovery Jobs for the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationJobsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the details of an Azure Site Recovery job. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, jobName: string, options?: ReplicationJobsGetOptionalParams, ): Promise; /** * The operation to cancel an Azure Site Recovery job. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param options The options parameters. */ beginCancel( - resourceName: string, resourceGroupName: string, + resourceName: string, jobName: string, options?: ReplicationJobsCancelOptionalParams, ): Promise< @@ -75,29 +75,29 @@ export interface ReplicationJobs { >; /** * The operation to cancel an Azure Site Recovery job. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param options The options parameters. */ beginCancelAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, jobName: string, options?: ReplicationJobsCancelOptionalParams, ): Promise; /** * The operation to restart an Azure Site Recovery job. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param options The options parameters. */ beginRestart( - resourceName: string, resourceGroupName: string, + resourceName: string, jobName: string, options?: ReplicationJobsRestartOptionalParams, ): Promise< @@ -108,30 +108,30 @@ export interface ReplicationJobs { >; /** * The operation to restart an Azure Site Recovery job. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param options The options parameters. */ beginRestartAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, jobName: string, options?: ReplicationJobsRestartOptionalParams, ): Promise; /** * The operation to resume an Azure Site Recovery job. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param resumeJobParams Resume rob comments. * @param options The options parameters. */ beginResume( - resourceName: string, resourceGroupName: string, + resourceName: string, jobName: string, resumeJobParams: ResumeJobParams, options?: ReplicationJobsResumeOptionalParams, @@ -143,31 +143,31 @@ export interface ReplicationJobs { >; /** * The operation to resume an Azure Site Recovery job. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param jobName Job identifier. * @param resumeJobParams Resume rob comments. * @param options The options parameters. */ beginResumeAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, jobName: string, resumeJobParams: ResumeJobParams, options?: ReplicationJobsResumeOptionalParams, ): Promise; /** * The operation to export the details of the Azure Site Recovery jobs of the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param jobQueryParameter job query filter. * @param options The options parameters. */ beginExport( - resourceName: string, resourceGroupName: string, + resourceName: string, jobQueryParameter: JobQueryParameter, options?: ReplicationJobsExportOptionalParams, ): Promise< @@ -178,15 +178,15 @@ export interface ReplicationJobs { >; /** * The operation to export the details of the Azure Site Recovery jobs of the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param jobQueryParameter job query filter. * @param options The options parameters. */ beginExportAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, jobQueryParameter: JobQueryParameter, options?: ReplicationJobsExportOptionalParams, ): Promise; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationLogicalNetworks.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationLogicalNetworks.ts index 267ccd74f3ec..c4b74d66d9b9 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationLogicalNetworks.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationLogicalNetworks.ts @@ -19,30 +19,30 @@ import { export interface ReplicationLogicalNetworks { /** * Lists all the logical networks of the Azure Site Recovery fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param options The options parameters. */ listByReplicationFabrics( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationLogicalNetworksListByReplicationFabricsOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of a logical network. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param logicalNetworkName Logical network name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, logicalNetworkName: string, options?: ReplicationLogicalNetworksGetOptionalParams, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationMigrationItems.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationMigrationItems.ts index 9ee4b8d5e3c0..c14ee6477584 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationMigrationItems.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationMigrationItems.ts @@ -46,45 +46,45 @@ import { export interface ReplicationMigrationItems { /** * Gets the list of ASR migration items in the protection container. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param options The options parameters. */ listByReplicationProtectionContainers( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationMigrationItemsListByReplicationProtectionContainersOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the list of migration items in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationMigrationItemsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of a migration item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -92,9 +92,9 @@ export interface ReplicationMigrationItems { ): Promise; /** * The operation to create an ASR migration item (enable migration). - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -102,8 +102,8 @@ export interface ReplicationMigrationItems { * @param options The options parameters. */ beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -117,9 +117,9 @@ export interface ReplicationMigrationItems { >; /** * The operation to create an ASR migration item (enable migration). - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -127,8 +127,8 @@ export interface ReplicationMigrationItems { * @param options The options parameters. */ beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -137,17 +137,17 @@ export interface ReplicationMigrationItems { ): Promise; /** * The operation to delete an ASR migration item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. * @param options The options parameters. */ beginDelete( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -155,17 +155,17 @@ export interface ReplicationMigrationItems { ): Promise, void>>; /** * The operation to delete an ASR migration item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. * @param options The options parameters. */ beginDeleteAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -173,9 +173,9 @@ export interface ReplicationMigrationItems { ): Promise; /** * The operation to update the recovery settings of an ASR migration item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -183,8 +183,8 @@ export interface ReplicationMigrationItems { * @param options The options parameters. */ beginUpdate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -198,9 +198,9 @@ export interface ReplicationMigrationItems { >; /** * The operation to update the recovery settings of an ASR migration item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -208,8 +208,8 @@ export interface ReplicationMigrationItems { * @param options The options parameters. */ beginUpdateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -218,9 +218,9 @@ export interface ReplicationMigrationItems { ): Promise; /** * The operation to initiate migration of the item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -228,8 +228,8 @@ export interface ReplicationMigrationItems { * @param options The options parameters. */ beginMigrate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -243,9 +243,9 @@ export interface ReplicationMigrationItems { >; /** * The operation to initiate migration of the item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -253,8 +253,8 @@ export interface ReplicationMigrationItems { * @param options The options parameters. */ beginMigrateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -263,9 +263,9 @@ export interface ReplicationMigrationItems { ): Promise; /** * The operation to initiate pause replication of the item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -273,8 +273,8 @@ export interface ReplicationMigrationItems { * @param options The options parameters. */ beginPauseReplication( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -288,9 +288,9 @@ export interface ReplicationMigrationItems { >; /** * The operation to initiate pause replication of the item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -298,8 +298,8 @@ export interface ReplicationMigrationItems { * @param options The options parameters. */ beginPauseReplicationAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -308,9 +308,9 @@ export interface ReplicationMigrationItems { ): Promise; /** * The operation to initiate resume replication of the item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -318,8 +318,8 @@ export interface ReplicationMigrationItems { * @param options The options parameters. */ beginResumeReplication( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -333,9 +333,9 @@ export interface ReplicationMigrationItems { >; /** * The operation to initiate resume replication of the item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -343,8 +343,8 @@ export interface ReplicationMigrationItems { * @param options The options parameters. */ beginResumeReplicationAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -353,9 +353,9 @@ export interface ReplicationMigrationItems { ): Promise; /** * The operation to resynchronize replication of an ASR migration item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -363,8 +363,8 @@ export interface ReplicationMigrationItems { * @param options The options parameters. */ beginResync( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -378,9 +378,9 @@ export interface ReplicationMigrationItems { >; /** * The operation to resynchronize replication of an ASR migration item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -388,8 +388,8 @@ export interface ReplicationMigrationItems { * @param options The options parameters. */ beginResyncAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -398,9 +398,9 @@ export interface ReplicationMigrationItems { ): Promise; /** * The operation to initiate test migration of the item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -408,8 +408,8 @@ export interface ReplicationMigrationItems { * @param options The options parameters. */ beginTestMigrate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -423,9 +423,9 @@ export interface ReplicationMigrationItems { >; /** * The operation to initiate test migration of the item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -433,8 +433,8 @@ export interface ReplicationMigrationItems { * @param options The options parameters. */ beginTestMigrateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -443,9 +443,9 @@ export interface ReplicationMigrationItems { ): Promise; /** * The operation to initiate test migrate cleanup. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -453,8 +453,8 @@ export interface ReplicationMigrationItems { * @param options The options parameters. */ beginTestMigrateCleanup( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, @@ -468,9 +468,9 @@ export interface ReplicationMigrationItems { >; /** * The operation to initiate test migrate cleanup. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param migrationItemName Migration item name. @@ -478,8 +478,8 @@ export interface ReplicationMigrationItems { * @param options The options parameters. */ beginTestMigrateCleanupAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, migrationItemName: string, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationNetworkMappings.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationNetworkMappings.ts index b7cda45dae3c..6566bf7e4661 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationNetworkMappings.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationNetworkMappings.ts @@ -28,45 +28,45 @@ import { export interface ReplicationNetworkMappings { /** * Lists all ASR network mappings for the specified network. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param options The options parameters. */ listByReplicationNetworks( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, networkName: string, options?: ReplicationNetworkMappingsListByReplicationNetworksOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all ASR network mappings in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationNetworkMappingsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of an ASR network mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, networkName: string, networkMappingName: string, @@ -74,9 +74,9 @@ export interface ReplicationNetworkMappings { ): Promise; /** * The operation to create an ASR network mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -84,8 +84,8 @@ export interface ReplicationNetworkMappings { * @param options The options parameters. */ beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, networkName: string, networkMappingName: string, @@ -99,9 +99,9 @@ export interface ReplicationNetworkMappings { >; /** * The operation to create an ASR network mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -109,8 +109,8 @@ export interface ReplicationNetworkMappings { * @param options The options parameters. */ beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, networkName: string, networkMappingName: string, @@ -119,17 +119,17 @@ export interface ReplicationNetworkMappings { ): Promise; /** * The operation to delete a network mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName ARM Resource Name for network mapping. * @param options The options parameters. */ beginDelete( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, networkName: string, networkMappingName: string, @@ -137,17 +137,17 @@ export interface ReplicationNetworkMappings { ): Promise, void>>; /** * The operation to delete a network mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName ARM Resource Name for network mapping. * @param options The options parameters. */ beginDeleteAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, networkName: string, networkMappingName: string, @@ -155,9 +155,9 @@ export interface ReplicationNetworkMappings { ): Promise; /** * The operation to update an ASR network mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -165,8 +165,8 @@ export interface ReplicationNetworkMappings { * @param options The options parameters. */ beginUpdate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, networkName: string, networkMappingName: string, @@ -180,9 +180,9 @@ export interface ReplicationNetworkMappings { >; /** * The operation to update an ASR network mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Primary fabric name. * @param networkName Primary network name. * @param networkMappingName Network mapping name. @@ -190,8 +190,8 @@ export interface ReplicationNetworkMappings { * @param options The options parameters. */ beginUpdateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, networkName: string, networkMappingName: string, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationNetworks.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationNetworks.ts index 83b1e5233688..3987bfdc7a23 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationNetworks.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationNetworks.ts @@ -20,42 +20,42 @@ import { export interface ReplicationNetworks { /** * Lists the networks available for a fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param options The options parameters. */ listByReplicationFabrics( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationNetworksListByReplicationFabricsOptionalParams, ): PagedAsyncIterableIterator; /** * Lists the networks available in a vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationNetworksListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of a network. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Server Id. * @param networkName Primary network name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, networkName: string, options?: ReplicationNetworksGetOptionalParams, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationPolicies.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationPolicies.ts index d44d50047efc..0f5bb0a905d1 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationPolicies.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationPolicies.ts @@ -27,42 +27,42 @@ import { export interface ReplicationPolicies { /** * Lists the replication policies for a vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationPoliciesListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of a replication policy. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, policyName: string, options?: ReplicationPoliciesGetOptionalParams, ): Promise; /** * The operation to create a replication policy. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param input Create policy input. * @param options The options parameters. */ beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, policyName: string, input: CreatePolicyInput, options?: ReplicationPoliciesCreateOptionalParams, @@ -74,60 +74,60 @@ export interface ReplicationPolicies { >; /** * The operation to create a replication policy. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param input Create policy input. * @param options The options parameters. */ beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, policyName: string, input: CreatePolicyInput, options?: ReplicationPoliciesCreateOptionalParams, ): Promise; /** * The operation to delete a replication policy. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param options The options parameters. */ beginDelete( - resourceName: string, resourceGroupName: string, + resourceName: string, policyName: string, options?: ReplicationPoliciesDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete a replication policy. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param policyName Replication policy name. * @param options The options parameters. */ beginDeleteAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, policyName: string, options?: ReplicationPoliciesDeleteOptionalParams, ): Promise; /** * The operation to update a replication policy. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param policyName Policy Id. * @param input Update Policy Input. * @param options The options parameters. */ beginUpdate( - resourceName: string, resourceGroupName: string, + resourceName: string, policyName: string, input: UpdatePolicyInput, options?: ReplicationPoliciesUpdateOptionalParams, @@ -139,16 +139,16 @@ export interface ReplicationPolicies { >; /** * The operation to update a replication policy. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param policyName Policy Id. * @param input Update Policy Input. * @param options The options parameters. */ beginUpdateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, policyName: string, input: UpdatePolicyInput, options?: ReplicationPoliciesUpdateOptionalParams, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectableItems.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectableItems.ts index 17b8317467f2..b34c71c98dfb 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectableItems.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectableItems.ts @@ -19,33 +19,33 @@ import { export interface ReplicationProtectableItems { /** * Lists the protectable items in a protection container. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param options The options parameters. */ listByReplicationProtectionContainers( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectableItemsListByReplicationProtectionContainersOptionalParams, ): PagedAsyncIterableIterator; /** * The operation to get the details of a protectable item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param protectableItemName Protectable item name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, protectableItemName: string, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectedItems.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectedItems.ts index 8ff068303e9f..c5f9bdac0368 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectedItems.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectedItems.ts @@ -72,45 +72,45 @@ import { export interface ReplicationProtectedItems { /** * Gets the list of ASR replication protected items in the protection container. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param options The options parameters. */ listByReplicationProtectionContainers( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectedItemsListByReplicationProtectionContainersOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the list of ASR replication protected items in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationProtectedItemsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of an ASR replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric unique name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -118,9 +118,9 @@ export interface ReplicationProtectedItems { ): Promise; /** * The operation to create an ASR replication protected item (Enable replication). - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the fabric. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName A name for the replication protected item. @@ -128,8 +128,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -143,9 +143,9 @@ export interface ReplicationProtectedItems { >; /** * The operation to create an ASR replication protected item (Enable replication). - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Name of the fabric. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName A name for the replication protected item. @@ -153,8 +153,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -165,17 +165,17 @@ export interface ReplicationProtectedItems { * The operation to delete or purge a replication protected item. This operation will force delete the * replication protected item. Use the remove operation on replication protected item to perform a * clean disable replication for the item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. * @param options The options parameters. */ beginPurge( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -185,17 +185,17 @@ export interface ReplicationProtectedItems { * The operation to delete or purge a replication protected item. This operation will force delete the * replication protected item. Use the remove operation on replication protected item to perform a * clean disable replication for the item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. * @param options The options parameters. */ beginPurgeAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -203,9 +203,9 @@ export interface ReplicationProtectedItems { ): Promise; /** * The operation to update the recovery settings of an ASR replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -213,8 +213,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginUpdate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -228,9 +228,9 @@ export interface ReplicationProtectedItems { >; /** * The operation to update the recovery settings of an ASR replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -238,8 +238,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginUpdateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -248,9 +248,9 @@ export interface ReplicationProtectedItems { ): Promise; /** * Operation to add disks(s) to the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -258,8 +258,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginAddDisks( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -273,9 +273,9 @@ export interface ReplicationProtectedItems { >; /** * Operation to add disks(s) to the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -283,8 +283,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginAddDisksAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -293,9 +293,9 @@ export interface ReplicationProtectedItems { ): Promise; /** * The operation to change the recovery point of a failed over replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The ARM fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replicated protected item name. @@ -303,8 +303,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginApplyRecoveryPoint( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -318,9 +318,9 @@ export interface ReplicationProtectedItems { >; /** * The operation to change the recovery point of a failed over replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The ARM fabric name. * @param protectionContainerName The protection container name. * @param replicatedProtectedItemName The replicated protected item name. @@ -328,8 +328,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginApplyRecoveryPointAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -338,17 +338,17 @@ export interface ReplicationProtectedItems { ): Promise; /** * Operation to cancel the failover of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. * @param options The options parameters. */ beginFailoverCancel( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -361,17 +361,17 @@ export interface ReplicationProtectedItems { >; /** * Operation to cancel the failover of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. * @param options The options parameters. */ beginFailoverCancelAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -379,17 +379,17 @@ export interface ReplicationProtectedItems { ): Promise; /** * Operation to commit the failover of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. * @param options The options parameters. */ beginFailoverCommit( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -402,17 +402,17 @@ export interface ReplicationProtectedItems { >; /** * Operation to commit the failover of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. * @param options The options parameters. */ beginFailoverCommitAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -420,9 +420,9 @@ export interface ReplicationProtectedItems { ): Promise; /** * Operation to initiate a planned failover of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -430,8 +430,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginPlannedFailover( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -445,9 +445,9 @@ export interface ReplicationProtectedItems { >; /** * Operation to initiate a planned failover of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -455,8 +455,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginPlannedFailoverAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -466,9 +466,9 @@ export interface ReplicationProtectedItems { /** * The operation to disable replication on a replication protected item. This will also remove the * item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -476,8 +476,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginDelete( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -487,9 +487,9 @@ export interface ReplicationProtectedItems { /** * The operation to disable replication on a replication protected item. This will also remove the * item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -497,8 +497,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginDeleteAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -507,9 +507,9 @@ export interface ReplicationProtectedItems { ): Promise; /** * Operation to remove disk(s) from the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -517,8 +517,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginRemoveDisks( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -532,9 +532,9 @@ export interface ReplicationProtectedItems { >; /** * Operation to remove disk(s) from the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -542,8 +542,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginRemoveDisksAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -553,17 +553,17 @@ export interface ReplicationProtectedItems { /** * The operation to start resynchronize/repair replication for a replication protected item requiring * resynchronization. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the container. * @param replicatedProtectedItemName The name of the replication protected item. * @param options The options parameters. */ beginRepairReplication( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -577,17 +577,17 @@ export interface ReplicationProtectedItems { /** * The operation to start resynchronize/repair replication for a replication protected item requiring * resynchronization. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the container. * @param replicatedProtectedItemName The name of the replication protected item. * @param options The options parameters. */ beginRepairReplicationAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -595,9 +595,9 @@ export interface ReplicationProtectedItems { ): Promise; /** * Operation to reprotect or reverse replicate a failed over replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -605,8 +605,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginReprotect( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -620,9 +620,9 @@ export interface ReplicationProtectedItems { >; /** * Operation to reprotect or reverse replicate a failed over replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -630,8 +630,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginReprotectAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -640,9 +640,9 @@ export interface ReplicationProtectedItems { ): Promise; /** * Operation to resolve health issues of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -650,8 +650,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginResolveHealthErrors( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -665,9 +665,9 @@ export interface ReplicationProtectedItems { >; /** * Operation to resolve health issues of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -675,8 +675,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginResolveHealthErrorsAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -685,9 +685,9 @@ export interface ReplicationProtectedItems { ): Promise; /** * Operation to initiate a switch provider of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -695,8 +695,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginSwitchProvider( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -710,9 +710,9 @@ export interface ReplicationProtectedItems { >; /** * Operation to initiate a switch provider of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -720,8 +720,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginSwitchProviderAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -730,9 +730,9 @@ export interface ReplicationProtectedItems { ): Promise; /** * Operation to perform a test failover of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -740,8 +740,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginTestFailover( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -755,9 +755,9 @@ export interface ReplicationProtectedItems { >; /** * Operation to perform a test failover of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -765,8 +765,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginTestFailoverAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -775,9 +775,9 @@ export interface ReplicationProtectedItems { ): Promise; /** * Operation to clean up the test failover of a replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -785,8 +785,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginTestFailoverCleanup( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -800,9 +800,9 @@ export interface ReplicationProtectedItems { >; /** * Operation to clean up the test failover of a replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -810,8 +810,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginTestFailoverCleanupAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -820,9 +820,9 @@ export interface ReplicationProtectedItems { ): Promise; /** * Operation to initiate a failover of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -830,8 +830,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginUnplannedFailover( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -845,9 +845,9 @@ export interface ReplicationProtectedItems { >; /** * Operation to initiate a failover of the replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -855,8 +855,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginUnplannedFailoverAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -865,9 +865,9 @@ export interface ReplicationProtectedItems { ): Promise; /** * The operation to update appliance of an ASR replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -875,8 +875,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginUpdateAppliance( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -890,9 +890,9 @@ export interface ReplicationProtectedItems { >; /** * The operation to update appliance of an ASR replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -900,8 +900,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginUpdateApplianceAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -911,9 +911,9 @@ export interface ReplicationProtectedItems { /** * The operation to update(push update) the installed mobility service software on a replication * protected item to the latest available version. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the protected item. * @param protectionContainerName The name of the container containing the protected item. * @param replicatedProtectedItemName The name of the protected item on which the agent is to be @@ -922,8 +922,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginUpdateMobilityService( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, @@ -938,9 +938,9 @@ export interface ReplicationProtectedItems { /** * The operation to update(push update) the installed mobility service software on a replication * protected item to the latest available version. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric containing the protected item. * @param protectionContainerName The name of the container containing the protected item. * @param replicatedProtectedItemName The name of the protected item on which the agent is to be @@ -949,8 +949,8 @@ export interface ReplicationProtectedItems { * @param options The options parameters. */ beginUpdateMobilityServiceAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectionClusters.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectionClusters.ts new file mode 100644 index 000000000000..181309b2da07 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectionClusters.ts @@ -0,0 +1,462 @@ +/* + * 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 { + ReplicationProtectionCluster, + ReplicationProtectionClustersListByReplicationProtectionContainersOptionalParams, + ReplicationProtectionClustersListOptionalParams, + ReplicationProtectionClustersGetOptionalParams, + ReplicationProtectionClustersGetResponse, + ReplicationProtectionClustersCreateOptionalParams, + ReplicationProtectionClustersCreateResponse, + ReplicationProtectionClustersPurgeOptionalParams, + ReplicationProtectionClustersPurgeResponse, + ApplyClusterRecoveryPointInput, + ReplicationProtectionClustersApplyRecoveryPointOptionalParams, + ReplicationProtectionClustersApplyRecoveryPointResponse, + ReplicationProtectionClustersFailoverCommitOptionalParams, + ReplicationProtectionClustersFailoverCommitResponse, + ReplicationProtectionClustersGetOperationResultsOptionalParams, + ReplicationProtectionClustersGetOperationResultsResponse, + ReplicationProtectionClustersRepairReplicationOptionalParams, + ReplicationProtectionClustersRepairReplicationResponse, + ClusterTestFailoverInput, + ReplicationProtectionClustersTestFailoverOptionalParams, + ReplicationProtectionClustersTestFailoverResponse, + ClusterTestFailoverCleanupInput, + ReplicationProtectionClustersTestFailoverCleanupOptionalParams, + ReplicationProtectionClustersTestFailoverCleanupResponse, + ClusterUnplannedFailoverInput, + ReplicationProtectionClustersUnplannedFailoverOptionalParams, + ReplicationProtectionClustersUnplannedFailoverResponse, +} from "../models/index.js"; + +/// +/** Interface representing a ReplicationProtectionClusters. */ +export interface ReplicationProtectionClusters { + /** + * Gets the list of ASR replication protected clusters in the protection container. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param options The options parameters. + */ + listByReplicationProtectionContainers( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + options?: ReplicationProtectionClustersListByReplicationProtectionContainersOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the list of ASR replication protected clusters in the vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + resourceName: string, + options?: ReplicationProtectionClustersListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the details of an ASR replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + options?: ReplicationProtectionClustersGetOptionalParams, + ): Promise; + /** + * The operation to create an ASR replication protection cluster item. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param replicationProtectionCluster Create replication protection cluster Input. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + replicationProtectionCluster: ReplicationProtectionCluster, + options?: ReplicationProtectionClustersCreateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ReplicationProtectionClustersCreateResponse + > + >; + /** + * The operation to create an ASR replication protection cluster item. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param replicationProtectionCluster Create replication protection cluster Input. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + replicationProtectionCluster: ReplicationProtectionCluster, + options?: ReplicationProtectionClustersCreateOptionalParams, + ): Promise; + /** + * The operation to purge the replication protection cluster. This operation will force delete the + * replication protection cluster. Use the remove operation on replication protection cluster to + * perform a clean disable replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param options The options parameters. + */ + beginPurge( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + options?: ReplicationProtectionClustersPurgeOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ReplicationProtectionClustersPurgeResponse + > + >; + /** + * The operation to purge the replication protection cluster. This operation will force delete the + * replication protection cluster. Use the remove operation on replication protection cluster to + * perform a clean disable replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param options The options parameters. + */ + beginPurgeAndWait( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + options?: ReplicationProtectionClustersPurgeOptionalParams, + ): Promise; + /** + * Operation to apply a new cluster recovery point on the Protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param applyClusterRecoveryPointInput Apply recovery point input. + * @param options The options parameters. + */ + beginApplyRecoveryPoint( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + applyClusterRecoveryPointInput: ApplyClusterRecoveryPointInput, + options?: ReplicationProtectionClustersApplyRecoveryPointOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ReplicationProtectionClustersApplyRecoveryPointResponse + > + >; + /** + * Operation to apply a new cluster recovery point on the Protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param applyClusterRecoveryPointInput Apply recovery point input. + * @param options The options parameters. + */ + beginApplyRecoveryPointAndWait( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + applyClusterRecoveryPointInput: ApplyClusterRecoveryPointInput, + options?: ReplicationProtectionClustersApplyRecoveryPointOptionalParams, + ): Promise; + /** + * Operation to initiate commit failover of the replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param options The options parameters. + */ + beginFailoverCommit( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + options?: ReplicationProtectionClustersFailoverCommitOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ReplicationProtectionClustersFailoverCommitResponse + > + >; + /** + * Operation to initiate commit failover of the replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param options The options parameters. + */ + beginFailoverCommitAndWait( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + options?: ReplicationProtectionClustersFailoverCommitOptionalParams, + ): Promise; + /** + * Track the results of an asynchronous operation on the replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param jobId job id to track. + * @param options The options parameters. + */ + getOperationResults( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + jobId: string, + options?: ReplicationProtectionClustersGetOperationResultsOptionalParams, + ): Promise; + /** + * The operation to repair replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param options The options parameters. + */ + beginRepairReplication( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + options?: ReplicationProtectionClustersRepairReplicationOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ReplicationProtectionClustersRepairReplicationResponse + > + >; + /** + * The operation to repair replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param options The options parameters. + */ + beginRepairReplicationAndWait( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + options?: ReplicationProtectionClustersRepairReplicationOptionalParams, + ): Promise; + /** + * Operation to initiate a failover of the replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Cluster test failover input body. + * @param options The options parameters. + */ + beginTestFailover( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + failoverInput: ClusterTestFailoverInput, + options?: ReplicationProtectionClustersTestFailoverOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ReplicationProtectionClustersTestFailoverResponse + > + >; + /** + * Operation to initiate a failover of the replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Cluster test failover input body. + * @param options The options parameters. + */ + beginTestFailoverAndWait( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + failoverInput: ClusterTestFailoverInput, + options?: ReplicationProtectionClustersTestFailoverOptionalParams, + ): Promise; + /** + * Operation to clean up the test failover of a replication protected cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param cleanupInput Test failover cleanup input. + * @param options The options parameters. + */ + beginTestFailoverCleanup( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + cleanupInput: ClusterTestFailoverCleanupInput, + options?: ReplicationProtectionClustersTestFailoverCleanupOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ReplicationProtectionClustersTestFailoverCleanupResponse + > + >; + /** + * Operation to clean up the test failover of a replication protected cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param cleanupInput Test failover cleanup input. + * @param options The options parameters. + */ + beginTestFailoverCleanupAndWait( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + cleanupInput: ClusterTestFailoverCleanupInput, + options?: ReplicationProtectionClustersTestFailoverCleanupOptionalParams, + ): Promise; + /** + * Operation to initiate a failover of the replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Failover input. + * @param options The options parameters. + */ + beginUnplannedFailover( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + failoverInput: ClusterUnplannedFailoverInput, + options?: ReplicationProtectionClustersUnplannedFailoverOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ReplicationProtectionClustersUnplannedFailoverResponse + > + >; + /** + * Operation to initiate a failover of the replication protection cluster. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicationProtectionClusterName Replication protection cluster name. + * @param failoverInput Failover input. + * @param options The options parameters. + */ + beginUnplannedFailoverAndWait( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + replicationProtectionClusterName: string, + failoverInput: ClusterUnplannedFailoverInput, + options?: ReplicationProtectionClustersUnplannedFailoverOptionalParams, + ): Promise; +} diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectionContainerMappings.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectionContainerMappings.ts index a6e6f05791fc..ba72fc1e04e7 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectionContainerMappings.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectionContainerMappings.ts @@ -30,45 +30,45 @@ import { export interface ReplicationProtectionContainerMappings { /** * Lists the protection container mappings for a protection container. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param options The options parameters. */ listByReplicationProtectionContainers( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectionContainerMappingsListByReplicationProtectionContainersOptionalParams, ): PagedAsyncIterableIterator; /** * Lists the protection container mappings in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationProtectionContainerMappingsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of a protection container mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection Container mapping name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, @@ -76,9 +76,9 @@ export interface ReplicationProtectionContainerMappings { ): Promise; /** * The operation to create a protection container mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -86,8 +86,8 @@ export interface ReplicationProtectionContainerMappings { * @param options The options parameters. */ beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, @@ -101,9 +101,9 @@ export interface ReplicationProtectionContainerMappings { >; /** * The operation to create a protection container mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -111,8 +111,8 @@ export interface ReplicationProtectionContainerMappings { * @param options The options parameters. */ beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, @@ -121,17 +121,17 @@ export interface ReplicationProtectionContainerMappings { ): Promise; /** * The operation to purge(force delete) a protection container mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. * @param options The options parameters. */ beginPurge( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, @@ -139,17 +139,17 @@ export interface ReplicationProtectionContainerMappings { ): Promise, void>>; /** * The operation to purge(force delete) a protection container mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. * @param options The options parameters. */ beginPurgeAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, @@ -157,9 +157,9 @@ export interface ReplicationProtectionContainerMappings { ): Promise; /** * The operation to update protection container mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -167,8 +167,8 @@ export interface ReplicationProtectionContainerMappings { * @param options The options parameters. */ beginUpdate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, @@ -182,9 +182,9 @@ export interface ReplicationProtectionContainerMappings { >; /** * The operation to update protection container mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -192,8 +192,8 @@ export interface ReplicationProtectionContainerMappings { * @param options The options parameters. */ beginUpdateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, @@ -202,9 +202,9 @@ export interface ReplicationProtectionContainerMappings { ): Promise; /** * The operation to delete or remove a protection container mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -212,8 +212,8 @@ export interface ReplicationProtectionContainerMappings { * @param options The options parameters. */ beginDelete( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, @@ -222,9 +222,9 @@ export interface ReplicationProtectionContainerMappings { ): Promise, void>>; /** * The operation to delete or remove a protection container mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection container mapping name. @@ -232,8 +232,8 @@ export interface ReplicationProtectionContainerMappings { * @param options The options parameters. */ beginDeleteAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, mappingName: string, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectionContainers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectionContainers.ts index 62c10d6c54b8..dec9a2c4c572 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectionContainers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectionContainers.ts @@ -21,6 +21,9 @@ import { ReplicationProtectionContainersDiscoverProtectableItemOptionalParams, ReplicationProtectionContainersDiscoverProtectableItemResponse, ReplicationProtectionContainersDeleteOptionalParams, + SwitchClusterProtectionInput, + ReplicationProtectionContainersSwitchClusterProtectionOptionalParams, + ReplicationProtectionContainersSwitchClusterProtectionResponse, SwitchProtectionInput, ReplicationProtectionContainersSwitchProtectionOptionalParams, ReplicationProtectionContainersSwitchProtectionResponse, @@ -31,59 +34,59 @@ import { export interface ReplicationProtectionContainers { /** * Lists the protection containers in the specified fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param options The options parameters. */ listByReplicationFabrics( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationProtectionContainersListByReplicationFabricsOptionalParams, ): PagedAsyncIterableIterator; /** * Lists the protection containers in a vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationProtectionContainersListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of a protection container. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectionContainersGetOptionalParams, ): Promise; /** * Operation to create a protection container. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param creationInput Creation input. * @param options The options parameters. */ beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, creationInput: CreateProtectionContainerInput, @@ -96,17 +99,17 @@ export interface ReplicationProtectionContainers { >; /** * Operation to create a protection container. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param creationInput Creation input. * @param options The options parameters. */ beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, creationInput: CreateProtectionContainerInput, @@ -114,17 +117,17 @@ export interface ReplicationProtectionContainers { ): Promise; /** * The operation to a add a protectable item to a protection container(Add physical server). - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the protection container. * @param discoverProtectableItemRequest The request object to add a protectable item. * @param options The options parameters. */ beginDiscoverProtectableItem( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, discoverProtectableItemRequest: DiscoverProtectableItemRequest, @@ -137,17 +140,17 @@ export interface ReplicationProtectionContainers { >; /** * The operation to a add a protectable item to a protection container(Add physical server). - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the protection container. * @param discoverProtectableItemRequest The request object to add a protectable item. * @param options The options parameters. */ beginDiscoverProtectableItemAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, discoverProtectableItemRequest: DiscoverProtectableItemRequest, @@ -155,49 +158,90 @@ export interface ReplicationProtectionContainers { ): Promise; /** * Operation to remove a protection container. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param options The options parameters. */ beginDelete( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectionContainersDeleteOptionalParams, ): Promise, void>>; /** * Operation to remove a protection container. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric ARM name. * @param protectionContainerName Unique protection container ARM name. * @param options The options parameters. */ beginDeleteAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, options?: ReplicationProtectionContainersDeleteOptionalParams, ): Promise; /** - * Operation to switch protection from one container to another or one replication provider to another. + * Operation to switch protection from one container to another. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param switchInput Switch protection input. + * @param options The options parameters. + */ + beginSwitchClusterProtection( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + switchInput: SwitchClusterProtectionInput, + options?: ReplicationProtectionContainersSwitchClusterProtectionOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ReplicationProtectionContainersSwitchClusterProtectionResponse + > + >; + /** + * Operation to switch protection from one container to another. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param switchInput Switch protection input. + * @param options The options parameters. + */ + beginSwitchClusterProtectionAndWait( + resourceGroupName: string, + resourceName: string, + fabricName: string, + protectionContainerName: string, + switchInput: SwitchClusterProtectionInput, + options?: ReplicationProtectionContainersSwitchClusterProtectionOptionalParams, + ): Promise; + /** + * Operation to switch protection from one container to another or one replication provider to another. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param switchInput Switch protection input. * @param options The options parameters. */ beginSwitchProtection( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, switchInput: SwitchProtectionInput, @@ -210,17 +254,17 @@ export interface ReplicationProtectionContainers { >; /** * Operation to switch protection from one container to another or one replication provider to another. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param switchInput Switch protection input. * @param options The options parameters. */ beginSwitchProtectionAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, switchInput: SwitchProtectionInput, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectionIntents.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectionIntents.ts index 913c5f44971c..79a748dcf4ef 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectionIntents.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationProtectionIntents.ts @@ -22,42 +22,42 @@ import { export interface ReplicationProtectionIntents { /** * Gets the list of ASR replication protection intent objects in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationProtectionIntentsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of an ASR replication protection intent. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param intentObjectName Replication protection intent name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, intentObjectName: string, options?: ReplicationProtectionIntentsGetOptionalParams, ): Promise; /** * The operation to create an ASR replication protection intent item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param intentObjectName A name for the replication protection item. * @param input Create Protection Intent Input. * @param options The options parameters. */ create( - resourceName: string, resourceGroupName: string, + resourceName: string, intentObjectName: string, input: CreateProtectionIntentInput, options?: ReplicationProtectionIntentsCreateOptionalParams, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationRecoveryPlans.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationRecoveryPlans.ts index 5c1d980e8389..6d6cb76cc0c5 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationRecoveryPlans.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationRecoveryPlans.ts @@ -45,42 +45,42 @@ import { export interface ReplicationRecoveryPlans { /** * Lists the recovery plans in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationRecoveryPlansListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of the recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Name of the recovery plan. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansGetOptionalParams, ): Promise; /** * The operation to create a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery Plan creation input. * @param options The options parameters. */ beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: CreateRecoveryPlanInput, options?: ReplicationRecoveryPlansCreateOptionalParams, @@ -92,60 +92,60 @@ export interface ReplicationRecoveryPlans { >; /** * The operation to create a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery Plan creation input. * @param options The options parameters. */ beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: CreateRecoveryPlanInput, options?: ReplicationRecoveryPlansCreateOptionalParams, ): Promise; /** * Delete a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param options The options parameters. */ beginDelete( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansDeleteOptionalParams, ): Promise, void>>; /** * Delete a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param options The options parameters. */ beginDeleteAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansDeleteOptionalParams, ): Promise; /** * The operation to update a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Update recovery plan input. * @param options The options parameters. */ beginUpdate( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: UpdateRecoveryPlanInput, options?: ReplicationRecoveryPlansUpdateOptionalParams, @@ -157,31 +157,31 @@ export interface ReplicationRecoveryPlans { >; /** * The operation to update a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Update recovery plan input. * @param options The options parameters. */ beginUpdateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: UpdateRecoveryPlanInput, options?: ReplicationRecoveryPlansUpdateOptionalParams, ): Promise; /** * The operation to cancel the failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param options The options parameters. */ beginFailoverCancel( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansFailoverCancelOptionalParams, ): Promise< @@ -192,29 +192,29 @@ export interface ReplicationRecoveryPlans { >; /** * The operation to cancel the failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param options The options parameters. */ beginFailoverCancelAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansFailoverCancelOptionalParams, ): Promise; /** * The operation to commit the failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param options The options parameters. */ beginFailoverCommit( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansFailoverCommitOptionalParams, ): Promise< @@ -225,30 +225,30 @@ export interface ReplicationRecoveryPlans { >; /** * The operation to commit the failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param options The options parameters. */ beginFailoverCommitAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansFailoverCommitOptionalParams, ): Promise; /** * The operation to start the planned failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Failover input. * @param options The options parameters. */ beginPlannedFailover( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: RecoveryPlanPlannedFailoverInput, options?: ReplicationRecoveryPlansPlannedFailoverOptionalParams, @@ -260,31 +260,32 @@ export interface ReplicationRecoveryPlans { >; /** * The operation to start the planned failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Failover input. * @param options The options parameters. */ beginPlannedFailoverAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: RecoveryPlanPlannedFailoverInput, options?: ReplicationRecoveryPlansPlannedFailoverOptionalParams, ): Promise; /** - * The operation to reprotect(reverse replicate) a recovery plan. - * @param resourceName The name of the recovery services vault. + * The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios + * and no longer works. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param options The options parameters. */ beginReprotect( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansReprotectOptionalParams, ): Promise< @@ -294,31 +295,32 @@ export interface ReplicationRecoveryPlans { > >; /** - * The operation to reprotect(reverse replicate) a recovery plan. - * @param resourceName The name of the recovery services vault. + * The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios + * and no longer works. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param options The options parameters. */ beginReprotectAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, options?: ReplicationRecoveryPlansReprotectOptionalParams, ): Promise; /** * The operation to start the test failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover input. * @param options The options parameters. */ beginTestFailover( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: RecoveryPlanTestFailoverInput, options?: ReplicationRecoveryPlansTestFailoverOptionalParams, @@ -330,32 +332,32 @@ export interface ReplicationRecoveryPlans { >; /** * The operation to start the test failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover input. * @param options The options parameters. */ beginTestFailoverAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: RecoveryPlanTestFailoverInput, options?: ReplicationRecoveryPlansTestFailoverOptionalParams, ): Promise; /** * The operation to cleanup test failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover cleanup input. * @param options The options parameters. */ beginTestFailoverCleanup( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: RecoveryPlanTestFailoverCleanupInput, options?: ReplicationRecoveryPlansTestFailoverCleanupOptionalParams, @@ -367,32 +369,32 @@ export interface ReplicationRecoveryPlans { >; /** * The operation to cleanup test failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan test failover cleanup input. * @param options The options parameters. */ beginTestFailoverCleanupAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: RecoveryPlanTestFailoverCleanupInput, options?: ReplicationRecoveryPlansTestFailoverCleanupOptionalParams, ): Promise; /** * The operation to start the unplanned failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan unplanned failover input. * @param options The options parameters. */ beginUnplannedFailover( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: RecoveryPlanUnplannedFailoverInput, options?: ReplicationRecoveryPlansUnplannedFailoverOptionalParams, @@ -404,16 +406,16 @@ export interface ReplicationRecoveryPlans { >; /** * The operation to start the unplanned failover of a recovery plan. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param recoveryPlanName Recovery plan name. * @param input Recovery plan unplanned failover input. * @param options The options parameters. */ beginUnplannedFailoverAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, recoveryPlanName: string, input: RecoveryPlanUnplannedFailoverInput, options?: ReplicationRecoveryPlansUnplannedFailoverOptionalParams, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationRecoveryServicesProviders.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationRecoveryServicesProviders.ts index b844d272394a..506f202b8bd2 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationRecoveryServicesProviders.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationRecoveryServicesProviders.ts @@ -28,59 +28,59 @@ import { export interface ReplicationRecoveryServicesProviders { /** * Lists the registered recovery services providers for the specified fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param options The options parameters. */ listByReplicationFabrics( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationRecoveryServicesProvidersListByReplicationFabricsOptionalParams, ): PagedAsyncIterableIterator; /** * Lists the registered recovery services providers in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationRecoveryServicesProvidersListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of registered recovery services provider. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersGetOptionalParams, ): Promise; /** * The operation to add a recovery services provider. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param addProviderInput Add provider input. * @param options The options parameters. */ beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, providerName: string, addProviderInput: AddRecoveryServicesProviderInput, @@ -93,17 +93,17 @@ export interface ReplicationRecoveryServicesProviders { >; /** * The operation to add a recovery services provider. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param addProviderInput Add provider input. * @param options The options parameters. */ beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, providerName: string, addProviderInput: AddRecoveryServicesProviderInput, @@ -111,48 +111,48 @@ export interface ReplicationRecoveryServicesProviders { ): Promise; /** * The operation to purge(force delete) a recovery services provider from the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param options The options parameters. */ beginPurge( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersPurgeOptionalParams, ): Promise, void>>; /** * The operation to purge(force delete) a recovery services provider from the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param options The options parameters. */ beginPurgeAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersPurgeOptionalParams, ): Promise; /** * The operation to refresh the information from the recovery services provider. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param options The options parameters. */ beginRefreshProvider( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersRefreshProviderOptionalParams, @@ -164,48 +164,48 @@ export interface ReplicationRecoveryServicesProviders { >; /** * The operation to refresh the information from the recovery services provider. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param options The options parameters. */ beginRefreshProviderAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersRefreshProviderOptionalParams, ): Promise; /** * The operation to removes/delete(unregister) a recovery services provider from the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param options The options parameters. */ beginDelete( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersDeleteOptionalParams, ): Promise, void>>; /** * The operation to removes/delete(unregister) a recovery services provider from the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param options The options parameters. */ beginDeleteAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, providerName: string, options?: ReplicationRecoveryServicesProvidersDeleteOptionalParams, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationStorageClassificationMappings.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationStorageClassificationMappings.ts index 2cd2edc6cd17..a0772c48ff4b 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationStorageClassificationMappings.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationStorageClassificationMappings.ts @@ -25,45 +25,45 @@ import { export interface ReplicationStorageClassificationMappings { /** * Lists the storage classification mappings for the fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param options The options parameters. */ listByReplicationStorageClassifications( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, storageClassificationName: string, options?: ReplicationStorageClassificationMappingsListByReplicationStorageClassificationsOptionalParams, ): PagedAsyncIterableIterator; /** * Lists the storage classification mappings in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationStorageClassificationMappingsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of the specified storage classification mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, storageClassificationName: string, storageClassificationMappingName: string, @@ -71,9 +71,9 @@ export interface ReplicationStorageClassificationMappings { ): Promise; /** * The operation to create a storage classification mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -81,8 +81,8 @@ export interface ReplicationStorageClassificationMappings { * @param options The options parameters. */ beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, storageClassificationName: string, storageClassificationMappingName: string, @@ -96,9 +96,9 @@ export interface ReplicationStorageClassificationMappings { >; /** * The operation to create a storage classification mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. @@ -106,8 +106,8 @@ export interface ReplicationStorageClassificationMappings { * @param options The options parameters. */ beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, storageClassificationName: string, storageClassificationMappingName: string, @@ -116,17 +116,17 @@ export interface ReplicationStorageClassificationMappings { ): Promise; /** * The operation to delete a storage classification mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. * @param options The options parameters. */ beginDelete( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, storageClassificationName: string, storageClassificationMappingName: string, @@ -134,17 +134,17 @@ export interface ReplicationStorageClassificationMappings { ): Promise, void>>; /** * The operation to delete a storage classification mapping. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param storageClassificationMappingName Storage classification mapping name. * @param options The options parameters. */ beginDeleteAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, storageClassificationName: string, storageClassificationMappingName: string, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationStorageClassifications.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationStorageClassifications.ts index f4a9d092395d..b2cd34e68211 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationStorageClassifications.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationStorageClassifications.ts @@ -20,42 +20,42 @@ import { export interface ReplicationStorageClassifications { /** * Lists the storage classifications available in the specified fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Site name of interest. * @param options The options parameters. */ listByReplicationFabrics( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationStorageClassificationsListByReplicationFabricsOptionalParams, ): PagedAsyncIterableIterator; /** * Lists the storage classifications in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationStorageClassificationsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of the specified storage classification. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param storageClassificationName Storage classification name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, storageClassificationName: string, options?: ReplicationStorageClassificationsGetOptionalParams, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationVaultHealth.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationVaultHealth.ts index 43676f0fb24a..a37f7350824f 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationVaultHealth.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationVaultHealth.ts @@ -18,26 +18,26 @@ import { export interface ReplicationVaultHealth { /** * Gets the health details of the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationVaultHealthGetOptionalParams, ): Promise; /** * Refreshes health summary of the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ beginRefresh( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationVaultHealthRefreshOptionalParams, ): Promise< SimplePollerLike< @@ -47,14 +47,14 @@ export interface ReplicationVaultHealth { >; /** * Refreshes health summary of the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ beginRefreshAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationVaultHealthRefreshOptionalParams, ): Promise; } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationVaultSetting.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationVaultSetting.ts index 02e8ceb8f8fa..4041e114afa6 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationVaultSetting.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationVaultSetting.ts @@ -23,42 +23,42 @@ import { export interface ReplicationVaultSetting { /** * Gets the list of vault setting. This includes the Migration Hub connection settings. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationVaultSettingListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the vault setting. This includes the Migration Hub connection settings. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, vaultSettingName: string, options?: ReplicationVaultSettingGetOptionalParams, ): Promise; /** * The operation to configure vault setting. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param input Vault setting creation input. * @param options The options parameters. */ beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, vaultSettingName: string, input: VaultSettingCreationInput, options?: ReplicationVaultSettingCreateOptionalParams, @@ -70,16 +70,16 @@ export interface ReplicationVaultSetting { >; /** * The operation to configure vault setting. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param vaultSettingName Vault setting name. * @param input Vault setting creation input. * @param options The options parameters. */ beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, vaultSettingName: string, input: VaultSettingCreationInput, options?: ReplicationVaultSettingCreateOptionalParams, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationvCenters.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationvCenters.ts index 9fbfac563d18..2da841e33f6d 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationvCenters.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/replicationvCenters.ts @@ -28,59 +28,59 @@ import { export interface ReplicationvCenters { /** * Lists the vCenter servers registered in a fabric. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param options The options parameters. */ listByReplicationFabrics( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, options?: ReplicationvCentersListByReplicationFabricsOptionalParams, ): PagedAsyncIterableIterator; /** * Lists the vCenter servers registered in the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ list( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: ReplicationvCentersListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of a registered vCenter server(Add vCenter server). - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, vcenterName: string, options?: ReplicationvCentersGetOptionalParams, ): Promise; /** * The operation to create a vCenter object.. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param addVCenterRequest The input to the add vCenter operation. * @param options The options parameters. */ beginCreate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, vcenterName: string, addVCenterRequest: AddVCenterRequest, @@ -93,17 +93,17 @@ export interface ReplicationvCenters { >; /** * The operation to create a vCenter object.. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param addVCenterRequest The input to the add vCenter operation. * @param options The options parameters. */ beginCreateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, vcenterName: string, addVCenterRequest: AddVCenterRequest, @@ -111,49 +111,49 @@ export interface ReplicationvCenters { ): Promise; /** * The operation to remove(unregister) a registered vCenter server from the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param options The options parameters. */ beginDelete( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, vcenterName: string, options?: ReplicationvCentersDeleteOptionalParams, ): Promise, void>>; /** * The operation to remove(unregister) a registered vCenter server from the vault. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param options The options parameters. */ beginDeleteAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, vcenterName: string, options?: ReplicationvCentersDeleteOptionalParams, ): Promise; /** * The operation to update a registered vCenter. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param updateVCenterRequest The input to the update vCenter operation. * @param options The options parameters. */ beginUpdate( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, vcenterName: string, updateVCenterRequest: UpdateVCenterRequest, @@ -166,17 +166,17 @@ export interface ReplicationvCenters { >; /** * The operation to update a registered vCenter. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param vcenterName vcenter name. * @param updateVCenterRequest The input to the update vCenter operation. * @param options The options parameters. */ beginUpdateAndWait( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, vcenterName: string, updateVCenterRequest: UpdateVCenterRequest, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/supportedOperatingSystemsOperations.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/supportedOperatingSystemsOperations.ts index 4b8767aaca8e..6c7cfd6f4b4e 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/supportedOperatingSystemsOperations.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/supportedOperatingSystemsOperations.ts @@ -15,14 +15,14 @@ import { export interface SupportedOperatingSystemsOperations { /** * Gets the data of supported operating systems by SRS. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param options The options parameters. */ get( - resourceName: string, resourceGroupName: string, + resourceName: string, options?: SupportedOperatingSystemsGetOptionalParams, ): Promise; } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/targetComputeSizes.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/targetComputeSizes.ts index c559d59486fa..55555c811624 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/targetComputeSizes.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operationsInterfaces/targetComputeSizes.ts @@ -17,17 +17,17 @@ import { export interface TargetComputeSizes { /** * Lists the available target compute sizes for a replication protected item. - * @param resourceName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. + * @param resourceName The name of the recovery services vault. * @param fabricName Fabric name. * @param protectionContainerName protection container name. * @param replicatedProtectedItemName Replication protected item name. * @param options The options parameters. */ listByReplicationProtectedItems( - resourceName: string, resourceGroupName: string, + resourceName: string, fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/siteRecoveryManagementClient.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/siteRecoveryManagementClient.ts index b52ed00ae4fa..c2c544726350 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/siteRecoveryManagementClient.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/siteRecoveryManagementClient.ts @@ -31,6 +31,9 @@ import { ReplicationProtectedItemsImpl, RecoveryPointsImpl, TargetComputeSizesImpl, + ReplicationProtectionClustersImpl, + ClusterRecoveryPointsImpl, + ClusterRecoveryPointOperationsImpl, ReplicationProtectionContainerMappingsImpl, ReplicationRecoveryServicesProvidersImpl, ReplicationStorageClassificationsImpl, @@ -61,6 +64,9 @@ import { ReplicationProtectedItems, RecoveryPoints, TargetComputeSizes, + ReplicationProtectionClusters, + ClusterRecoveryPoints, + ClusterRecoveryPointOperations, ReplicationProtectionContainerMappings, ReplicationRecoveryServicesProviders, ReplicationStorageClassifications, @@ -108,7 +114,7 @@ export class SiteRecoveryManagementClient extends coreClient.ServiceClient { credential: credentials, }; - const packageDetails = `azsdk-js-arm-recoveryservices-siterecovery/5.2.1`; + const packageDetails = `azsdk-js-arm-recoveryservices-siterecovery/5.3.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -162,7 +168,7 @@ export class SiteRecoveryManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-08-01"; + this.apiVersion = options.apiVersion || "2025-02-01"; this.operations = new OperationsImpl(this); this.replicationAlertSettings = new ReplicationAlertSettingsImpl(this); this.replicationAppliances = new ReplicationAppliancesImpl(this); @@ -183,6 +189,12 @@ export class SiteRecoveryManagementClient extends coreClient.ServiceClient { this.replicationProtectedItems = new ReplicationProtectedItemsImpl(this); this.recoveryPoints = new RecoveryPointsImpl(this); this.targetComputeSizes = new TargetComputeSizesImpl(this); + this.replicationProtectionClusters = new ReplicationProtectionClustersImpl( + this, + ); + this.clusterRecoveryPoints = new ClusterRecoveryPointsImpl(this); + this.clusterRecoveryPointOperations = + new ClusterRecoveryPointOperationsImpl(this); this.replicationProtectionContainerMappings = new ReplicationProtectionContainerMappingsImpl(this); this.replicationRecoveryServicesProviders = @@ -249,6 +261,9 @@ export class SiteRecoveryManagementClient extends coreClient.ServiceClient { replicationProtectedItems: ReplicationProtectedItems; recoveryPoints: RecoveryPoints; targetComputeSizes: TargetComputeSizes; + replicationProtectionClusters: ReplicationProtectionClusters; + clusterRecoveryPoints: ClusterRecoveryPoints; + clusterRecoveryPointOperations: ClusterRecoveryPointOperations; replicationProtectionContainerMappings: ReplicationProtectionContainerMappings; replicationRecoveryServicesProviders: ReplicationRecoveryServicesProviders; replicationStorageClassifications: ReplicationStorageClassifications; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/test/sampleTest.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/test/sampleTest.ts new file mode 100644 index 000000000000..a1cf7c25afd2 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/test/sampleTest.ts @@ -0,0 +1,40 @@ +/* + * 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, +} from "@azure-tools/test-recorder"; + +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 (ctx) => { + recorder = new Recorder(ctx); + await recorder.start(recorderOptions); + }); + + afterEach(async () => { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/test/snippets.spec.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/test/snippets.spec.ts index a10012d769ff..d1b88d6d13fc 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/test/snippets.spec.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/test/snippets.spec.ts @@ -1,15 +1,26 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. +/* + * 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 { SiteRecoveryManagementClient } from "../src/index.js"; -import { DefaultAzureCredential, InteractiveBrowserCredential } from "@azure/identity"; +import { + DefaultAzureCredential, + InteractiveBrowserCredential, +} from "@azure/identity"; import { setLogLevel } from "@azure/logger"; import { describe, it } from "vitest"; describe("snippets", () => { it("ReadmeSampleCreateClient_Node", async () => { const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const client = new SiteRecoveryManagementClient(new DefaultAzureCredential(), subscriptionId); + const client = new SiteRecoveryManagementClient( + new DefaultAzureCredential(), + subscriptionId, + ); }); it("ReadmeSampleCreateClient_Browser", async () => { diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/tsconfig.json b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/tsconfig.json index 19ceb382b521..59ea83c046bf 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/tsconfig.json +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/tsconfig.json @@ -3,11 +3,8 @@ { "path": "./tsconfig.src.json" }, - { - "path": "./tsconfig.samples.json" - }, { "path": "./tsconfig.test.json" } ] -} +} \ No newline at end of file