@azure/arm-recoveryservicesdatareplication 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +9908 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/checkNameAvailabilitySample.d.ts +2 -0
- package/dist-esm/samples-dev/checkNameAvailabilitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/checkNameAvailabilitySample.js +43 -0
- package/dist-esm/samples-dev/checkNameAvailabilitySample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentPreflightSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentPreflightSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentPreflightSample.js +51 -0
- package/dist-esm/samples-dev/deploymentPreflightSample.js.map +1 -0
- package/dist-esm/samples-dev/draCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/draCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/draCreateSample.js +63 -0
- package/dist-esm/samples-dev/draCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/draDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/draDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/draDeleteSample.js +41 -0
- package/dist-esm/samples-dev/draDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/draGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/draGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/draGetSample.js +41 -0
- package/dist-esm/samples-dev/draGetSample.js.map +1 -0
- package/dist-esm/samples-dev/draListSample.d.ts +2 -0
- package/dist-esm/samples-dev/draListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/draListSample.js +61 -0
- package/dist-esm/samples-dev/draListSample.js.map +1 -0
- package/dist-esm/samples-dev/draOperationStatusGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/draOperationStatusGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/draOperationStatusGetSample.js +42 -0
- package/dist-esm/samples-dev/draOperationStatusGetSample.js.map +1 -0
- package/dist-esm/samples-dev/emailConfigurationCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/emailConfigurationCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/emailConfigurationCreateSample.js +49 -0
- package/dist-esm/samples-dev/emailConfigurationCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/emailConfigurationGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/emailConfigurationGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/emailConfigurationGetSample.js +41 -0
- package/dist-esm/samples-dev/emailConfigurationGetSample.js.map +1 -0
- package/dist-esm/samples-dev/emailConfigurationListSample.d.ts +2 -0
- package/dist-esm/samples-dev/emailConfigurationListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/emailConfigurationListSample.js +61 -0
- package/dist-esm/samples-dev/emailConfigurationListSample.js.map +1 -0
- package/dist-esm/samples-dev/eventGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/eventGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/eventGetSample.js +41 -0
- package/dist-esm/samples-dev/eventGetSample.js.map +1 -0
- package/dist-esm/samples-dev/eventListSample.d.ts +2 -0
- package/dist-esm/samples-dev/eventListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/eventListSample.js +64 -0
- package/dist-esm/samples-dev/eventListSample.js.map +1 -0
- package/dist-esm/samples-dev/fabricCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/fabricCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fabricCreateSample.js +48 -0
- package/dist-esm/samples-dev/fabricCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/fabricDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/fabricDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fabricDeleteSample.js +40 -0
- package/dist-esm/samples-dev/fabricDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/fabricGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/fabricGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fabricGetSample.js +40 -0
- package/dist-esm/samples-dev/fabricGetSample.js.map +1 -0
- package/dist-esm/samples-dev/fabricListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/fabricListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fabricListBySubscriptionSample.js +60 -0
- package/dist-esm/samples-dev/fabricListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/fabricListSample.d.ts +2 -0
- package/dist-esm/samples-dev/fabricListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fabricListSample.js +62 -0
- package/dist-esm/samples-dev/fabricListSample.js.map +1 -0
- package/dist-esm/samples-dev/fabricOperationsStatusGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/fabricOperationsStatusGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fabricOperationsStatusGetSample.js +41 -0
- package/dist-esm/samples-dev/fabricOperationsStatusGetSample.js.map +1 -0
- package/dist-esm/samples-dev/fabricUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/fabricUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fabricUpdateSample.js +47 -0
- package/dist-esm/samples-dev/fabricUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +58 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/policyCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/policyCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/policyCreateSample.js +47 -0
- package/dist-esm/samples-dev/policyCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/policyDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/policyDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/policyDeleteSample.js +41 -0
- package/dist-esm/samples-dev/policyDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/policyGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/policyGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/policyGetSample.js +41 -0
- package/dist-esm/samples-dev/policyGetSample.js.map +1 -0
- package/dist-esm/samples-dev/policyListSample.d.ts +2 -0
- package/dist-esm/samples-dev/policyListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/policyListSample.js +61 -0
- package/dist-esm/samples-dev/policyListSample.js.map +1 -0
- package/dist-esm/samples-dev/policyOperationStatusGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/policyOperationStatusGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/policyOperationStatusGetSample.js +42 -0
- package/dist-esm/samples-dev/policyOperationStatusGetSample.js.map +1 -0
- package/dist-esm/samples-dev/protectedItemCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/protectedItemCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/protectedItemCreateSample.js +49 -0
- package/dist-esm/samples-dev/protectedItemCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/protectedItemDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/protectedItemDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/protectedItemDeleteSample.js +43 -0
- package/dist-esm/samples-dev/protectedItemDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/protectedItemGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/protectedItemGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/protectedItemGetSample.js +41 -0
- package/dist-esm/samples-dev/protectedItemGetSample.js.map +1 -0
- package/dist-esm/samples-dev/protectedItemListSample.d.ts +2 -0
- package/dist-esm/samples-dev/protectedItemListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/protectedItemListSample.js +61 -0
- package/dist-esm/samples-dev/protectedItemListSample.js.map +1 -0
- package/dist-esm/samples-dev/protectedItemOperationStatusGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/protectedItemOperationStatusGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/protectedItemOperationStatusGetSample.js +42 -0
- package/dist-esm/samples-dev/protectedItemOperationStatusGetSample.js.map +1 -0
- package/dist-esm/samples-dev/protectedItemPlannedFailoverSample.d.ts +2 -0
- package/dist-esm/samples-dev/protectedItemPlannedFailoverSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/protectedItemPlannedFailoverSample.js +47 -0
- package/dist-esm/samples-dev/protectedItemPlannedFailoverSample.js.map +1 -0
- package/dist-esm/samples-dev/recoveryPointsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/recoveryPointsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/recoveryPointsGetSample.js +42 -0
- package/dist-esm/samples-dev/recoveryPointsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/recoveryPointsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/recoveryPointsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/recoveryPointsListSample.js +62 -0
- package/dist-esm/samples-dev/recoveryPointsListSample.js.map +1 -0
- package/dist-esm/samples-dev/replicationExtensionCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/replicationExtensionCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/replicationExtensionCreateSample.js +49 -0
- package/dist-esm/samples-dev/replicationExtensionCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/replicationExtensionDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/replicationExtensionDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/replicationExtensionDeleteSample.js +41 -0
- package/dist-esm/samples-dev/replicationExtensionDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/replicationExtensionGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/replicationExtensionGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/replicationExtensionGetSample.js +41 -0
- package/dist-esm/samples-dev/replicationExtensionGetSample.js.map +1 -0
- package/dist-esm/samples-dev/replicationExtensionListSample.d.ts +2 -0
- package/dist-esm/samples-dev/replicationExtensionListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/replicationExtensionListSample.js +61 -0
- package/dist-esm/samples-dev/replicationExtensionListSample.js.map +1 -0
- package/dist-esm/samples-dev/replicationExtensionOperationStatusGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/replicationExtensionOperationStatusGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/replicationExtensionOperationStatusGetSample.js +42 -0
- package/dist-esm/samples-dev/replicationExtensionOperationStatusGetSample.js.map +1 -0
- package/dist-esm/samples-dev/vaultCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/vaultCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/vaultCreateSample.js +46 -0
- package/dist-esm/samples-dev/vaultCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/vaultDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/vaultDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/vaultDeleteSample.js +40 -0
- package/dist-esm/samples-dev/vaultDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/vaultGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/vaultGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/vaultGetSample.js +40 -0
- package/dist-esm/samples-dev/vaultGetSample.js.map +1 -0
- package/dist-esm/samples-dev/vaultListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/vaultListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/vaultListBySubscriptionSample.js +60 -0
- package/dist-esm/samples-dev/vaultListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/vaultListSample.d.ts +2 -0
- package/dist-esm/samples-dev/vaultListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/vaultListSample.js +62 -0
- package/dist-esm/samples-dev/vaultListSample.js.map +1 -0
- package/dist-esm/samples-dev/vaultOperationStatusGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/vaultOperationStatusGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/vaultOperationStatusGetSample.js +41 -0
- package/dist-esm/samples-dev/vaultOperationStatusGetSample.js.map +1 -0
- package/dist-esm/samples-dev/vaultUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/vaultUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/vaultUpdateSample.js +45 -0
- package/dist-esm/samples-dev/vaultUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/workflowGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/workflowGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/workflowGetSample.js +41 -0
- package/dist-esm/samples-dev/workflowGetSample.js.map +1 -0
- package/dist-esm/samples-dev/workflowListSample.d.ts +2 -0
- package/dist-esm/samples-dev/workflowListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/workflowListSample.js +64 -0
- package/dist-esm/samples-dev/workflowListSample.js.map +1 -0
- package/dist-esm/samples-dev/workflowOperationStatusGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/workflowOperationStatusGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/workflowOperationStatusGetSample.js +42 -0
- package/dist-esm/samples-dev/workflowOperationStatusGetSample.js.map +1 -0
- package/dist-esm/src/azureSiteRecoveryManagementServiceAPI.d.ts +50 -0
- package/dist-esm/src/azureSiteRecoveryManagementServiceAPI.d.ts.map +1 -0
- package/dist-esm/src/azureSiteRecoveryManagementServiceAPI.js +183 -0
- package/dist-esm/src/azureSiteRecoveryManagementServiceAPI.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +11 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +21 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +3253 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +298 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +149 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +4952 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +37 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +329 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/dra.d.ts +79 -0
- package/dist-esm/src/operations/dra.d.ts.map +1 -0
- package/dist-esm/src/operations/dra.js +369 -0
- package/dist-esm/src/operations/dra.js.map +1 -0
- package/dist-esm/src/operations/draOperationStatus.d.ts +22 -0
- package/dist-esm/src/operations/draOperationStatus.d.ts.map +1 -0
- package/dist-esm/src/operations/draOperationStatus.js +57 -0
- package/dist-esm/src/operations/draOperationStatus.js.map +1 -0
- package/dist-esm/src/operations/emailConfiguration.d.ts +54 -0
- package/dist-esm/src/operations/emailConfiguration.d.ts.map +1 -0
- package/dist-esm/src/operations/emailConfiguration.js +224 -0
- package/dist-esm/src/operations/emailConfiguration.js.map +1 -0
- package/dist-esm/src/operations/event.d.ts +46 -0
- package/dist-esm/src/operations/event.d.ts.map +1 -0
- package/dist-esm/src/operations/event.js +191 -0
- package/dist-esm/src/operations/event.js.map +1 -0
- package/dist-esm/src/operations/fabric.d.ts +103 -0
- package/dist-esm/src/operations/fabric.d.ts.map +1 -0
- package/dist-esm/src/operations/fabric.js +560 -0
- package/dist-esm/src/operations/fabric.js.map +1 -0
- package/dist-esm/src/operations/fabricOperationsStatus.d.ts +21 -0
- package/dist-esm/src/operations/fabricOperationsStatus.d.ts.map +1 -0
- package/dist-esm/src/operations/fabricOperationsStatus.js +55 -0
- package/dist-esm/src/operations/fabricOperationsStatus.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +19 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +26 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +138 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/policy.d.ts +79 -0
- package/dist-esm/src/operations/policy.d.ts.map +1 -0
- package/dist-esm/src/operations/policy.js +369 -0
- package/dist-esm/src/operations/policy.js.map +1 -0
- package/dist-esm/src/operations/policyOperationStatus.d.ts +22 -0
- package/dist-esm/src/operations/policyOperationStatus.d.ts.map +1 -0
- package/dist-esm/src/operations/policyOperationStatus.js +57 -0
- package/dist-esm/src/operations/policyOperationStatus.js.map +1 -0
- package/dist-esm/src/operations/protectedItem.d.ts +95 -0
- package/dist-esm/src/operations/protectedItem.d.ts.map +1 -0
- package/dist-esm/src/operations/protectedItem.js +460 -0
- package/dist-esm/src/operations/protectedItem.js.map +1 -0
- package/dist-esm/src/operations/protectedItemOperationStatus.d.ts +22 -0
- package/dist-esm/src/operations/protectedItemOperationStatus.d.ts.map +1 -0
- package/dist-esm/src/operations/protectedItemOperationStatus.js +57 -0
- package/dist-esm/src/operations/protectedItemOperationStatus.js.map +1 -0
- package/dist-esm/src/operations/recoveryPoints.d.ts +50 -0
- package/dist-esm/src/operations/recoveryPoints.d.ts.map +1 -0
- package/dist-esm/src/operations/recoveryPoints.js +200 -0
- package/dist-esm/src/operations/recoveryPoints.js.map +1 -0
- package/dist-esm/src/operations/replicationExtension.d.ts +79 -0
- package/dist-esm/src/operations/replicationExtension.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationExtension.js +369 -0
- package/dist-esm/src/operations/replicationExtension.js.map +1 -0
- package/dist-esm/src/operations/replicationExtensionOperationStatus.d.ts +22 -0
- package/dist-esm/src/operations/replicationExtensionOperationStatus.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationExtensionOperationStatus.js +63 -0
- package/dist-esm/src/operations/replicationExtensionOperationStatus.js.map +1 -0
- package/dist-esm/src/operations/vault.d.ts +103 -0
- package/dist-esm/src/operations/vault.d.ts.map +1 -0
- package/dist-esm/src/operations/vault.js +560 -0
- package/dist-esm/src/operations/vault.js.map +1 -0
- package/dist-esm/src/operations/vaultOperationStatus.d.ts +21 -0
- package/dist-esm/src/operations/vaultOperationStatus.d.ts.map +1 -0
- package/dist-esm/src/operations/vaultOperationStatus.js +55 -0
- package/dist-esm/src/operations/vaultOperationStatus.js.map +1 -0
- package/dist-esm/src/operations/workflow.d.ts +46 -0
- package/dist-esm/src/operations/workflow.d.ts.map +1 -0
- package/dist-esm/src/operations/workflow.js +191 -0
- package/dist-esm/src/operations/workflow.js.map +1 -0
- package/dist-esm/src/operations/workflowOperationStatus.d.ts +22 -0
- package/dist-esm/src/operations/workflowOperationStatus.d.ts.map +1 -0
- package/dist-esm/src/operations/workflowOperationStatus.js +57 -0
- package/dist-esm/src/operations/workflowOperationStatus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dra.d.ts +54 -0
- package/dist-esm/src/operationsInterfaces/dra.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dra.js +9 -0
- package/dist-esm/src/operationsInterfaces/dra.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/draOperationStatus.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/draOperationStatus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/draOperationStatus.js +9 -0
- package/dist-esm/src/operationsInterfaces/draOperationStatus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/emailConfiguration.d.ts +29 -0
- package/dist-esm/src/operationsInterfaces/emailConfiguration.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/emailConfiguration.js +9 -0
- package/dist-esm/src/operationsInterfaces/emailConfiguration.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/event.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/event.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/event.js +9 -0
- package/dist-esm/src/operationsInterfaces/event.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/fabric.d.ts +67 -0
- package/dist-esm/src/operationsInterfaces/fabric.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/fabric.js +9 -0
- package/dist-esm/src/operationsInterfaces/fabric.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/fabricOperationsStatus.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/fabricOperationsStatus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/fabricOperationsStatus.js +9 -0
- package/dist-esm/src/operationsInterfaces/fabricOperationsStatus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +19 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +26 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/policy.d.ts +54 -0
- package/dist-esm/src/operationsInterfaces/policy.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/policy.js +9 -0
- package/dist-esm/src/operationsInterfaces/policy.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyOperationStatus.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/policyOperationStatus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyOperationStatus.js +9 -0
- package/dist-esm/src/operationsInterfaces/policyOperationStatus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/protectedItem.d.ts +70 -0
- package/dist-esm/src/operationsInterfaces/protectedItem.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/protectedItem.js +9 -0
- package/dist-esm/src/operationsInterfaces/protectedItem.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/protectedItemOperationStatus.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/protectedItemOperationStatus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/protectedItemOperationStatus.js +9 -0
- package/dist-esm/src/operationsInterfaces/protectedItemOperationStatus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/recoveryPoints.d.ts +23 -0
- package/dist-esm/src/operationsInterfaces/recoveryPoints.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/recoveryPoints.js +9 -0
- package/dist-esm/src/operationsInterfaces/recoveryPoints.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationExtension.d.ts +54 -0
- package/dist-esm/src/operationsInterfaces/replicationExtension.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationExtension.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationExtension.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationExtensionOperationStatus.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/replicationExtensionOperationStatus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationExtensionOperationStatus.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationExtensionOperationStatus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/vault.d.ts +67 -0
- package/dist-esm/src/operationsInterfaces/vault.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/vault.js +9 -0
- package/dist-esm/src/operationsInterfaces/vault.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/vaultOperationStatus.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/vaultOperationStatus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/vaultOperationStatus.js +9 -0
- package/dist-esm/src/operationsInterfaces/vaultOperationStatus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/workflow.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/workflow.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/workflow.js +9 -0
- package/dist-esm/src/operationsInterfaces/workflow.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/workflowOperationStatus.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/workflowOperationStatus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/workflowOperationStatus.js +9 -0
- package/dist-esm/src/operationsInterfaces/workflowOperationStatus.js.map +1 -0
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/recoveryservicesdatareplication_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/recoveryservicesdatareplication_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/recoveryservicesdatareplication_operations_test.spec.js +76 -0
- package/dist-esm/test/recoveryservicesdatareplication_operations_test.spec.js.map +1 -0
- package/package.json +124 -0
- package/review/arm-recoveryservicesdatareplication.api.md +1973 -0
- package/rollup.config.js +122 -0
- package/src/azureSiteRecoveryManagementServiceAPI.ts +306 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +42 -0
- package/src/models/index.ts +3567 -0
- package/src/models/mappers.ts +5306 -0
- package/src/models/parameters.ts +382 -0
- package/src/operations/dra.ts +500 -0
- package/src/operations/draOperationStatus.ts +78 -0
- package/src/operations/emailConfiguration.ts +287 -0
- package/src/operations/event.ts +242 -0
- package/src/operations/fabric.ts +710 -0
- package/src/operations/fabricOperationsStatus.ts +75 -0
- package/src/operations/index.ts +26 -0
- package/src/operations/operations.ts +149 -0
- package/src/operations/policy.ts +500 -0
- package/src/operations/policyOperationStatus.ts +78 -0
- package/src/operations/protectedItem.ts +638 -0
- package/src/operations/protectedItemOperationStatus.ts +79 -0
- package/src/operations/recoveryPoints.ts +270 -0
- package/src/operations/replicationExtension.ts +506 -0
- package/src/operations/replicationExtensionOperationStatus.ts +85 -0
- package/src/operations/vault.ts +710 -0
- package/src/operations/vaultOperationStatus.ts +75 -0
- package/src/operations/workflow.ts +242 -0
- package/src/operations/workflowOperationStatus.ts +78 -0
- package/src/operationsInterfaces/dra.ts +105 -0
- package/src/operationsInterfaces/draOperationStatus.ts +31 -0
- package/src/operationsInterfaces/emailConfiguration.ts +59 -0
- package/src/operationsInterfaces/event.ts +44 -0
- package/src/operationsInterfaces/fabric.ts +127 -0
- package/src/operationsInterfaces/fabricOperationsStatus.ts +29 -0
- package/src/operationsInterfaces/index.ts +26 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/policy.ts +105 -0
- package/src/operationsInterfaces/policyOperationStatus.ts +31 -0
- package/src/operationsInterfaces/protectedItem.ts +144 -0
- package/src/operationsInterfaces/protectedItemOperationStatus.ts +31 -0
- package/src/operationsInterfaces/recoveryPoints.ts +48 -0
- package/src/operationsInterfaces/replicationExtension.ts +111 -0
- package/src/operationsInterfaces/replicationExtensionOperationStatus.ts +31 -0
- package/src/operationsInterfaces/vault.ts +127 -0
- package/src/operationsInterfaces/vaultOperationStatus.ts +29 -0
- package/src/operationsInterfaces/workflow.ts +44 -0
- package/src/operationsInterfaces/workflowOperationStatus.ts +31 -0
- package/src/pagingHelper.ts +39 -0
- package/tsconfig.json +33 -0
- package/types/arm-recoveryservicesdatareplication.d.ts +4127 -0
- package/types/tsdoc-metadata.json +11 -0
package/rollup.config.js
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import nodeResolve from "@rollup/plugin-node-resolve";
|
|
10
|
+
import cjs from "@rollup/plugin-commonjs";
|
|
11
|
+
import sourcemaps from "rollup-plugin-sourcemaps";
|
|
12
|
+
import multiEntry from "@rollup/plugin-multi-entry";
|
|
13
|
+
import json from "@rollup/plugin-json";
|
|
14
|
+
|
|
15
|
+
import nodeBuiltins from "builtin-modules";
|
|
16
|
+
|
|
17
|
+
// #region Warning Handler
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* A function that can determine whether a rollup warning should be ignored. If
|
|
21
|
+
* the function returns `true`, then the warning will not be displayed.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
function ignoreNiseSinonEval(warning) {
|
|
25
|
+
return (
|
|
26
|
+
warning.code === "EVAL" &&
|
|
27
|
+
warning.id &&
|
|
28
|
+
(warning.id.includes("node_modules/nise") ||
|
|
29
|
+
warning.id.includes("node_modules/sinon")) === true
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function ignoreChaiCircularDependency(warning) {
|
|
34
|
+
return (
|
|
35
|
+
warning.code === "CIRCULAR_DEPENDENCY" &&
|
|
36
|
+
warning.importer && warning.importer.includes("node_modules/chai") === true
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Construct a warning handler for the shared rollup configuration
|
|
44
|
+
* that ignores certain warnings that are not relevant to testing.
|
|
45
|
+
*/
|
|
46
|
+
function makeOnWarnForTesting() {
|
|
47
|
+
return (warning, warn) => {
|
|
48
|
+
// If every inhibitor returns false (i.e. no inhibitors), then show the warning
|
|
49
|
+
if (warningInhibitors.every((inhib) => !inhib(warning))) {
|
|
50
|
+
warn(warning);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// #endregion
|
|
56
|
+
|
|
57
|
+
function makeBrowserTestConfig() {
|
|
58
|
+
const config = {
|
|
59
|
+
input: {
|
|
60
|
+
include: ["dist-esm/test/**/*.spec.js"],
|
|
61
|
+
exclude: ["dist-esm/test/**/node/**"]
|
|
62
|
+
},
|
|
63
|
+
output: {
|
|
64
|
+
file: `dist-test/index.browser.js`,
|
|
65
|
+
format: "umd",
|
|
66
|
+
sourcemap: true
|
|
67
|
+
},
|
|
68
|
+
preserveSymlinks: false,
|
|
69
|
+
plugins: [
|
|
70
|
+
multiEntry({ exports: false }),
|
|
71
|
+
nodeResolve({
|
|
72
|
+
mainFields: ["module", "browser"]
|
|
73
|
+
}),
|
|
74
|
+
cjs(),
|
|
75
|
+
json(),
|
|
76
|
+
sourcemaps()
|
|
77
|
+
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
|
78
|
+
],
|
|
79
|
+
onwarn: makeOnWarnForTesting(),
|
|
80
|
+
// Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
|
|
81
|
+
// rollup started respecting the "sideEffects" field in package.json. Since
|
|
82
|
+
// our package.json sets "sideEffects=false", this also applies to test
|
|
83
|
+
// code, which causes all tests to be removed by tree-shaking.
|
|
84
|
+
treeshake: false
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
return config;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
const defaultConfigurationOptions = {
|
|
91
|
+
disableBrowserBundle: false
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export function makeConfig(pkg, options) {
|
|
95
|
+
options = {
|
|
96
|
+
...defaultConfigurationOptions,
|
|
97
|
+
...(options || {})
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const baseConfig = {
|
|
101
|
+
// Use the package's module field if it has one
|
|
102
|
+
input: pkg["module"] || "dist-esm/src/index.js",
|
|
103
|
+
external: [
|
|
104
|
+
...nodeBuiltins,
|
|
105
|
+
...Object.keys(pkg.dependencies),
|
|
106
|
+
...Object.keys(pkg.devDependencies)
|
|
107
|
+
],
|
|
108
|
+
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
|
109
|
+
preserveSymlinks: false,
|
|
110
|
+
plugins: [sourcemaps(), nodeResolve()]
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
const config = [baseConfig];
|
|
114
|
+
|
|
115
|
+
if (!options.disableBrowserBundle) {
|
|
116
|
+
config.push(makeBrowserTestConfig());
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return config;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export default makeConfig(require("./package.json"));
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
+
import {
|
|
12
|
+
PipelineRequest,
|
|
13
|
+
PipelineResponse,
|
|
14
|
+
SendRequest
|
|
15
|
+
} from "@azure/core-rest-pipeline";
|
|
16
|
+
import * as coreAuth from "@azure/core-auth";
|
|
17
|
+
import {
|
|
18
|
+
DraImpl,
|
|
19
|
+
DraOperationStatusImpl,
|
|
20
|
+
EmailConfigurationImpl,
|
|
21
|
+
EventImpl,
|
|
22
|
+
FabricImpl,
|
|
23
|
+
FabricOperationsStatusImpl,
|
|
24
|
+
PolicyImpl,
|
|
25
|
+
PolicyOperationStatusImpl,
|
|
26
|
+
ProtectedItemImpl,
|
|
27
|
+
ProtectedItemOperationStatusImpl,
|
|
28
|
+
RecoveryPointsImpl,
|
|
29
|
+
ReplicationExtensionImpl,
|
|
30
|
+
ReplicationExtensionOperationStatusImpl,
|
|
31
|
+
OperationsImpl,
|
|
32
|
+
VaultImpl,
|
|
33
|
+
VaultOperationStatusImpl,
|
|
34
|
+
WorkflowImpl,
|
|
35
|
+
WorkflowOperationStatusImpl
|
|
36
|
+
} from "./operations";
|
|
37
|
+
import {
|
|
38
|
+
Dra,
|
|
39
|
+
DraOperationStatus,
|
|
40
|
+
EmailConfiguration,
|
|
41
|
+
Event,
|
|
42
|
+
Fabric,
|
|
43
|
+
FabricOperationsStatus,
|
|
44
|
+
Policy,
|
|
45
|
+
PolicyOperationStatus,
|
|
46
|
+
ProtectedItem,
|
|
47
|
+
ProtectedItemOperationStatus,
|
|
48
|
+
RecoveryPoints,
|
|
49
|
+
ReplicationExtension,
|
|
50
|
+
ReplicationExtensionOperationStatus,
|
|
51
|
+
Operations,
|
|
52
|
+
Vault,
|
|
53
|
+
VaultOperationStatus,
|
|
54
|
+
Workflow,
|
|
55
|
+
WorkflowOperationStatus
|
|
56
|
+
} from "./operationsInterfaces";
|
|
57
|
+
import * as Parameters from "./models/parameters";
|
|
58
|
+
import * as Mappers from "./models/mappers";
|
|
59
|
+
import {
|
|
60
|
+
AzureSiteRecoveryManagementServiceAPIOptionalParams,
|
|
61
|
+
CheckNameAvailabilityOptionalParams,
|
|
62
|
+
CheckNameAvailabilityResponse,
|
|
63
|
+
DeploymentPreflightOptionalParams,
|
|
64
|
+
DeploymentPreflightResponse
|
|
65
|
+
} from "./models";
|
|
66
|
+
|
|
67
|
+
export class AzureSiteRecoveryManagementServiceAPI extends coreClient.ServiceClient {
|
|
68
|
+
$host: string;
|
|
69
|
+
subscriptionId: string;
|
|
70
|
+
apiVersion: string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Initializes a new instance of the AzureSiteRecoveryManagementServiceAPI class.
|
|
74
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
75
|
+
* @param subscriptionId The ID of the target subscription. The value must be an UUID.
|
|
76
|
+
* @param options The parameter options
|
|
77
|
+
*/
|
|
78
|
+
constructor(
|
|
79
|
+
credentials: coreAuth.TokenCredential,
|
|
80
|
+
subscriptionId: string,
|
|
81
|
+
options?: AzureSiteRecoveryManagementServiceAPIOptionalParams
|
|
82
|
+
) {
|
|
83
|
+
if (credentials === undefined) {
|
|
84
|
+
throw new Error("'credentials' cannot be null");
|
|
85
|
+
}
|
|
86
|
+
if (subscriptionId === undefined) {
|
|
87
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Initializing default values for options
|
|
91
|
+
if (!options) {
|
|
92
|
+
options = {};
|
|
93
|
+
}
|
|
94
|
+
const defaults: AzureSiteRecoveryManagementServiceAPIOptionalParams = {
|
|
95
|
+
requestContentType: "application/json; charset=utf-8",
|
|
96
|
+
credential: credentials
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
const packageDetails = `azsdk-js-arm-recoveryservicesdatareplication/1.0.0-beta.1`;
|
|
100
|
+
const userAgentPrefix =
|
|
101
|
+
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
102
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
103
|
+
: `${packageDetails}`;
|
|
104
|
+
|
|
105
|
+
const optionsWithDefaults = {
|
|
106
|
+
...defaults,
|
|
107
|
+
...options,
|
|
108
|
+
userAgentOptions: {
|
|
109
|
+
userAgentPrefix
|
|
110
|
+
},
|
|
111
|
+
endpoint:
|
|
112
|
+
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
113
|
+
};
|
|
114
|
+
super(optionsWithDefaults);
|
|
115
|
+
|
|
116
|
+
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
|
117
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
118
|
+
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
|
119
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
120
|
+
(pipelinePolicy) =>
|
|
121
|
+
pipelinePolicy.name ===
|
|
122
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
if (
|
|
126
|
+
!options ||
|
|
127
|
+
!options.pipeline ||
|
|
128
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
129
|
+
!bearerTokenAuthenticationPolicyFound
|
|
130
|
+
) {
|
|
131
|
+
this.pipeline.removePolicy({
|
|
132
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
133
|
+
});
|
|
134
|
+
this.pipeline.addPolicy(
|
|
135
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
136
|
+
credential: credentials,
|
|
137
|
+
scopes:
|
|
138
|
+
optionsWithDefaults.credentialScopes ??
|
|
139
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
140
|
+
challengeCallbacks: {
|
|
141
|
+
authorizeRequestOnChallenge:
|
|
142
|
+
coreClient.authorizeRequestOnClaimChallenge
|
|
143
|
+
}
|
|
144
|
+
})
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
// Parameter assignments
|
|
148
|
+
this.subscriptionId = subscriptionId;
|
|
149
|
+
|
|
150
|
+
// Assigning values to Constant parameters
|
|
151
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
152
|
+
this.apiVersion = options.apiVersion || "2021-02-16-preview";
|
|
153
|
+
this.dra = new DraImpl(this);
|
|
154
|
+
this.draOperationStatus = new DraOperationStatusImpl(this);
|
|
155
|
+
this.emailConfiguration = new EmailConfigurationImpl(this);
|
|
156
|
+
this.event = new EventImpl(this);
|
|
157
|
+
this.fabric = new FabricImpl(this);
|
|
158
|
+
this.fabricOperationsStatus = new FabricOperationsStatusImpl(this);
|
|
159
|
+
this.policy = new PolicyImpl(this);
|
|
160
|
+
this.policyOperationStatus = new PolicyOperationStatusImpl(this);
|
|
161
|
+
this.protectedItem = new ProtectedItemImpl(this);
|
|
162
|
+
this.protectedItemOperationStatus = new ProtectedItemOperationStatusImpl(
|
|
163
|
+
this
|
|
164
|
+
);
|
|
165
|
+
this.recoveryPoints = new RecoveryPointsImpl(this);
|
|
166
|
+
this.replicationExtension = new ReplicationExtensionImpl(this);
|
|
167
|
+
this.replicationExtensionOperationStatus = new ReplicationExtensionOperationStatusImpl(
|
|
168
|
+
this
|
|
169
|
+
);
|
|
170
|
+
this.operations = new OperationsImpl(this);
|
|
171
|
+
this.vault = new VaultImpl(this);
|
|
172
|
+
this.vaultOperationStatus = new VaultOperationStatusImpl(this);
|
|
173
|
+
this.workflow = new WorkflowImpl(this);
|
|
174
|
+
this.workflowOperationStatus = new WorkflowOperationStatusImpl(this);
|
|
175
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
179
|
+
private addCustomApiVersionPolicy(apiVersion?: string) {
|
|
180
|
+
if (!apiVersion) {
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
const apiVersionPolicy = {
|
|
184
|
+
name: "CustomApiVersionPolicy",
|
|
185
|
+
async sendRequest(
|
|
186
|
+
request: PipelineRequest,
|
|
187
|
+
next: SendRequest
|
|
188
|
+
): Promise<PipelineResponse> {
|
|
189
|
+
const param = request.url.split("?");
|
|
190
|
+
if (param.length > 1) {
|
|
191
|
+
const newParams = param[1].split("&").map((item) => {
|
|
192
|
+
if (item.indexOf("api-version") > -1) {
|
|
193
|
+
return "api-version=" + apiVersion;
|
|
194
|
+
} else {
|
|
195
|
+
return item;
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
199
|
+
}
|
|
200
|
+
return next(request);
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Checks the resource name availability.
|
|
208
|
+
* @param location The name of the Azure region.
|
|
209
|
+
* @param options The options parameters.
|
|
210
|
+
*/
|
|
211
|
+
checkNameAvailability(
|
|
212
|
+
location: string,
|
|
213
|
+
options?: CheckNameAvailabilityOptionalParams
|
|
214
|
+
): Promise<CheckNameAvailabilityResponse> {
|
|
215
|
+
return this.sendOperationRequest(
|
|
216
|
+
{ location, options },
|
|
217
|
+
checkNameAvailabilityOperationSpec
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Performs resource deployment validation.
|
|
223
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
224
|
+
* @param deploymentId Deployment Id.
|
|
225
|
+
* @param options The options parameters.
|
|
226
|
+
*/
|
|
227
|
+
deploymentPreflight(
|
|
228
|
+
resourceGroupName: string,
|
|
229
|
+
deploymentId: string,
|
|
230
|
+
options?: DeploymentPreflightOptionalParams
|
|
231
|
+
): Promise<DeploymentPreflightResponse> {
|
|
232
|
+
return this.sendOperationRequest(
|
|
233
|
+
{ resourceGroupName, deploymentId, options },
|
|
234
|
+
deploymentPreflightOperationSpec
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
dra: Dra;
|
|
239
|
+
draOperationStatus: DraOperationStatus;
|
|
240
|
+
emailConfiguration: EmailConfiguration;
|
|
241
|
+
event: Event;
|
|
242
|
+
fabric: Fabric;
|
|
243
|
+
fabricOperationsStatus: FabricOperationsStatus;
|
|
244
|
+
policy: Policy;
|
|
245
|
+
policyOperationStatus: PolicyOperationStatus;
|
|
246
|
+
protectedItem: ProtectedItem;
|
|
247
|
+
protectedItemOperationStatus: ProtectedItemOperationStatus;
|
|
248
|
+
recoveryPoints: RecoveryPoints;
|
|
249
|
+
replicationExtension: ReplicationExtension;
|
|
250
|
+
replicationExtensionOperationStatus: ReplicationExtensionOperationStatus;
|
|
251
|
+
operations: Operations;
|
|
252
|
+
vault: Vault;
|
|
253
|
+
vaultOperationStatus: VaultOperationStatus;
|
|
254
|
+
workflow: Workflow;
|
|
255
|
+
workflowOperationStatus: WorkflowOperationStatus;
|
|
256
|
+
}
|
|
257
|
+
// Operation Specifications
|
|
258
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
259
|
+
|
|
260
|
+
const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
|
|
261
|
+
path:
|
|
262
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.DataReplication/locations/{location}/checkNameAvailability",
|
|
263
|
+
httpMethod: "POST",
|
|
264
|
+
responses: {
|
|
265
|
+
200: {
|
|
266
|
+
bodyMapper: Mappers.CheckNameAvailabilityResponseModel
|
|
267
|
+
},
|
|
268
|
+
default: {
|
|
269
|
+
bodyMapper: Mappers.ErrorResponse
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
requestBody: Parameters.body8,
|
|
273
|
+
queryParameters: [Parameters.apiVersion],
|
|
274
|
+
urlParameters: [
|
|
275
|
+
Parameters.$host,
|
|
276
|
+
Parameters.subscriptionId,
|
|
277
|
+
Parameters.location
|
|
278
|
+
],
|
|
279
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
280
|
+
mediaType: "json",
|
|
281
|
+
serializer
|
|
282
|
+
};
|
|
283
|
+
const deploymentPreflightOperationSpec: coreClient.OperationSpec = {
|
|
284
|
+
path:
|
|
285
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/deployments/{deploymentId}/preflight",
|
|
286
|
+
httpMethod: "POST",
|
|
287
|
+
responses: {
|
|
288
|
+
200: {
|
|
289
|
+
bodyMapper: Mappers.DeploymentPreflightModel
|
|
290
|
+
},
|
|
291
|
+
default: {
|
|
292
|
+
bodyMapper: Mappers.ErrorResponse
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
requestBody: Parameters.body9,
|
|
296
|
+
queryParameters: [Parameters.apiVersion],
|
|
297
|
+
urlParameters: [
|
|
298
|
+
Parameters.$host,
|
|
299
|
+
Parameters.subscriptionId,
|
|
300
|
+
Parameters.resourceGroupName,
|
|
301
|
+
Parameters.deploymentId
|
|
302
|
+
],
|
|
303
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
304
|
+
mediaType: "json",
|
|
305
|
+
serializer
|
|
306
|
+
};
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/// <reference lib="esnext.asynciterable" />
|
|
10
|
+
export { getContinuationToken } from "./pagingHelper";
|
|
11
|
+
export * from "./models";
|
|
12
|
+
export { AzureSiteRecoveryManagementServiceAPI } from "./azureSiteRecoveryManagementServiceAPI";
|
|
13
|
+
export * from "./operationsInterfaces";
|
package/src/lroImpl.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT license.
|
|
11
|
+
|
|
12
|
+
import { AbortSignalLike } from "@azure/abort-controller";
|
|
13
|
+
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
14
|
+
|
|
15
|
+
export function createLroSpec<T>(inputs: {
|
|
16
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
17
|
+
args: Record<string, unknown>;
|
|
18
|
+
spec: {
|
|
19
|
+
readonly requestBody?: unknown;
|
|
20
|
+
readonly path?: string;
|
|
21
|
+
readonly httpMethod: string;
|
|
22
|
+
} & Record<string, any>;
|
|
23
|
+
}): LongRunningOperation<T> {
|
|
24
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
25
|
+
return {
|
|
26
|
+
requestMethod: spec.httpMethod,
|
|
27
|
+
requestPath: spec.path!,
|
|
28
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
29
|
+
sendPollRequest: (
|
|
30
|
+
path: string,
|
|
31
|
+
options?: { abortSignal?: AbortSignalLike }
|
|
32
|
+
) => {
|
|
33
|
+
const { requestBody, ...restSpec } = spec;
|
|
34
|
+
return sendOperationFn(args, {
|
|
35
|
+
...restSpec,
|
|
36
|
+
httpMethod: "GET",
|
|
37
|
+
path,
|
|
38
|
+
abortSignal: options?.abortSignal
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|