diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index c0273a5d41d0..6cb27ef483c2 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1870,6 +1870,22 @@ packages: engines: {node: '>=14'} dev: false + /@rollup/plugin-commonjs/21.1.0_rollup@2.79.1: + resolution: {integrity: sha512-6ZtHx3VHIp2ReNNDxHjuUml6ur+WcQ28N1yHgCQwsbNkQg2suhxGMDQGJOn/KuDxKtd1xuZP5xSTwBA4GQ8hbA==} + engines: {node: '>= 8.0.0'} + peerDependencies: + rollup: ^2.38.3 + dependencies: + '@rollup/pluginutils': 3.1.0_rollup@2.79.1 + commondir: 1.0.1 + estree-walker: 2.0.2 + glob: 7.2.3 + is-reference: 1.2.1 + magic-string: 0.25.9 + resolve: 1.22.1 + rollup: 2.79.1 + dev: false + /@rollup/plugin-commonjs/24.0.1_rollup@2.79.1: resolution: {integrity: sha512-15LsiWRZk4eOGqvrJyu3z3DaBu5BhXIMeWnijSRvd8irrrg9SHpQ1pH+BUK4H6Z9wL9yOxZJMTLU+Au86XHxow==} engines: {node: '>=14.0.0'} @@ -1903,6 +1919,15 @@ packages: rollup: 2.79.1 dev: false + /@rollup/plugin-json/4.1.0_rollup@2.79.1: + resolution: {integrity: sha512-yfLbTdNS6amI/2OpmbiBoW12vngr5NW2jCJVZSBEz+H5KfUJZ2M7sDjk0U6GOOdCWFVScShte29o9NezJ53TPw==} + peerDependencies: + rollup: ^1.20.0 || ^2.0.0 + dependencies: + '@rollup/pluginutils': 3.1.0_rollup@2.79.1 + rollup: 2.79.1 + dev: false + /@rollup/plugin-json/6.0.0_rollup@2.79.1: resolution: {integrity: sha512-i/4C5Jrdr1XUarRhVu27EEwjt4GObltD7c+MkCIpO2QIbojw8MUs+CCTqOphQi3Qtg1FLmYt+l+6YeoIf51J7w==} engines: {node: '>=14.0.0'} @@ -1916,6 +1941,17 @@ packages: rollup: 2.79.1 dev: false + /@rollup/plugin-multi-entry/4.1.0_rollup@2.79.1: + resolution: {integrity: sha512-nellK5pr50W0JA2+bDJbG8F79GBP802J40YRoC0wyfpTAeAn5mJ4eaFiB/MN+YoX9hgb/6RJoZl9leDjZnUFKw==} + engines: {node: '>=10.0.0'} + peerDependencies: + rollup: ^1.20.0 || ^2.0.0 + dependencies: + '@rollup/plugin-virtual': 2.1.0_rollup@2.79.1 + matched: 5.0.1 + rollup: 2.79.1 + dev: false + /@rollup/plugin-multi-entry/6.0.0_rollup@2.79.1: resolution: {integrity: sha512-msBgVncGQwh/ahxeP/rc8MXVZNBOjoVCsBuDk6uqyFzDv/SZN7jksfAsu6DJ2w4r5PaBX3/OXOjVPeCxya2waA==} engines: {node: '>=14.0.0'} @@ -1979,6 +2015,15 @@ packages: typescript: 4.8.4 dev: false + /@rollup/plugin-virtual/2.1.0_rollup@2.79.1: + resolution: {integrity: sha512-CPPAtlKT53HFqC8jFHb/V5WErpU8Hrq2TyCR0A7kPQMlF2wNUf0o1xuAc+Qxj8NCZM0Z3Yvl+FbUXfJjVWqDwA==} + engines: {node: '>=8.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0 + dependencies: + rollup: 2.79.1 + dev: false + /@rollup/plugin-virtual/3.0.1_rollup@2.79.1: resolution: {integrity: sha512-fK8O0IL5+q+GrsMLuACVNk2x21g3yaw+sG2qn16SnUd3IlBsQyvWxLMGHmCmXRMecPjGRSZ/1LmZB4rjQm68og==} engines: {node: '>=14.0.0'} @@ -3895,7 +3940,7 @@ packages: dependencies: semver: 7.3.8 shelljs: 0.8.5 - typescript: 5.1.0-dev.20230303 + typescript: 5.1.0-dev.20230306 dev: false /ecdsa-sig-formatter/1.0.11: @@ -6245,6 +6290,12 @@ packages: lodash: 4.17.21 dev: false + /magic-string/0.25.9: + resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==} + dependencies: + sourcemap-codec: 1.4.8 + dev: false + /magic-string/0.27.0: resolution: {integrity: sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==} engines: {node: '>=12'} @@ -7993,6 +8044,11 @@ packages: engines: {node: '>= 8'} dev: false + /sourcemap-codec/1.4.8: + resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==} + deprecated: Please use @jridgewell/sourcemap-codec instead + dev: false + /spawn-command/0.0.2-1: resolution: {integrity: sha512-n98l9E2RMSJ9ON1AKisHzz7V42VDiBQGY6PB1BwRglz99wpVsSuGzQ+jOi6lFXBGVTCrRpltvjm+/XA+tpeJrg==} dev: false @@ -8603,8 +8659,8 @@ packages: hasBin: true dev: false - /typescript/5.1.0-dev.20230303: - resolution: {integrity: sha512-aDocbsouqGny1M8Kjxn8svqDUy5xoINdPpuh4t0UDoitl6nsHZ61suF1HLfMj9P/A1Bl6Tpjq6GTaRtrElq4aQ==} + /typescript/5.1.0-dev.20230306: + resolution: {integrity: sha512-CqMT7nhnVNKfaT1giN+UjFUSqN2gBI17K8JoT+I1LgPU/G9oYypuG+91pz8Kjk/GW/BG685khZ0YfFrADj+KPQ==} engines: {node: '>=4.2.0'} hasBin: true dev: false @@ -13815,15 +13871,16 @@ packages: dev: false file:projects/arm-recoveryservices-siterecovery.tgz: - resolution: {integrity: sha512-IGMO+QtvLt07lDewpwFAo3hLawRykkr4Nog7JuQiZQMFwz2PvQ8LU9H3Szr6g5D0k9YK+bc2f3PJXHKCt4qreQ==, tarball: file:projects/arm-recoveryservices-siterecovery.tgz} + resolution: {integrity: sha512-mfNKI4Mm8j/vOnJxVToi0ikMoCjkJp9lLrFKaWcXNa1LrFK1Dk65BTE+uJfhzVGNmws4GP+bKkjvW3hrFaB5yQ==, tarball: file:projects/arm-recoveryservices-siterecovery.tgz} name: '@rush-temp/arm-recoveryservices-siterecovery' version: 0.0.0 dependencies: + '@azure-tools/test-recorder': 2.0.0 '@azure/identity': 2.1.0 '@microsoft/api-extractor': 7.34.4_@types+node@14.18.36 - '@rollup/plugin-commonjs': 24.0.1_rollup@2.79.1 - '@rollup/plugin-json': 6.0.0_rollup@2.79.1 - '@rollup/plugin-multi-entry': 6.0.0_rollup@2.79.1 + '@rollup/plugin-commonjs': 21.1.0_rollup@2.79.1 + '@rollup/plugin-json': 4.1.0_rollup@2.79.1 + '@rollup/plugin-multi-entry': 4.1.0_rollup@2.79.1 '@rollup/plugin-node-resolve': 13.3.0_rollup@2.79.1 '@types/chai': 4.3.4 '@types/node': 14.18.36 @@ -13838,6 +13895,7 @@ packages: typescript: 4.8.4 uglify-js: 3.17.4 transitivePeerDependencies: + - encoding - supports-color dev: false @@ -19079,7 +19137,7 @@ packages: dev: false file:projects/storage-file-datalake.tgz: - resolution: {integrity: sha512-H+1+hOCQ8fol8EJZj522Y1j1k5pE72nNkgDzgnP+gUOIh0KlNsHDjHCh2+keKPNZcq6fU1joESBcwUbHoZ7QKw==, tarball: file:projects/storage-file-datalake.tgz} + resolution: {integrity: sha512-j0GlRFQAMsaZtTRs/8ELgzWmFWmVFdDYapY24LS1PvoJJ7GUSuz7FzphXTH0Ko9sSeFvtZJniYo2n4X7EBSiqA==, tarball: file:projects/storage-file-datalake.tgz} name: '@rush-temp/storage-file-datalake' version: 0.0.0 dependencies: diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/CHANGELOG.md b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/CHANGELOG.md index 369c2941b7d7..2f7f326319bf 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/CHANGELOG.md +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/CHANGELOG.md @@ -1,15 +1,26 @@ # Release History + +## 5.1.0 (2023-03-06) + +**Features** -## 5.0.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added Interface A2AFabricSpecificLocationDetails + - Added Interface VMwareCbtSecurityProfileProperties + - Added Type Alias SecurityType + - Interface AzureFabricSpecificDetails has a new optional parameter locationDetails + - Interface FabricQueryParameter has a new optional parameter extendedLocationMappings + - Interface FabricQueryParameter has a new optional parameter locationDetails + - Interface VMwareCbtEnableMigrationInput has a new optional parameter confidentialVmKeyVaultId + - Interface VMwareCbtEnableMigrationInput has a new optional parameter targetVmSecurityProfile + - Interface VMwareCbtMigrateInput has a new optional parameter osUpgradeVersion + - Interface VMwareCbtMigrationDetails has a new optional parameter confidentialVmKeyVaultId + - Interface VMwareCbtMigrationDetails has a new optional parameter osName + - Interface VMwareCbtMigrationDetails has a new optional parameter supportedOSVersions + - Interface VMwareCbtMigrationDetails has a new optional parameter targetVmSecurityProfile + - Interface VMwareCbtProtectionContainerMappingDetails has a new optional parameter excludedSkus + - Interface VMwareCbtTestMigrateInput has a new optional parameter osUpgradeVersion + - Added Enum KnownSecurityType + ## 5.0.1 (2023-01-05) **Migration Guide** diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/LICENSE b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/LICENSE index 5d1d36e0af80..3a1d9b6f24f7 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/LICENSE +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 Microsoft +Copyright (c) 2023 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/_meta.json b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/_meta.json index 904e9a13e3ad..53443a327244 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/_meta.json +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/_meta.json @@ -1,8 +1,8 @@ { - "commit": "1be09531e4c6edeafde41d6562371566d39669e8", + "commit": "539c2fd5385a294c167e1c058f127c11bbc2ac31", "readme": "specification/recoveryservicessiterecovery/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\recoveryservicessiterecovery\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.4 --generate-sample=true", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/recoveryservicessiterecovery/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.5", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.5.2", - "use": "@autorest/typescript@6.0.0-rc.4" + "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", + "use": "@autorest/typescript@6.0.0-rc.5" } \ 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 cffa347e7aae..1d85d35a03d9 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/package.json +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for SiteRecoveryManagementClient.", - "version": "5.0.2", + "version": "5.1.0", "engines": { "node": ">=14.0.0" }, @@ -29,9 +29,9 @@ "types": "./types/arm-recoveryservices-siterecovery.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.31.1", - "@rollup/plugin-commonjs": "^24.0.0", - "@rollup/plugin-json": "^6.0.0", - "@rollup/plugin-multi-entry": "^6.0.0", + "@rollup/plugin-commonjs": "^21.0.1", + "@rollup/plugin-json": "^4.1.0", + "@rollup/plugin-multi-entry": "^4.1.0", "@rollup/plugin-node-resolve": "^13.1.3", "mkdirp": "^1.0.4", "rollup": "^2.66.1", @@ -40,7 +40,7 @@ "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", - "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-recorder": "^2.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", "@types/chai": "^4.2.8", @@ -110,13 +110,5 @@ } ] }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-recoveryservices-siterecovery?view=azure-node-preview" - } -} + "autoPublish": true +} \ 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 119a0fa21a78..0ce18743010f 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 @@ -135,6 +135,22 @@ export interface A2AExtendedLocationDetails { recoveryExtendedLocation?: ExtendedLocation; } +// @public +export interface A2AFabricSpecificLocationDetails { + initialPrimaryExtendedLocation?: ExtendedLocation; + initialPrimaryFabricLocation?: string; + initialPrimaryZone?: string; + initialRecoveryExtendedLocation?: ExtendedLocation; + initialRecoveryFabricLocation?: string; + initialRecoveryZone?: string; + primaryExtendedLocation?: ExtendedLocation; + primaryFabricLocation?: string; + primaryZone?: string; + recoveryExtendedLocation?: ExtendedLocation; + recoveryFabricLocation?: string; + recoveryZone?: string; +} + // @public export interface A2APolicyCreationInput extends PolicyProviderSpecificInput { appConsistentFrequencyInMinutes?: number; @@ -637,6 +653,7 @@ export interface AzureFabricSpecificDetails extends FabricSpecificDetails { extendedLocations?: A2AExtendedLocationDetails[]; instanceType: "Azure"; location?: string; + locationDetails?: A2AFabricSpecificLocationDetails[]; zones?: A2AZoneDetails[]; } @@ -1107,8 +1124,10 @@ export interface FabricProperties { export interface FabricQueryParameter { biosId?: string; discoveryType?: string; + extendedLocationMappings?: string; fetchAgentDetails?: string; fqdn?: string; + locationDetails?: string; osType?: string; zoneToZoneMappings?: string; } @@ -3156,6 +3175,13 @@ export enum KnownRpInMageRecoveryPointType { LatestTime = "LatestTime" } +// @public +export enum KnownSecurityType { + ConfidentialVM = "ConfidentialVM", + None = "None", + TrustedLaunch = "TrustedLaunch" +} + // @public export enum KnownSetMultiVmSyncStatus { Disable = "Disable", @@ -6109,6 +6135,9 @@ export interface ScriptActionTaskDetails extends TaskTypeDetails { path?: string; } +// @public +export type SecurityType = string; + // @public export interface ServiceError { activityId?: string; @@ -6829,6 +6858,7 @@ export interface VMwareCbtDiskInput { // @public export interface VMwareCbtEnableMigrationInput extends EnableMigrationProviderSpecificInput { + confidentialVmKeyVaultId?: string; dataMoverRunAsAccountId: string; disksToInclude: VMwareCbtDiskInput[]; instanceType: "VMwareCbt"; @@ -6854,6 +6884,7 @@ export interface VMwareCbtEnableMigrationInput extends EnableMigrationProviderSp targetResourceGroupId: string; targetSubnetName?: string; targetVmName?: string; + targetVmSecurityProfile?: VMwareCbtSecurityProfileProperties; targetVmSize?: string; targetVmTags?: { [propertyName: string]: string; @@ -6872,11 +6903,13 @@ export interface VMwareCbtEventDetails extends EventProviderSpecificDetails { // @public export interface VMwareCbtMigrateInput extends MigrateProviderSpecificInput { instanceType: "VMwareCbt"; + osUpgradeVersion?: string; performShutdown: string; } // @public export interface VMwareCbtMigrationDetails extends MigrationProviderSpecificSettings { + confidentialVmKeyVaultId?: string; readonly dataMoverRunAsAccountId?: string; readonly firmwareType?: string; readonly initialSeedingProgressPercentage?: number; @@ -6887,6 +6920,7 @@ export interface VMwareCbtMigrationDetails extends MigrationProviderSpecificSett licenseType?: string; readonly migrationProgressPercentage?: number; readonly migrationRecoveryPointId?: string; + readonly osName?: string; readonly osType?: string; performAutoResync?: string; protectedDisks?: VMwareCbtProtectedDiskDetails[]; @@ -6902,6 +6936,7 @@ export interface VMwareCbtMigrationDetails extends MigrationProviderSpecificSett readonly snapshotRunAsAccountId?: string; sqlServerLicenseType?: string; readonly storageAccountId?: string; + supportedOSVersions?: string[]; targetAvailabilitySetId?: string; targetAvailabilityZone?: string; targetBootDiagnosticsStorageAccountId?: string; @@ -6917,6 +6952,7 @@ export interface VMwareCbtMigrationDetails extends MigrationProviderSpecificSett targetProximityPlacementGroupId?: string; targetResourceGroupId?: string; targetVmName?: string; + targetVmSecurityProfile?: VMwareCbtSecurityProfileProperties; targetVmSize?: string; targetVmTags?: { [propertyName: string]: string; @@ -6992,6 +7028,7 @@ export interface VMwareCbtProtectedDiskDetails { // @public export interface VMwareCbtProtectionContainerMappingDetails extends ProtectionContainerMappingProviderSpecificDetails { + excludedSkus?: string[]; instanceType: "VMwareCbt"; readonly keyVaultId?: string; readonly keyVaultUri?: string; @@ -7016,10 +7053,20 @@ export interface VMwareCbtResyncInput extends ResyncProviderSpecificInput { skipCbtReset: string; } +// @public +export interface VMwareCbtSecurityProfileProperties { + isTargetVmConfidentialEncryptionEnabled?: string; + isTargetVmIntegrityMonitoringEnabled?: string; + isTargetVmSecureBootEnabled?: string; + isTargetVmTpmEnabled?: string; + targetVmSecurityType?: SecurityType; +} + // @public export interface VMwareCbtTestMigrateInput extends TestMigrateProviderSpecificInput { instanceType: "VMwareCbt"; networkId: string; + osUpgradeVersion?: string; recoveryPointId: string; vmNics?: VMwareCbtNicInput[]; } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/index.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/index.ts index e9bcad71727f..94c4f1eb4fae 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/index.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/index.ts @@ -2872,6 +2872,34 @@ export interface A2AExtendedLocationDetails { recoveryExtendedLocation?: ExtendedLocation; } +/** ExtendedLocation details data. */ +export interface A2AFabricSpecificLocationDetails { + /** The initial source zone info. */ + initialPrimaryZone?: string; + /** The initial target zone info. */ + initialRecoveryZone?: string; + /** The initial primary ExtendedLocation. */ + initialPrimaryExtendedLocation?: ExtendedLocation; + /** The initial recovery ExtendedLocation. */ + initialRecoveryExtendedLocation?: ExtendedLocation; + /** Initial primary fabric location info. */ + initialPrimaryFabricLocation?: string; + /** The initial recovery fabric location info. */ + initialRecoveryFabricLocation?: string; + /** Source zone info. */ + primaryZone?: string; + /** The target zone info. */ + recoveryZone?: string; + /** The primary ExtendedLocation. */ + primaryExtendedLocation?: ExtendedLocation; + /** The recovery ExtendedLocation. */ + recoveryExtendedLocation?: ExtendedLocation; + /** Primary fabric location info. */ + primaryFabricLocation?: string; + /** The recovery fabric location info. */ + recoveryFabricLocation?: string; +} + /** A2A protected disk details. */ export interface A2AProtectedDiskDetails { /** The disk uri. */ @@ -3296,6 +3324,10 @@ export interface EventQueryParameter { export interface FabricQueryParameter { /** A value indicating whether the zone to zone mappings are to be returned. */ zoneToZoneMappings?: string; + /** A value indicating whether the Extended Location mappings are to be returned. */ + extendedLocationMappings?: string; + /** A value indicating whether the location details are to be returned. */ + locationDetails?: string; /** A value indicating whether the agent details are to be fetched. */ fetchAgentDetails?: string; /** The BIOS Id to be used for fetching agent details. */ @@ -5064,6 +5096,20 @@ export interface VMwareCbtDiskInput { diskEncryptionSetId?: string; } +/** VMwareCbt security profile input. */ +export interface VMwareCbtSecurityProfileProperties { + /** The target VM security type. */ + targetVmSecurityType?: SecurityType; + /** A value indicating whether secure boot to be enabled. */ + isTargetVmSecureBootEnabled?: string; + /** A value indicating whether trusted platform module to be enabled. */ + isTargetVmTpmEnabled?: string; + /** A value indicating whether integrity monitoring to be enabled. */ + isTargetVmIntegrityMonitoringEnabled?: string; + /** A value indicating whether confidential compute encryption to be enabled. */ + isTargetVmConfidentialEncryptionEnabled?: string; +} + /** VMwareCbt protected disk details. */ export interface VMwareCbtProtectedDiskDetails { /** @@ -5574,6 +5620,8 @@ export interface AzureFabricSpecificDetails extends FabricSpecificDetails { zones?: A2AZoneDetails[]; /** The ExtendedLocations. */ extendedLocations?: A2AExtendedLocationDetails[]; + /** The location details. */ + locationDetails?: A2AFabricSpecificLocationDetails[]; } /** HyperVSite fabric specific details. */ @@ -5927,6 +5975,11 @@ export interface VMwareCbtMigrationDetails * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly osType?: string; + /** + * The name of the OS on the VM. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly osName?: string; /** * The firmware type. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5973,6 +6026,10 @@ export interface VMwareCbtMigrationDetails targetAvailabilityZone?: string; /** The target proximity placement group Id. */ targetProximityPlacementGroupId?: string; + /** The confidential VM key vault Id for ADE installation. */ + confidentialVmKeyVaultId?: string; + /** The target VM security profile. */ + targetVmSecurityProfile?: VMwareCbtSecurityProfileProperties; /** The target boot diagnostics storage account ARM Id. */ targetBootDiagnosticsStorageAccountId?: string; /** The target VM tags. */ @@ -6053,6 +6110,8 @@ export interface VMwareCbtMigrationDetails seedDiskTags?: { [propertyName: string]: string }; /** The tags for the target disks. */ targetDiskTags?: { [propertyName: string]: string }; + /** List of supported inplace OS Upgrade versions. */ + supportedOSVersions?: string[]; } /** VMwareCbt specific enable migration input. */ @@ -6094,6 +6153,10 @@ export interface VMwareCbtEnableMigrationInput targetAvailabilityZone?: string; /** The target proximity placement group ARM Id. */ targetProximityPlacementGroupId?: string; + /** The confidential VM key vault Id for ADE installation. */ + confidentialVmKeyVaultId?: string; + /** The target VM security profile. */ + targetVmSecurityProfile?: VMwareCbtSecurityProfileProperties; /** The target boot diagnostics storage account ARM Id. */ targetBootDiagnosticsStorageAccountId?: string; /** A value indicating whether auto resync is to be done. */ @@ -6155,6 +6218,8 @@ export interface VMwareCbtMigrateInput extends MigrateProviderSpecificInput { instanceType: "VMwareCbt"; /** A value indicating whether VM is to be shutdown. */ performShutdown: string; + /** A value indicating the inplace OS Upgrade version. */ + osUpgradeVersion?: string; } /** VMwareCbt specific resume replication input. */ @@ -6185,6 +6250,8 @@ export interface VMwareCbtTestMigrateInput networkId: string; /** The list of NIC details. */ vmNics?: VMwareCbtNicInput[]; + /** A value indicating the inplace OS Upgrade version. */ + osUpgradeVersion?: string; } /** Single Host fabric provider specific VM settings. */ @@ -7924,6 +7991,8 @@ export interface VMwareCbtProtectionContainerMappingDetails * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly roleSizeToNicCountMap?: { [propertyName: string]: number }; + /** The SKUs to be excluded. */ + excludedSkus?: string[]; } /** A2A container mapping input. */ @@ -10025,6 +10094,27 @@ 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 {} diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/mappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/mappers.ts index 310b5195eb01..0ad81c12ffba 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/mappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/mappers.ts @@ -7349,6 +7349,91 @@ export const A2AExtendedLocationDetails: coreClient.CompositeMapper = { } }; +export const A2AFabricSpecificLocationDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "A2AFabricSpecificLocationDetails", + modelProperties: { + initialPrimaryZone: { + serializedName: "initialPrimaryZone", + type: { + name: "String" + } + }, + initialRecoveryZone: { + serializedName: "initialRecoveryZone", + type: { + name: "String" + } + }, + initialPrimaryExtendedLocation: { + serializedName: "initialPrimaryExtendedLocation", + type: { + name: "Composite", + className: "ExtendedLocation" + } + }, + initialRecoveryExtendedLocation: { + serializedName: "initialRecoveryExtendedLocation", + type: { + name: "Composite", + className: "ExtendedLocation" + } + }, + initialPrimaryFabricLocation: { + serializedName: "initialPrimaryFabricLocation", + type: { + name: "String" + } + }, + initialRecoveryFabricLocation: { + serializedName: "initialRecoveryFabricLocation", + type: { + name: "String" + } + }, + primaryZone: { + serializedName: "primaryZone", + type: { + name: "String" + } + }, + recoveryZone: { + serializedName: "recoveryZone", + type: { + name: "String" + } + }, + primaryExtendedLocation: { + serializedName: "primaryExtendedLocation", + type: { + name: "Composite", + className: "ExtendedLocation" + } + }, + recoveryExtendedLocation: { + serializedName: "recoveryExtendedLocation", + type: { + name: "Composite", + className: "ExtendedLocation" + } + }, + primaryFabricLocation: { + serializedName: "primaryFabricLocation", + type: { + name: "String" + } + }, + recoveryFabricLocation: { + serializedName: "recoveryFabricLocation", + type: { + name: "String" + } + } + } + } +}; + export const A2AProtectedDiskDetails: coreClient.CompositeMapper = { type: { name: "Composite", @@ -8532,6 +8617,18 @@ export const FabricQueryParameter: coreClient.CompositeMapper = { name: "String" } }, + extendedLocationMappings: { + serializedName: "extendedLocationMappings", + type: { + name: "String" + } + }, + locationDetails: { + serializedName: "locationDetails", + type: { + name: "String" + } + }, fetchAgentDetails: { serializedName: "fetchAgentDetails", type: { @@ -12045,6 +12142,45 @@ export const VMwareCbtDiskInput: coreClient.CompositeMapper = { } }; +export const VMwareCbtSecurityProfileProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VMwareCbtSecurityProfileProperties", + modelProperties: { + targetVmSecurityType: { + serializedName: "targetVmSecurityType", + type: { + name: "String" + } + }, + isTargetVmSecureBootEnabled: { + serializedName: "isTargetVmSecureBootEnabled", + type: { + name: "String" + } + }, + isTargetVmTpmEnabled: { + serializedName: "isTargetVmTpmEnabled", + type: { + name: "String" + } + }, + isTargetVmIntegrityMonitoringEnabled: { + serializedName: "isTargetVmIntegrityMonitoringEnabled", + type: { + name: "String" + } + }, + isTargetVmConfidentialEncryptionEnabled: { + serializedName: "isTargetVmConfidentialEncryptionEnabled", + type: { + name: "String" + } + } + } + } +}; + export const VMwareCbtProtectedDiskDetails: coreClient.CompositeMapper = { type: { name: "Composite", @@ -13249,6 +13385,18 @@ export const AzureFabricSpecificDetails: coreClient.CompositeMapper = { } } } + }, + locationDetails: { + serializedName: "locationDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "A2AFabricSpecificLocationDetails" + } + } + } } } } @@ -14082,6 +14230,13 @@ export const VMwareCbtMigrationDetails: coreClient.CompositeMapper = { name: "String" } }, + osName: { + serializedName: "osName", + readOnly: true, + type: { + name: "String" + } + }, firmwareType: { serializedName: "firmwareType", readOnly: true, @@ -14172,6 +14327,19 @@ export const VMwareCbtMigrationDetails: coreClient.CompositeMapper = { name: "String" } }, + confidentialVmKeyVaultId: { + serializedName: "confidentialVmKeyVaultId", + type: { + name: "String" + } + }, + targetVmSecurityProfile: { + serializedName: "targetVmSecurityProfile", + type: { + name: "Composite", + className: "VMwareCbtSecurityProfileProperties" + } + }, targetBootDiagnosticsStorageAccountId: { serializedName: "targetBootDiagnosticsStorageAccountId", type: { @@ -14331,6 +14499,17 @@ export const VMwareCbtMigrationDetails: coreClient.CompositeMapper = { name: "Dictionary", value: { type: { name: "String" } } } + }, + supportedOSVersions: { + serializedName: "supportedOSVersions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } @@ -14460,6 +14639,19 @@ export const VMwareCbtEnableMigrationInput: coreClient.CompositeMapper = { name: "String" } }, + confidentialVmKeyVaultId: { + serializedName: "confidentialVmKeyVaultId", + type: { + name: "String" + } + }, + targetVmSecurityProfile: { + serializedName: "targetVmSecurityProfile", + type: { + name: "Composite", + className: "VMwareCbtSecurityProfileProperties" + } + }, targetBootDiagnosticsStorageAccountId: { serializedName: "targetBootDiagnosticsStorageAccountId", type: { @@ -14651,6 +14843,12 @@ export const VMwareCbtMigrateInput: coreClient.CompositeMapper = { type: { name: "String" } + }, + osUpgradeVersion: { + serializedName: "osUpgradeVersion", + type: { + name: "String" + } } } } @@ -14732,6 +14930,12 @@ export const VMwareCbtTestMigrateInput: coreClient.CompositeMapper = { } } } + }, + osUpgradeVersion: { + serializedName: "osUpgradeVersion", + type: { + name: "String" + } } } } @@ -19322,6 +19526,17 @@ export const VMwareCbtProtectionContainerMappingDetails: coreClient.CompositeMap name: "Dictionary", value: { type: { name: "Number" } } } + }, + excludedSkus: { + serializedName: "excludedSkus", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/parameters.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/parameters.ts index c740483d22df..a6ffa2904243 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/parameters.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/parameters.ts @@ -92,7 +92,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-10-01", + defaultValue: "2023-02-01", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/siteRecoveryManagementClient.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/siteRecoveryManagementClient.ts index fa3e9f053620..ebad183c7d3f 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/siteRecoveryManagementClient.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/siteRecoveryManagementClient.ts @@ -108,7 +108,7 @@ export class SiteRecoveryManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-recoveryservices-siterecovery/5.0.2`; + const packageDetails = `azsdk-js-arm-recoveryservices-siterecovery/5.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -161,7 +161,7 @@ export class SiteRecoveryManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-10-01"; + this.apiVersion = options.apiVersion || "2023-02-01"; this.operations = new OperationsImpl(this); this.replicationAlertSettings = new ReplicationAlertSettingsImpl(this); this.replicationAppliances = new ReplicationAppliancesImpl(this); 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..25aeb3ebcc36 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/tsconfig.json b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/tsconfig.json index b23a972336c8..3e6ae96443f3 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/tsconfig.json +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-recoveryservices-siterecovery": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"