diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 99321d0907bc..f34a01b0d6c3 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1,7 +1,7 @@ lockfileVersion: '6.0' settings: - autoInstallPeers: true + autoInstallPeers: false excludeLinksFromLockfile: false dependencies: @@ -4495,7 +4495,7 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.3.0-dev.20231030 + typescript: 5.4.0-dev.20231106 dev: false /eastasianwidth@0.2.0: @@ -9261,8 +9261,8 @@ packages: hasBin: true dev: false - /typescript@5.3.0-dev.20231030: - resolution: {integrity: sha512-azWrF0lAiu8cBHNr6yq3RDkU/DtQScvT48ea3Ngq6oXJ/GPO0n96wCFSRQA5UbZlVVf3fAAqsUfvOdohRbrPVg==} + /typescript@5.4.0-dev.20231106: + resolution: {integrity: sha512-Uxjjt7meOHOSXpQJkiObTPUXfQKqSkdcMQOV+ZAjo3U1w/D/1Qah5Pdg0x/jt/fIA6laCNWLogS+QiaT5HOohw==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -14665,20 +14665,22 @@ packages: dev: false file:projects/arm-recoveryservicesbackup.tgz: - resolution: {integrity: sha512-kcDzZ8zZXD0c9hnnEDdECXEw+kvmB0NntVRhBW2k//EtS3iAFUwoRGGpkj9mqpnn81MEPX0lmCV1f+1aeGpgow==, tarball: file:projects/arm-recoveryservicesbackup.tgz} + resolution: {integrity: sha512-6MZDuw+BO+POa9YF/yq+GeSFx+Kvf0zmvVAWel0Vtao8l6vEu+u1rOUw1atK4dPqhF+43Cm5ryoF9BcvjL59VQ==, tarball: file:projects/arm-recoveryservicesbackup.tgz} name: '@rush-temp/arm-recoveryservicesbackup' version: 0.0.0 dependencies: '@azure/identity': 3.3.2 '@microsoft/api-extractor': 7.38.0(@types/node@18.18.7) '@types/chai': 4.3.9 + '@types/mocha': 10.0.3 '@types/node': 18.18.7 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.3.1 + esm: 3.2.25 mkdirp: 2.1.6 mocha: 10.2.0 - rimraf: 3.0.2 + rimraf: 5.0.5 ts-node: 10.9.1(@types/node@18.18.7)(typescript@5.2.2) tslib: 2.6.2 typescript: 5.2.2 @@ -20375,7 +20377,7 @@ packages: dev: false file:projects/storage-blob-changefeed.tgz: - resolution: {integrity: sha512-2LtIcl6t12irIaBaBSP/ytxkJA5VSRJ2RUg08UJEi/NVLHhjpx+NQQn/a/ebeAwpa2DefdSkfHRhgh7zn8Qzzg==, tarball: file:projects/storage-blob-changefeed.tgz} + resolution: {integrity: sha512-nBVNUHVbjsSyKfoA2uJNvG+jlJEW9Oq12K9Oha1C6GVY1rZhEpcWrkob0RJe/sCDdrMo0MBUnvL7+PkUsvhR8w==, tarball: file:projects/storage-blob-changefeed.tgz} name: '@rush-temp/storage-blob-changefeed' version: 0.0.0 dependencies: diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/CHANGELOG.md b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/CHANGELOG.md index 4bb7dda0143f..aafff93b9d82 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/CHANGELOG.md +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/CHANGELOG.md @@ -1,15 +1,43 @@ # Release History + +## 12.0.0-beta.1 (2023-11-07) + +**Features** -## 11.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added Interface AzureVmWorkloadSAPHanaHSR + - Interface PrivateLinkServiceConnectionState has a new optional parameter actionRequired -### Other Changes +**Breaking Changes** + - Removed operation group DeletedProtectionContainers + - Interface AzureFileShareRecoveryPoint no longer has parameter recoveryPointProperties + - Interface AzureVmWorkloadProtectableItem no longer has parameter isProtectable + - Interface AzureVmWorkloadProtectedItem no longer has parameter nodesList + - Interface AzureVmWorkloadSQLAvailabilityGroupProtectableItem no longer has parameter nodesList + - Interface AzureWorkloadRecoveryPoint no longer has parameter recoveryPointProperties + - Interface BackupResourceVaultConfig no longer has parameter softDeleteRetentionPeriodInDays + - Interface BmsrpQueryObject no longer has parameter includeSoftDeletedRP + - Interface DistributedNodesInfo no longer has parameter sourceResourceId + - Interface GenericRecoveryPoint no longer has parameter recoveryPointProperties + - Interface IaasVMRecoveryPoint no longer has parameter isPrivateAccessEnabledOnAnyDisk + - Interface IaasVMRecoveryPoint no longer has parameter recoveryPointProperties + - Interface IaasVMRecoveryPoint no longer has parameter securityType + - Interface IaasVMRestoreRequest no longer has parameter extendedLocation + - Interface IaasVMRestoreRequest no longer has parameter securedVMDetails + - Interface IaasVMRestoreRequest no longer has parameter targetDiskNetworkAccessSettings + - Interface InquiryValidation no longer has parameter protectableItemCount + - Interface PrivateEndpointConnection no longer has parameter groupIds + - Interface PrivateLinkServiceConnectionState no longer has parameter actionsRequired + - Interface ProtectedItem no longer has parameter softDeleteRetentionPeriodInDays + - Type of parameter protectableItemType of interface AzureVmWorkloadProtectableItem is changed from "AzureVmWorkloadProtectableItem" | "SAPAseSystem" | "SAPHanaDatabase" | "SAPHanaSystem" | "SAPHanaDBInstance" | "HanaHSRContainer" | "SQLAvailabilityGroupContainer" | "SQLDataBase" | "SQLInstance" to "AzureVmWorkloadProtectableItem" | "SAPAseSystem" | "SAPHanaDatabase" | "SAPHanaSystem" | "SAPHanaDBInstance" | "SAPHanaHSR" | "SQLAvailabilityGroupContainer" | "SQLDataBase" | "SQLInstance" + - Type of parameter protectableItemType of interface WorkloadProtectableItem is changed from "AzureFileShare" | "IaaSVMProtectableItem" | "Microsoft.ClassicCompute/virtualMachines" | "Microsoft.Compute/virtualMachines" | "AzureVmWorkloadProtectableItem" | "SAPAseSystem" | "SAPHanaDatabase" | "SAPHanaSystem" | "SAPHanaDBInstance" | "HanaHSRContainer" | "SQLAvailabilityGroupContainer" | "SQLDataBase" | "SQLInstance" to "AzureFileShare" | "IaaSVMProtectableItem" | "Microsoft.ClassicCompute/virtualMachines" | "Microsoft.Compute/virtualMachines" | "AzureVmWorkloadProtectableItem" | "SAPAseSystem" | "SAPHanaDatabase" | "SAPHanaSystem" | "SAPHanaDBInstance" | "SAPHanaHSR" | "SQLAvailabilityGroupContainer" | "SQLDataBase" | "SQLInstance" + - Class RecoveryServicesBackupClient no longer has parameter deletedProtectionContainers + - Removed Enum KnownVaultSubResourceType + - Enum KnownProtectedItemState no longer has value BackupsSuspended + - Enum KnownProtectionState no longer has value BackupsSuspended + - Enum KnownSoftDeleteFeatureState no longer has value AlwaysON + + ## 11.0.0 (2023-09-01) **Features** @@ -323,4 +351,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md index 5fe6649da6b0..2b38e8bb6871 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md @@ -6,7 +6,7 @@ Open API 2.0 Specs for Azure RecoveryServices Backup service [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/recoveryservicesbackup/arm-recoveryservicesbackup) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-recoveryservicesbackup) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-recoveryservicesbackup) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-recoveryservicesbackup?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/_meta.json b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/_meta.json index 8440b201b76d..2b68fba86758 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/_meta.json +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/_meta.json @@ -1,8 +1,8 @@ { - "commit": "95c0363e4cae8756c6a33b58add67776db427bbc", + "commit": "f7528ebceccf0c3c41d239903f7fc6ce22454a38", "readme": "specification/recoveryservicesbackup/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\\recoveryservicesbackup\\resource-manager\\readme.md --use=@autorest/typescript@6.0.8 --generate-sample=true", - "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", - "use": "@autorest/typescript@6.0.8" + "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/recoveryservicesbackup/resource-manager/readme.md --use=@autorest/typescript@^6.0.11", + "repository_url": "https://github.com/openapi-env-test/azure-rest-api-specs.git", + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", + "use": "@autorest/typescript@^6.0.11" } \ No newline at end of file diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/package.json b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/package.json index f6cd6c6e16d7..cfa381892244 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/package.json +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for RecoveryServicesBackupClient.", - "version": "11.0.1", + "version": "12.0.0-beta.1", "engines": { "node": ">=18.0.0" }, @@ -32,18 +32,19 @@ "mkdirp": "^2.1.2", "typescript": "~5.2.0", "uglify-js": "^3.4.9", - "rimraf": "^3.0.0", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^3.3.0", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "esm": "^3.2.18", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "@azure/dev-tool": "^1.0.0", - "@azure/arm-recoveryservices": "^5.2.0", "ts-node": "^10.0.0" }, "repository": { @@ -78,7 +79,7 @@ "extract-api": "api-extractor run --local", "lint": "echo skipped", "audit": "echo skipped", - "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", "build:test": "echo skipped", @@ -106,13 +107,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/recoveryservicesbackup/arm-recoveryservicesbackup", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-recoveryservicesbackup?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/recoveryservicesbackup/arm-recoveryservicesbackup" +} \ No newline at end of file diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/review/arm-recoveryservicesbackup.api.md b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/review/arm-recoveryservicesbackup.api.md index 6ea563464896..645b25e87f76 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/review/arm-recoveryservicesbackup.api.md +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/review/arm-recoveryservicesbackup.api.md @@ -85,7 +85,6 @@ export interface AzureFileShareProvisionILRRequest extends ILRRequest { export interface AzureFileShareRecoveryPoint extends RecoveryPoint { fileShareSnapshotUri?: string; objectType: "AzureFileShareRecoveryPoint"; - recoveryPointProperties?: RecoveryPointProperties; recoveryPointSizeInGB?: number; recoveryPointTime?: Date; recoveryPointType?: string; @@ -377,18 +376,17 @@ export type AzureVmWorkloadItemUnion = AzureVmWorkloadItem | AzureVmWorkloadSAPA export interface AzureVmWorkloadProtectableItem extends WorkloadProtectableItem { isAutoProtectable?: boolean; isAutoProtected?: boolean; - isProtectable?: boolean; parentName?: string; parentUniqueName?: string; prebackupvalidation?: PreBackupValidation; - protectableItemType: "AzureVmWorkloadProtectableItem" | "SAPAseSystem" | "SAPHanaDatabase" | "SAPHanaSystem" | "SAPHanaDBInstance" | "HanaHSRContainer" | "SQLAvailabilityGroupContainer" | "SQLDataBase" | "SQLInstance"; + protectableItemType: "AzureVmWorkloadProtectableItem" | "SAPAseSystem" | "SAPHanaDatabase" | "SAPHanaSystem" | "SAPHanaDBInstance" | "SAPHanaHSR" | "SQLAvailabilityGroupContainer" | "SQLDataBase" | "SQLInstance"; serverName?: string; subinquireditemcount?: number; subprotectableitemcount?: number; } // @public (undocumented) -export type AzureVmWorkloadProtectableItemUnion = AzureVmWorkloadProtectableItem | AzureVmWorkloadSAPAseSystemProtectableItem | AzureVmWorkloadSAPHanaDatabaseProtectableItem | AzureVmWorkloadSAPHanaSystemProtectableItem | AzureVmWorkloadSAPHanaDBInstance | AzureVmWorkloadSAPHanaHSRProtectableItem | AzureVmWorkloadSQLAvailabilityGroupProtectableItem | AzureVmWorkloadSQLDatabaseProtectableItem | AzureVmWorkloadSQLInstanceProtectableItem; +export type AzureVmWorkloadProtectableItemUnion = AzureVmWorkloadProtectableItem | AzureVmWorkloadSAPAseSystemProtectableItem | AzureVmWorkloadSAPHanaDatabaseProtectableItem | AzureVmWorkloadSAPHanaSystemProtectableItem | AzureVmWorkloadSAPHanaDBInstance | AzureVmWorkloadSAPHanaHSR | AzureVmWorkloadSQLAvailabilityGroupProtectableItem | AzureVmWorkloadSQLDatabaseProtectableItem | AzureVmWorkloadSQLInstanceProtectableItem; // @public export interface AzureVmWorkloadProtectedItem extends ProtectedItem { @@ -400,7 +398,6 @@ export interface AzureVmWorkloadProtectedItem extends ProtectedItem { lastBackupErrorDetail?: ErrorDetail; lastBackupStatus?: LastBackupStatus; lastBackupTime?: Date; - nodesList?: DistributedNodesInfo[]; parentName?: string; parentType?: string; protectedItemDataSourceId?: string; @@ -480,8 +477,8 @@ export interface AzureVmWorkloadSAPHanaDBInstanceProtectedItem extends AzureVmWo } // @public -export interface AzureVmWorkloadSAPHanaHSRProtectableItem extends AzureVmWorkloadProtectableItem { - protectableItemType: "HanaHSRContainer"; +export interface AzureVmWorkloadSAPHanaHSR extends AzureVmWorkloadProtectableItem { + protectableItemType: "SAPHanaHSR"; } // @public @@ -496,7 +493,6 @@ export interface AzureVmWorkloadSAPHanaSystemWorkloadItem extends AzureVmWorkloa // @public export interface AzureVmWorkloadSQLAvailabilityGroupProtectableItem extends AzureVmWorkloadProtectableItem { - nodesList?: DistributedNodesInfo[]; protectableItemType: "SQLAvailabilityGroupContainer"; } @@ -622,7 +618,6 @@ export interface AzureWorkloadRecoveryPoint extends RecoveryPoint { recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo; }; - recoveryPointProperties?: RecoveryPointProperties; recoveryPointTierDetails?: RecoveryPointTierInformationV2[]; recoveryPointTimeInUTC?: Date; type?: RestorePointType; @@ -1090,7 +1085,6 @@ export interface BackupResourceVaultConfig { isSoftDeleteFeatureStateEditable?: boolean; resourceGuardOperationRequests?: string[]; softDeleteFeatureState?: SoftDeleteFeatureState; - softDeleteRetentionPeriodInDays?: number; storageModelType?: StorageType; storageType?: StorageType; storageTypeState?: StorageTypeState; @@ -1284,7 +1278,6 @@ export interface BMSRefreshContainersQueryObject { export interface BmsrpQueryObject { endDate?: Date; extendedInfo?: boolean; - includeSoftDeletedRP?: boolean; moveReadyRPOnly?: boolean; restorePointQueryType?: RestorePointQueryType; startDate?: Date; @@ -1417,26 +1410,6 @@ export type DayOfWeek = "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursda // @public export type DedupState = string; -// @public -export interface DeletedProtectionContainers { - list(resourceGroupName: string, vaultName: string, options?: DeletedProtectionContainersListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface DeletedProtectionContainersListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DeletedProtectionContainersListNextResponse = ProtectionContainerResourceList; - -// @public -export interface DeletedProtectionContainersListOptionalParams extends coreClient.OperationOptions { - filter?: string; -} - -// @public -export type DeletedProtectionContainersListResponse = ProtectionContainerResourceList; - // @public (undocumented) export interface DiskExclusionProperties { diskLunList?: number[]; @@ -1455,7 +1428,6 @@ export interface DiskInformation { export interface DistributedNodesInfo { errorDetail?: ErrorDetail; nodeName?: string; - sourceResourceId?: string; status?: string; } @@ -1600,12 +1572,6 @@ export interface ExportJobsOperationResultsGetOptionalParams extends coreClient. // @public export type ExportJobsOperationResultsGetResponse = OperationResultInfoBaseResource; -// @public -export interface ExtendedLocation { - name?: string; - type?: string; -} - // @public export interface ExtendedProperties { diskExclusionProperties?: DiskExclusionProperties; @@ -1677,7 +1643,6 @@ export interface GenericRecoveryPoint extends RecoveryPoint { friendlyName?: string; objectType: "GenericRecoveryPoint"; recoveryPointAdditionalInfo?: string; - recoveryPointProperties?: RecoveryPointProperties; recoveryPointTime?: Date; recoveryPointType?: string; } @@ -1757,7 +1722,6 @@ export type IaaSVMProtectableItemUnion = IaaSVMProtectableItem | AzureIaaSClassi export interface IaasVMRecoveryPoint extends RecoveryPoint { isInstantIlrSessionActive?: boolean; isManagedVirtualMachine?: boolean; - isPrivateAccessEnabledOnAnyDisk?: boolean; isSourceVMEncrypted?: boolean; keyAndSecret?: KeyAndSecretDetails; objectType: "IaasVMRecoveryPoint"; @@ -1768,11 +1732,9 @@ export interface IaasVMRecoveryPoint extends RecoveryPoint { recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo; }; - recoveryPointProperties?: RecoveryPointProperties; recoveryPointTierDetails?: RecoveryPointTierInformationV2[]; recoveryPointTime?: Date; recoveryPointType?: string; - securityType?: string; sourceVMStorageType?: string; virtualMachineSize?: string; zones?: string[]; @@ -1784,7 +1746,6 @@ export interface IaasVMRestoreRequest extends RestoreRequest { createNewCloudService?: boolean; diskEncryptionSetId?: string; encryptionDetails?: EncryptionDetails; - extendedLocation?: ExtendedLocation; identityBasedRestoreDetails?: IdentityBasedRestoreDetails; identityInfo?: IdentityInfo; objectType: "IaasVMRestoreRequest" | "IaasVMRestoreWithRehydrationRequest"; @@ -1794,11 +1755,9 @@ export interface IaasVMRestoreRequest extends RestoreRequest { region?: string; restoreDiskLunList?: number[]; restoreWithManagedDisks?: boolean; - securedVMDetails?: SecuredVMDetails; sourceResourceId?: string; storageAccountId?: string; subnetId?: string; - targetDiskNetworkAccessSettings?: TargetDiskNetworkAccessSettings; targetDomainNameId?: string; targetResourceGroupId?: string; targetVirtualMachineId?: string; @@ -1857,7 +1816,6 @@ export type InquiryStatus = string; export interface InquiryValidation { readonly additionalDetail?: string; errorDetail?: ErrorDetail; - readonly protectableItemCount?: Record; status?: string; } @@ -2307,7 +2265,6 @@ export enum KnownProtectedItemHealthStatus { // @public export enum KnownProtectedItemState { - BackupsSuspended = "BackupsSuspended", Invalid = "Invalid", IRPending = "IRPending", Protected = "Protected", @@ -2328,7 +2285,6 @@ export enum KnownProtectionIntentItemType { // @public export enum KnownProtectionState { - BackupsSuspended = "BackupsSuspended", Invalid = "Invalid", IRPending = "IRPending", Protected = "Protected", @@ -2443,7 +2399,6 @@ export enum KnownScheduleRunType { // @public export enum KnownSoftDeleteFeatureState { - AlwaysON = "AlwaysON", Disabled = "Disabled", Enabled = "Enabled", Invalid = "Invalid" @@ -2513,13 +2468,6 @@ export enum KnownValidationStatus { Succeeded = "Succeeded" } -// @public -export enum KnownVaultSubResourceType { - AzureBackup = "AzureBackup", - AzureBackupSecondary = "AzureBackup_secondary", - AzureSiteRecovery = "AzureSiteRecovery" -} - // @public export enum KnownWorkloadItemType { Invalid = "Invalid", @@ -2914,7 +2862,6 @@ export interface PrivateEndpoint { // @public export interface PrivateEndpointConnection { - groupIds?: VaultSubResourceType[]; privateEndpoint?: PrivateEndpoint; privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; provisioningState?: ProvisioningState; @@ -2973,7 +2920,7 @@ export interface PrivateEndpointOperations { // @public export interface PrivateLinkServiceConnectionState { - actionsRequired?: string; + actionRequired?: string; description?: string; status?: PrivateEndpointConnectionStatus; } @@ -3040,7 +2987,6 @@ export interface ProtectedItem { policyName?: string; protectedItemType: "AzureFileShareProtectedItem" | "AzureIaaSVMProtectedItem" | "Microsoft.ClassicCompute/virtualMachines" | "Microsoft.Compute/virtualMachines" | "Microsoft.Sql/servers/databases" | "AzureVmWorkloadProtectedItem" | "AzureVmWorkloadSAPAseDatabase" | "AzureVmWorkloadSAPHanaDatabase" | "AzureVmWorkloadSAPHanaDBInstance" | "AzureVmWorkloadSQLDatabase" | "DPMProtectedItem" | "GenericProtectedItem" | "MabFileFolderProtectedItem"; resourceGuardOperationRequests?: string[]; - softDeleteRetentionPeriodInDays?: number; sourceResourceId?: string; readonly workloadType?: DataSourceType; } @@ -3387,13 +3333,6 @@ export interface RecoveryPointMoveReadinessInfo { isReadyForMove?: boolean; } -// @public -export interface RecoveryPointProperties { - expiryTime?: string; - isSoftDeleted?: boolean; - ruleName?: string; -} - // @public export interface RecoveryPointRehydrationInfo { rehydrationPriority?: RehydrationPriority; @@ -3527,8 +3466,6 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient { // (undocumented) bMSPrepareDataMoveOperationResult: BMSPrepareDataMoveOperationResult; // (undocumented) - deletedProtectionContainers: DeletedProtectionContainers; - // (undocumented) exportJobsOperationResults: ExportJobsOperationResults; // (undocumented) featureSupport: FeatureSupport; @@ -3790,11 +3727,6 @@ export type SchedulePolicyUnion = SchedulePolicy | LogSchedulePolicy | LongTermS // @public export type ScheduleRunType = string; -// @public -export interface SecuredVMDetails { - securedVMOsDiskEncryptionSetId?: string; -} - // @public export interface SecurityPinBase { resourceGuardOperationRequests?: string[]; @@ -3891,15 +3823,6 @@ export interface TargetAFSRestoreInfo { targetResourceId?: string; } -// @public -export type TargetDiskNetworkAccessOption = "SameAsOnSourceDisks" | "EnablePrivateAccessForAllDisks" | "EnablePublicAccessForAllDisks"; - -// @public -export interface TargetDiskNetworkAccessSettings { - targetDiskAccessId?: string; - targetDiskNetworkAccessOption?: TargetDiskNetworkAccessOption; -} - // @public export interface TargetRestoreInfo { containerId?: string; @@ -4056,9 +3979,6 @@ export interface VaultStorageConfigOperationResultResponse { // @public (undocumented) export type VaultStorageConfigOperationResultResponseUnion = VaultStorageConfigOperationResultResponse | PrepareDataMoveResponse; -// @public -export type VaultSubResourceType = string; - // @public export interface WeeklyRetentionFormat { daysOfTheWeek?: DayOfWeek[]; @@ -4118,7 +4038,7 @@ export type WorkloadItemUnion = WorkloadItem | AzureVmWorkloadItemUnion; export interface WorkloadProtectableItem { backupManagementType?: string; friendlyName?: string; - protectableItemType: "AzureFileShare" | "IaaSVMProtectableItem" | "Microsoft.ClassicCompute/virtualMachines" | "Microsoft.Compute/virtualMachines" | "AzureVmWorkloadProtectableItem" | "SAPAseSystem" | "SAPHanaDatabase" | "SAPHanaSystem" | "SAPHanaDBInstance" | "HanaHSRContainer" | "SQLAvailabilityGroupContainer" | "SQLDataBase" | "SQLInstance"; + protectableItemType: "AzureFileShare" | "IaaSVMProtectableItem" | "Microsoft.ClassicCompute/virtualMachines" | "Microsoft.Compute/virtualMachines" | "AzureVmWorkloadProtectableItem" | "SAPAseSystem" | "SAPHanaDatabase" | "SAPHanaSystem" | "SAPHanaDBInstance" | "SAPHanaHSR" | "SQLAvailabilityGroupContainer" | "SQLDataBase" | "SQLInstance"; protectionState?: ProtectionStatus; workloadType?: string; } diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts index 10f305f27b8c..b9545092e42d 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts @@ -168,7 +168,7 @@ export type AzureVmWorkloadProtectableItemUnion = | AzureVmWorkloadSAPHanaDatabaseProtectableItem | AzureVmWorkloadSAPHanaSystemProtectableItem | AzureVmWorkloadSAPHanaDBInstance - | AzureVmWorkloadSAPHanaHSRProtectableItem + | AzureVmWorkloadSAPHanaHSR | AzureVmWorkloadSQLAvailabilityGroupProtectableItem | AzureVmWorkloadSQLDatabaseProtectableItem | AzureVmWorkloadSQLInstanceProtectableItem; @@ -490,11 +490,9 @@ export interface BackupResourceVaultConfig { enhancedSecurityState?: EnhancedSecurityState; /** Soft Delete feature state */ softDeleteFeatureState?: SoftDeleteFeatureState; - /** Soft delete retention period in days */ - softDeleteRetentionPeriodInDays?: number; /** ResourceGuard Operation Requests */ resourceGuardOperationRequests?: string[]; - /** This flag is no longer in use. Please use 'softDeleteFeatureState' to set the soft delete state for the vault */ + /** Is soft delete feature state editable */ isSoftDeleteFeatureStateEditable?: boolean; } @@ -515,8 +513,6 @@ export interface PrivateEndpointConnection { provisioningState?: ProvisioningState; /** Gets or sets private endpoint associated with the private endpoint connection */ privateEndpoint?: PrivateEndpoint; - /** Group Ids for the Private Endpoint */ - groupIds?: VaultSubResourceType[]; /** Gets or sets private link service connection state */ privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; } @@ -534,7 +530,7 @@ export interface PrivateLinkServiceConnectionState { /** Gets or sets description */ description?: string; /** Gets or sets actions required */ - actionsRequired?: string; + actionRequired?: string; } /** An error response from the Container Instance service. */ @@ -702,8 +698,6 @@ export interface ProtectedItem { isArchiveEnabled?: boolean; /** Name of the policy used for protection */ policyName?: string; - /** Soft delete retention period in days */ - softDeleteRetentionPeriodInDays?: number; } /** Base class for backup copies. Workload-specific backup copies are derived from this class. */ @@ -978,7 +972,7 @@ export interface WorkloadProtectableItem { | "SAPHanaDatabase" | "SAPHanaSystem" | "SAPHanaDBInstance" - | "HanaHSRContainer" + | "SAPHanaHSR" | "SQLAvailabilityGroupContainer" | "SQLDataBase" | "SQLInstance"; @@ -1101,16 +1095,6 @@ export interface AzureFileshareProtectedItemExtendedInfo { readonly resourceStateSyncTime?: Date; } -/** Properties of Recovery Point */ -export interface RecoveryPointProperties { - /** Expiry time of Recovery Point in UTC. */ - expiryTime?: string; - /** Rule name tagged on Recovery Point that governs life cycle */ - ruleName?: string; - /** Bool to indicate whether RP is in soft delete state or not */ - isSoftDeleted?: boolean; -} - /** Restore file specs like file path, type and target folder path info. */ export interface RestoreFileSpecs { /** Source File/Folder path */ @@ -1353,21 +1337,6 @@ export interface AzureVmWorkloadProtectedItemExtendedInfo { recoveryModel?: string; } -/** This is used to represent the various nodes of the distributed container. */ -export interface DistributedNodesInfo { - /** Name of the node under a distributed container. */ - nodeName?: string; - /** - * Status of this Node. - * Failed | Succeeded - */ - status?: string; - /** Error Details if the Status is non-success. */ - errorDetail?: ErrorDetail; - /** ARM resource id of the node */ - sourceResourceId?: string; -} - /** Azure storage specific error information */ export interface AzureWorkloadErrorInfo { /** Error code. */ @@ -1487,8 +1456,6 @@ export interface BmsrpQueryObject { extendedInfo?: boolean; /** Whether the RP can be moved to another tier */ moveReadyRPOnly?: boolean; - /** Flag to indicate whether Soft Deleted RPs should be included/excluded from result. */ - includeSoftDeletedRP?: boolean; } /** Disk information */ @@ -1696,28 +1663,6 @@ export interface RecoveryPointDiskConfiguration { excludedDiskList?: DiskInformation[]; } -/** The extended location of Recovery point where VM was present. */ -export interface ExtendedLocation { - /** Name of the extended location. */ - name?: string; - /** Type of the extended location. Possible values include: 'EdgeZone' */ - type?: string; -} - -/** Restore request parameters for Secured VMs */ -export interface SecuredVMDetails { - /** Gets or Sets Disk Encryption Set Id for Secured VM OS Disk */ - securedVMOsDiskEncryptionSetId?: string; -} - -/** Specifies target network access settings for disks of VM to be restored. */ -export interface TargetDiskNetworkAccessSettings { - /** Network access settings to be used for restored disks */ - targetDiskNetworkAccessOption?: TargetDiskNetworkAccessOption; - /** Gets or sets the ARM resource ID of the target disk access to be used when TargetDiskNetworkAccessOption is set to TargetDiskNetworkAccessOption.UseNew */ - targetDiskAccessId?: string; -} - /** Filters to list the jobs. */ export interface JobQueryObject { /** Status of the job. */ @@ -1931,11 +1876,19 @@ export interface InquiryValidation { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly additionalDetail?: string; +} + +/** This is used to represent the various nodes of the distributed container. */ +export interface DistributedNodesInfo { + /** Name of the node under a distributed container. */ + nodeName?: string; /** - * Dictionary to store the count of ProtectableItems with key POType. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Status of this Node. + * Failed | Succeeded */ - readonly protectableItemCount?: Record; + status?: string; + /** Error Details if the Status is non-success. */ + errorDetail?: ErrorDetail; } /** Pre-backup validation for Azure VM Workload provider. */ @@ -2519,8 +2472,6 @@ export interface AzureVmWorkloadProtectedItem extends ProtectedItem { extendedInfo?: AzureVmWorkloadProtectedItemExtendedInfo; /** Health details of different KPIs */ kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; - /** List of the nodes in case of distributed container. */ - nodesList?: DistributedNodesInfo[]; } /** Additional information on Backup engine specific backup item. */ @@ -2587,8 +2538,6 @@ export interface AzureFileShareRecoveryPoint extends RecoveryPoint { fileShareSnapshotUri?: string; /** Contains recovery point size */ recoveryPointSizeInGB?: number; - /** Properties of Recovery Point */ - recoveryPointProperties?: RecoveryPointProperties; } /** Workload specific recovery point, specifically encapsulates full/diff recovery point */ @@ -2611,8 +2560,6 @@ export interface AzureWorkloadRecoveryPoint extends RecoveryPoint { recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo; }; - /** Properties of Recovery Point */ - recoveryPointProperties?: RecoveryPointProperties; } /** Generic backup copy. */ @@ -2627,8 +2574,6 @@ export interface GenericRecoveryPoint extends RecoveryPoint { recoveryPointTime?: Date; /** Additional information associated with this backup copy. */ recoveryPointAdditionalInfo?: string; - /** Properties of Recovery Point */ - recoveryPointProperties?: RecoveryPointProperties; } /** IaaS VM workload specific backup copy. */ @@ -2667,12 +2612,6 @@ export interface IaasVMRecoveryPoint extends RecoveryPoint { recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo; }; - /** Security Type of the Disk */ - securityType?: string; - /** Properties of Recovery Point */ - recoveryPointProperties?: RecoveryPointProperties; - /** This flag denotes if any of the disks in the VM are using Private access network setting */ - isPrivateAccessEnabledOnAnyDisk?: boolean; } /** AzureFileShare Restore Request */ @@ -2787,15 +2726,6 @@ export interface IaasVMRestoreRequest extends RestoreRequest { identityInfo?: IdentityInfo; /** IaaS VM workload specific restore details for restores using managed identity. */ identityBasedRestoreDetails?: IdentityBasedRestoreDetails; - /** - * Target extended location where the VM should be restored, - * should be null if restore is to be done in public cloud - */ - extendedLocation?: ExtendedLocation; - /** Stores Secured VM Details */ - securedVMDetails?: SecuredVMDetails; - /** Specifies target network access settings for disks of VM to be restored, */ - targetDiskNetworkAccessSettings?: TargetDiskNetworkAccessSettings; } /** Azure VM (Mercury) workload-specific backup policy. */ @@ -3293,7 +3223,7 @@ export interface AzureVmWorkloadProtectableItem | "SAPHanaDatabase" | "SAPHanaSystem" | "SAPHanaDBInstance" - | "HanaHSRContainer" + | "SAPHanaHSR" | "SQLAvailabilityGroupContainer" | "SQLDataBase" | "SQLInstance"; @@ -3316,8 +3246,6 @@ export interface AzureVmWorkloadProtectableItem subprotectableitemcount?: number; /** Pre-backup validation for protectable objects */ prebackupvalidation?: PreBackupValidation; - /** Indicates if item is protectable */ - isProtectable?: boolean; } /** Azure IaaS VM workload-specific Health Details. */ @@ -3648,11 +3576,11 @@ export interface AzureVmWorkloadSAPHanaDBInstance protectableItemType: "SAPHanaDBInstance"; } -/** Azure VM workload-specific protectable item representing HANA HSR. */ -export interface AzureVmWorkloadSAPHanaHSRProtectableItem +/** Azure VM workload-specific protectable item representing SAP HANA Dbinstance. */ +export interface AzureVmWorkloadSAPHanaHSR extends AzureVmWorkloadProtectableItem { /** Polymorphic discriminator, which specifies the different types this object can be */ - protectableItemType: "HanaHSRContainer"; + protectableItemType: "SAPHanaHSR"; } /** Azure VM workload-specific protectable item representing SQL Availability Group. */ @@ -3660,8 +3588,6 @@ export interface AzureVmWorkloadSQLAvailabilityGroupProtectableItem extends AzureVmWorkloadProtectableItem { /** Polymorphic discriminator, which specifies the different types this object can be */ protectableItemType: "SQLAvailabilityGroupContainer"; - /** List of the nodes in case of distributed container. */ - nodesList?: DistributedNodesInfo[]; } /** Azure VM workload-specific protectable item representing SQL Database. */ @@ -4131,9 +4057,7 @@ export enum KnownSoftDeleteFeatureState { /** Enabled */ Enabled = "Enabled", /** Disabled */ - Disabled = "Disabled", - /** AlwaysON */ - AlwaysON = "AlwaysON" + Disabled = "Disabled" } /** @@ -4143,8 +4067,7 @@ export enum KnownSoftDeleteFeatureState { * ### Known values supported by the service * **Invalid** \ * **Enabled** \ - * **Disabled** \ - * **AlwaysON** + * **Disabled** */ export type SoftDeleteFeatureState = string; @@ -4250,27 +4173,6 @@ export enum KnownProvisioningState { */ export type ProvisioningState = string; -/** Known values of {@link VaultSubResourceType} that the service accepts. */ -export enum KnownVaultSubResourceType { - /** AzureBackup */ - AzureBackup = "AzureBackup", - /** AzureBackupSecondary */ - AzureBackupSecondary = "AzureBackup_secondary", - /** AzureSiteRecovery */ - AzureSiteRecovery = "AzureSiteRecovery" -} - -/** - * Defines values for VaultSubResourceType. \ - * {@link KnownVaultSubResourceType} can be used interchangeably with VaultSubResourceType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AzureBackup** \ - * **AzureBackup_secondary** \ - * **AzureSiteRecovery** - */ -export type VaultSubResourceType = string; - /** Known values of {@link PrivateEndpointConnectionStatus} that the service accepts. */ export enum KnownPrivateEndpointConnectionStatus { /** Pending */ @@ -4398,9 +4300,7 @@ export enum KnownProtectionState { /** ProtectionStopped */ ProtectionStopped = "ProtectionStopped", /** ProtectionPaused */ - ProtectionPaused = "ProtectionPaused", - /** BackupsSuspended */ - BackupsSuspended = "BackupsSuspended" + ProtectionPaused = "ProtectionPaused" } /** @@ -4413,8 +4313,7 @@ export enum KnownProtectionState { * **Protected** \ * **ProtectionError** \ * **ProtectionStopped** \ - * **ProtectionPaused** \ - * **BackupsSuspended** + * **ProtectionPaused** */ export type ProtectionState = string; @@ -4728,9 +4627,7 @@ export enum KnownProtectedItemState { /** ProtectionStopped */ ProtectionStopped = "ProtectionStopped", /** ProtectionPaused */ - ProtectionPaused = "ProtectionPaused", - /** BackupsSuspended */ - BackupsSuspended = "BackupsSuspended" + ProtectionPaused = "ProtectionPaused" } /** @@ -4743,8 +4640,7 @@ export enum KnownProtectedItemState { * **Protected** \ * **ProtectionError** \ * **ProtectionStopped** \ - * **ProtectionPaused** \ - * **BackupsSuspended** + * **ProtectionPaused** */ export type ProtectedItemState = string; @@ -5563,11 +5459,6 @@ export type DayOfWeek = | "Thursday" | "Friday" | "Saturday"; -/** Defines values for TargetDiskNetworkAccessOption. */ -export type TargetDiskNetworkAccessOption = - | "SameAsOnSourceDisks" - | "EnablePrivateAccessForAllDisks" - | "EnablePublicAccessForAllDisks"; /** Defines values for WeekOfMonth. */ export type WeekOfMonth = | "First" @@ -6189,23 +6080,6 @@ export interface BackupProtectionContainersListNextOptionalParams /** Contains response data for the listNext operation. */ export type BackupProtectionContainersListNextResponse = ProtectionContainerResourceList; -/** Optional parameters. */ -export interface DeletedProtectionContainersListOptionalParams - extends coreClient.OperationOptions { - /** OData filter options. */ - filter?: string; -} - -/** Contains response data for the list operation. */ -export type DeletedProtectionContainersListResponse = ProtectionContainerResourceList; - -/** Optional parameters. */ -export interface DeletedProtectionContainersListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type DeletedProtectionContainersListNextResponse = ProtectionContainerResourceList; - /** Optional parameters. */ export interface SecurityPINsGetOptionalParams extends coreClient.OperationOptions { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/mappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/mappers.ts index 11e617379f2a..f898657eb34a 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/mappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/mappers.ts @@ -750,12 +750,6 @@ export const BackupResourceVaultConfig: coreClient.CompositeMapper = { name: "String" } }, - softDeleteRetentionPeriodInDays: { - serializedName: "softDeleteRetentionPeriodInDays", - type: { - name: "Number" - } - }, resourceGuardOperationRequests: { serializedName: "resourceGuardOperationRequests", type: { @@ -834,17 +828,6 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { className: "PrivateEndpoint" } }, - groupIds: { - serializedName: "groupIds", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, privateLinkServiceConnectionState: { serializedName: "privateLinkServiceConnectionState", type: { @@ -888,8 +871,8 @@ export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { name: "String" } }, - actionsRequired: { - serializedName: "actionsRequired", + actionRequired: { + serializedName: "actionRequired", type: { name: "String" } @@ -1306,12 +1289,6 @@ export const ProtectedItem: coreClient.CompositeMapper = { type: { name: "String" } - }, - softDeleteRetentionPeriodInDays: { - serializedName: "softDeleteRetentionPeriodInDays", - type: { - name: "Number" - } } } } @@ -2379,33 +2356,6 @@ export const AzureFileshareProtectedItemExtendedInfo: coreClient.CompositeMapper } }; -export const RecoveryPointProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RecoveryPointProperties", - modelProperties: { - expiryTime: { - serializedName: "expiryTime", - type: { - name: "String" - } - }, - ruleName: { - serializedName: "ruleName", - type: { - name: "String" - } - }, - isSoftDeleted: { - serializedName: "isSoftDeleted", - type: { - name: "Boolean" - } - } - } - } -}; - export const RestoreFileSpecs: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3017,40 +2967,6 @@ export const AzureVmWorkloadProtectedItemExtendedInfo: coreClient.CompositeMappe } }; -export const DistributedNodesInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DistributedNodesInfo", - modelProperties: { - nodeName: { - serializedName: "nodeName", - type: { - name: "String" - } - }, - status: { - serializedName: "status", - type: { - name: "String" - } - }, - errorDetail: { - serializedName: "errorDetail", - type: { - name: "Composite", - className: "ErrorDetail" - } - }, - sourceResourceId: { - serializedName: "sourceResourceId", - type: { - name: "String" - } - } - } - } -}; - export const AzureWorkloadErrorInfo: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3409,12 +3325,6 @@ export const BmsrpQueryObject: coreClient.CompositeMapper = { type: { name: "Boolean" } - }, - includeSoftDeletedRP: { - serializedName: "includeSoftDeletedRP", - type: { - name: "Boolean" - } } } } @@ -4008,68 +3918,6 @@ export const RecoveryPointDiskConfiguration: coreClient.CompositeMapper = { } }; -export const ExtendedLocation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExtendedLocation", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; - -export const SecuredVMDetails: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecuredVMDetails", - modelProperties: { - securedVMOsDiskEncryptionSetId: { - serializedName: "securedVMOsDiskEncryptionSetId", - type: { - name: "String" - } - } - } - } -}; - -export const TargetDiskNetworkAccessSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TargetDiskNetworkAccessSettings", - modelProperties: { - targetDiskNetworkAccessOption: { - serializedName: "targetDiskNetworkAccessOption", - type: { - name: "Enum", - allowedValues: [ - "SameAsOnSourceDisks", - "EnablePrivateAccessForAllDisks", - "EnablePublicAccessForAllDisks" - ] - } - }, - targetDiskAccessId: { - serializedName: "targetDiskAccessId", - type: { - name: "String" - } - } - } - } -}; - export const JobQueryObject: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4731,13 +4579,33 @@ export const InquiryValidation: coreClient.CompositeMapper = { type: { name: "String" } + } + } + } +}; + +export const DistributedNodesInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DistributedNodesInfo", + modelProperties: { + nodeName: { + serializedName: "nodeName", + type: { + name: "String" + } }, - protectableItemCount: { - serializedName: "protectableItemCount", - readOnly: true, + status: { + serializedName: "status", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" + } + }, + errorDetail: { + serializedName: "errorDetail", + type: { + name: "Composite", + className: "ErrorDetail" } } } @@ -6327,18 +6195,6 @@ export const AzureVmWorkloadProtectedItem: coreClient.CompositeMapper = { type: { name: "Composite", className: "KPIResourceHealthDetails" } } } - }, - nodesList: { - serializedName: "nodesList", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DistributedNodesInfo" - } - } - } } } } @@ -6520,13 +6376,6 @@ export const AzureFileShareRecoveryPoint: coreClient.CompositeMapper = { type: { name: "Number" } - }, - recoveryPointProperties: { - serializedName: "recoveryPointProperties", - type: { - name: "Composite", - className: "RecoveryPointProperties" - } } } } @@ -6579,13 +6428,6 @@ export const AzureWorkloadRecoveryPoint: coreClient.CompositeMapper = { } } } - }, - recoveryPointProperties: { - serializedName: "recoveryPointProperties", - type: { - name: "Composite", - className: "RecoveryPointProperties" - } } } } @@ -6623,13 +6465,6 @@ export const GenericRecoveryPoint: coreClient.CompositeMapper = { type: { name: "String" } - }, - recoveryPointProperties: { - serializedName: "recoveryPointProperties", - type: { - name: "Composite", - className: "RecoveryPointProperties" - } } } } @@ -6752,25 +6587,6 @@ export const IaasVMRecoveryPoint: coreClient.CompositeMapper = { } } } - }, - securityType: { - serializedName: "securityType", - type: { - name: "String" - } - }, - recoveryPointProperties: { - serializedName: "recoveryPointProperties", - type: { - name: "Composite", - className: "RecoveryPointProperties" - } - }, - isPrivateAccessEnabledOnAnyDisk: { - serializedName: "isPrivateAccessEnabledOnAnyDisk", - type: { - name: "Boolean" - } } } } @@ -7030,27 +6846,6 @@ export const IaasVMRestoreRequest: coreClient.CompositeMapper = { name: "Composite", className: "IdentityBasedRestoreDetails" } - }, - extendedLocation: { - serializedName: "extendedLocation", - type: { - name: "Composite", - className: "ExtendedLocation" - } - }, - securedVMDetails: { - serializedName: "securedVMDetails", - type: { - name: "Composite", - className: "SecuredVMDetails" - } - }, - targetDiskNetworkAccessSettings: { - serializedName: "targetDiskNetworkAccessSettings", - type: { - name: "Composite", - className: "TargetDiskNetworkAccessSettings" - } } } } @@ -8483,12 +8278,6 @@ export const AzureVmWorkloadProtectableItem: coreClient.CompositeMapper = { name: "Composite", className: "PreBackupValidation" } - }, - isProtectable: { - serializedName: "isProtectable", - type: { - name: "Boolean" - } } } } @@ -9227,11 +9016,11 @@ export const AzureVmWorkloadSAPHanaDBInstance: coreClient.CompositeMapper = { } }; -export const AzureVmWorkloadSAPHanaHSRProtectableItem: coreClient.CompositeMapper = { - serializedName: "HanaHSRContainer", +export const AzureVmWorkloadSAPHanaHSR: coreClient.CompositeMapper = { + serializedName: "SAPHanaHSR", type: { name: "Composite", - className: "AzureVmWorkloadSAPHanaHSRProtectableItem", + className: "AzureVmWorkloadSAPHanaHSR", uberParent: "AzureVmWorkloadProtectableItem", polymorphicDiscriminator: AzureVmWorkloadProtectableItem.type.polymorphicDiscriminator, @@ -9250,19 +9039,7 @@ export const AzureVmWorkloadSQLAvailabilityGroupProtectableItem: coreClient.Comp polymorphicDiscriminator: AzureVmWorkloadProtectableItem.type.polymorphicDiscriminator, modelProperties: { - ...AzureVmWorkloadProtectableItem.type.modelProperties, - nodesList: { - serializedName: "nodesList", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DistributedNodesInfo" - } - } - } - } + ...AzureVmWorkloadProtectableItem.type.modelProperties } } }; @@ -9603,7 +9380,7 @@ export let discriminators = { "AzureVmWorkloadProtectableItem.SAPHanaDatabase": AzureVmWorkloadSAPHanaDatabaseProtectableItem, "AzureVmWorkloadProtectableItem.SAPHanaSystem": AzureVmWorkloadSAPHanaSystemProtectableItem, "AzureVmWorkloadProtectableItem.SAPHanaDBInstance": AzureVmWorkloadSAPHanaDBInstance, - "AzureVmWorkloadProtectableItem.HanaHSRContainer": AzureVmWorkloadSAPHanaHSRProtectableItem, + "AzureVmWorkloadProtectableItem.SAPHanaHSR": AzureVmWorkloadSAPHanaHSR, "AzureVmWorkloadProtectableItem.SQLAvailabilityGroupContainer": AzureVmWorkloadSQLAvailabilityGroupProtectableItem, "AzureVmWorkloadProtectableItem.SQLDataBase": AzureVmWorkloadSQLDatabaseProtectableItem, "AzureVmWorkloadProtectableItem.SQLInstance": AzureVmWorkloadSQLInstanceProtectableItem, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/parameters.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/parameters.ts index 1b3b73496e03..f28ab53d8d51 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/parameters.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/parameters.ts @@ -63,7 +63,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-04-01", + defaultValue: "2022-06-01-preview", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/deletedProtectionContainers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/deletedProtectionContainers.ts deleted file mode 100644 index 96541518f1b6..000000000000 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/deletedProtectionContainers.ts +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DeletedProtectionContainers } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { RecoveryServicesBackupClient } from "../recoveryServicesBackupClient"; -import { - ProtectionContainerResource, - DeletedProtectionContainersListNextOptionalParams, - DeletedProtectionContainersListOptionalParams, - DeletedProtectionContainersListResponse, - DeletedProtectionContainersListNextResponse -} from "../models"; - -/// -/** Class containing DeletedProtectionContainers operations. */ -export class DeletedProtectionContainersImpl - implements DeletedProtectionContainers { - private readonly client: RecoveryServicesBackupClient; - - /** - * Initialize a new instance of the class DeletedProtectionContainers class. - * @param client Reference to the service client - */ - constructor(client: RecoveryServicesBackupClient) { - this.client = client; - } - - /** - * Lists the soft deleted containers registered to Recovery Services Vault. - * @param resourceGroupName The name of the resource group where the recovery services vault is - * present. - * @param vaultName The name of the recovery services vault. - * @param options The options parameters. - */ - public list( - resourceGroupName: string, - vaultName: string, - options?: DeletedProtectionContainersListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceGroupName, vaultName, 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, - vaultName, - options, - settings - ); - } - }; - } - - private async *listPagingPage( - resourceGroupName: string, - vaultName: string, - options?: DeletedProtectionContainersListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: DeletedProtectionContainersListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(resourceGroupName, vaultName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - vaultName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - resourceGroupName: string, - vaultName: string, - options?: DeletedProtectionContainersListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - vaultName, - options - )) { - yield* page; - } - } - - /** - * Lists the soft deleted containers registered to Recovery Services Vault. - * @param resourceGroupName The name of the resource group where the recovery services vault is - * present. - * @param vaultName The name of the recovery services vault. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - vaultName: string, - options?: DeletedProtectionContainersListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, vaultName, options }, - listOperationSpec - ); - } - - /** - * ListNext - * @param resourceGroupName The name of the resource group where the recovery services vault is - * present. - * @param vaultName 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, - vaultName: string, - nextLink: string, - options?: DeletedProtectionContainersListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, vaultName, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupDeletedProtectionContainers", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ProtectionContainerResourceList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion, Parameters.filter], - urlParameters: [ - Parameters.$host, - Parameters.vaultName, - Parameters.resourceGroupName, - Parameters.subscriptionId - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ProtectionContainerResourceList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.vaultName, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts index 2437070aadd2..154cc42aeb56 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts @@ -50,7 +50,6 @@ export * from "./backupOperationStatuses"; export * from "./protectionPolicyOperationStatuses"; export * from "./backupProtectableItems"; export * from "./backupProtectionContainers"; -export * from "./deletedProtectionContainers"; export * from "./securityPINs"; export * from "./recoveryPointsRecommendedForMove"; export * from "./resourceGuardProxies"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operationsInterfaces/deletedProtectionContainers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operationsInterfaces/deletedProtectionContainers.ts deleted file mode 100644 index b68304bb20dc..000000000000 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operationsInterfaces/deletedProtectionContainers.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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 { - ProtectionContainerResource, - DeletedProtectionContainersListOptionalParams -} from "../models"; - -/// -/** Interface representing a DeletedProtectionContainers. */ -export interface DeletedProtectionContainers { - /** - * Lists the soft deleted containers registered to Recovery Services Vault. - * @param resourceGroupName The name of the resource group where the recovery services vault is - * present. - * @param vaultName The name of the recovery services vault. - * @param options The options parameters. - */ - list( - resourceGroupName: string, - vaultName: string, - options?: DeletedProtectionContainersListOptionalParams - ): PagedAsyncIterableIterator; -} diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operationsInterfaces/index.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operationsInterfaces/index.ts index 2437070aadd2..154cc42aeb56 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operationsInterfaces/index.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operationsInterfaces/index.ts @@ -50,7 +50,6 @@ export * from "./backupOperationStatuses"; export * from "./protectionPolicyOperationStatuses"; export * from "./backupProtectableItems"; export * from "./backupProtectionContainers"; -export * from "./deletedProtectionContainers"; export * from "./securityPINs"; export * from "./recoveryPointsRecommendedForMove"; export * from "./resourceGuardProxies"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts index c528c4a10709..bf9ec55f2564 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts @@ -65,7 +65,6 @@ import { ProtectionPolicyOperationStatusesImpl, BackupProtectableItemsImpl, BackupProtectionContainersImpl, - DeletedProtectionContainersImpl, SecurityPINsImpl, RecoveryPointsRecommendedForMoveImpl, ResourceGuardProxiesImpl, @@ -116,7 +115,6 @@ import { ProtectionPolicyOperationStatuses, BackupProtectableItems, BackupProtectionContainers, - DeletedProtectionContainers, SecurityPINs, RecoveryPointsRecommendedForMove, ResourceGuardProxies, @@ -168,7 +166,7 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-recoveryservicesbackup/11.0.1`; + const packageDetails = `azsdk-js-arm-recoveryservicesbackup/12.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -221,7 +219,7 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-04-01"; + this.apiVersion = options.apiVersion || "2022-06-01-preview"; this.backupResourceStorageConfigsNonCRR = new BackupResourceStorageConfigsNonCRRImpl( this ); @@ -288,9 +286,6 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient { ); this.backupProtectableItems = new BackupProtectableItemsImpl(this); this.backupProtectionContainers = new BackupProtectionContainersImpl(this); - this.deletedProtectionContainers = new DeletedProtectionContainersImpl( - this - ); this.securityPINs = new SecurityPINsImpl(this); this.recoveryPointsRecommendedForMove = new RecoveryPointsRecommendedForMoveImpl( this @@ -688,7 +683,6 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient { protectionPolicyOperationStatuses: ProtectionPolicyOperationStatuses; backupProtectableItems: BackupProtectableItems; backupProtectionContainers: BackupProtectionContainers; - deletedProtectionContainers: DeletedProtectionContainers; securityPINs: SecurityPINs; recoveryPointsRecommendedForMove: RecoveryPointsRecommendedForMove; resourceGuardProxies: ResourceGuardProxies; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/test/sampleTest.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/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/recoveryservicesbackup/arm-recoveryservicesbackup/tsconfig.json b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/tsconfig.json index a7e9eaf1a49b..3e6ae96443f3 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/tsconfig.json +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-recoveryservicesbackup": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"