New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@azure/arm-recoveryservices

Package Overview
Dependencies
Maintainers
4
Versions
304
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/arm-recoveryservices - npm Package Compare versions

Comparing version 5.1.0-alpha.20220725.3 to 5.1.0-alpha.20220907.1

2

dist/index.min.js

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var tslib=require("tslib"),coreClient=require("@azure/core-client"),coreRestPipeline=require("@azure/core-rest-pipeline"),coreLro=require("@azure/core-lro");function _interopNamespace(r){if(r&&r.__esModule)return r;var i=Object.create(null);return r&&Object.keys(r).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(r,e),Object.defineProperty(i,e,t.get?t:{enumerable:!0,get:function(){return r[e]}}))}),i.default=r,Object.freeze(i)}var coreClient__namespace=_interopNamespace(coreClient),coreRestPipeline__namespace=_interopNamespace(coreRestPipeline);exports.KnownAuthType=void 0,function(e){e.Invalid="Invalid",e.ACS="ACS",e.AAD="AAD",e.AccessControlService="AccessControlService",e.AzureActiveDirectory="AzureActiveDirectory"}(exports.KnownAuthType||(exports.KnownAuthType={})),exports.KnownResourceIdentityType=void 0,function(e){e.SystemAssigned="SystemAssigned",e.None="None",e.UserAssigned="UserAssigned",e.SystemAssignedUserAssigned="SystemAssigned, UserAssigned"}(exports.KnownResourceIdentityType||(exports.KnownResourceIdentityType={})),exports.KnownVaultUpgradeState=void 0,function(e){e.Unknown="Unknown",e.InProgress="InProgress",e.Upgraded="Upgraded",e.Failed="Failed"}(exports.KnownVaultUpgradeState||(exports.KnownVaultUpgradeState={})),exports.KnownTriggerType=void 0,function(e){e.UserTriggered="UserTriggered",e.ForcedUpgrade="ForcedUpgrade"}(exports.KnownTriggerType||(exports.KnownTriggerType={})),exports.KnownProvisioningState=void 0,function(e){e.Succeeded="Succeeded",e.Deleting="Deleting",e.Failed="Failed",e.Pending="Pending"}(exports.KnownProvisioningState||(exports.KnownProvisioningState={})),exports.KnownPrivateEndpointConnectionStatus=void 0,function(e){e.Pending="Pending",e.Approved="Approved",e.Rejected="Rejected",e.Disconnected="Disconnected"}(exports.KnownPrivateEndpointConnectionStatus||(exports.KnownPrivateEndpointConnectionStatus={})),exports.KnownVaultPrivateEndpointState=void 0,function(e){e.None="None",e.Enabled="Enabled"}(exports.KnownVaultPrivateEndpointState||(exports.KnownVaultPrivateEndpointState={})),exports.KnownInfrastructureEncryptionState=void 0,function(e){e.Enabled="Enabled",e.Disabled="Disabled"}(exports.KnownInfrastructureEncryptionState||(exports.KnownInfrastructureEncryptionState={})),exports.KnownResourceMoveState=void 0,function(e){e.Unknown="Unknown",e.InProgress="InProgress",e.PrepareFailed="PrepareFailed",e.CommitFailed="CommitFailed",e.PrepareTimedout="PrepareTimedout",e.CommitTimedout="CommitTimedout",e.MoveSucceeded="MoveSucceeded",e.Failure="Failure",e.CriticalFailure="CriticalFailure",e.PartialSuccess="PartialSuccess"}(exports.KnownResourceMoveState||(exports.KnownResourceMoveState={})),exports.KnownBackupStorageVersion=void 0,function(e){e.V1="V1",e.V2="V2",e.Unassigned="Unassigned"}(exports.KnownBackupStorageVersion||(exports.KnownBackupStorageVersion={})),exports.KnownAlertsState=void 0,function(e){e.Enabled="Enabled",e.Disabled="Disabled"}(exports.KnownAlertsState||(exports.KnownAlertsState={})),exports.KnownStandardTierStorageRedundancy=void 0,function(e){e.LocallyRedundant="LocallyRedundant",e.GeoRedundant="GeoRedundant",e.ZoneRedundant="ZoneRedundant"}(exports.KnownStandardTierStorageRedundancy||(exports.KnownStandardTierStorageRedundancy={})),exports.KnownCrossRegionRestore=void 0,function(e){e.Enabled="Enabled",e.Disabled="Disabled"}(exports.KnownCrossRegionRestore||(exports.KnownCrossRegionRestore={})),exports.KnownSkuName=void 0,function(e){e.Standard="Standard",e.RS0="RS0"}(exports.KnownSkuName||(exports.KnownSkuName={})),exports.KnownCreatedByType=void 0,function(e){e.User="User",e.Application="Application",e.ManagedIdentity="ManagedIdentity",e.Key="Key"}(exports.KnownCreatedByType||(exports.KnownCreatedByType={})),exports.KnownUsagesUnit=void 0,function(e){e.Count="Count",e.Bytes="Bytes",e.Seconds="Seconds",e.Percent="Percent",e.CountPerSecond="CountPerSecond",e.BytesPerSecond="BytesPerSecond"}(exports.KnownUsagesUnit||(exports.KnownUsagesUnit={}));const CertificateRequest={type:{name:"Composite",className:"CertificateRequest",modelProperties:{properties:{serializedName:"properties",type:{name:"Composite",className:"RawCertificateData"}}}}},RawCertificateData={type:{name:"Composite",className:"RawCertificateData",modelProperties:{authType:{serializedName:"authType",type:{name:"String"}},certificate:{serializedName:"certificate",type:{name:"ByteArray"}}}}},VaultCertificateResponse={type:{name:"Composite",className:"VaultCertificateResponse",modelProperties:{name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},id:{serializedName:"id",readOnly:!0,type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Composite",className:"ResourceCertificateDetails"}}}}},ResourceCertificateDetails={type:{name:"Composite",className:"ResourceCertificateDetails",uberParent:"ResourceCertificateDetails",polymorphicDiscriminator:{serializedName:"authType",clientName:"authType"},modelProperties:{authType:{serializedName:"authType",required:!0,type:{name:"String"}},certificate:{serializedName:"certificate",type:{name:"ByteArray"}},friendlyName:{serializedName:"friendlyName",type:{name:"String"}},issuer:{serializedName:"issuer",type:{name:"String"}},resourceId:{serializedName:"resourceId",type:{name:"Number"}},subject:{serializedName:"subject",type:{name:"String"}},thumbprint:{serializedName:"thumbprint",type:{name:"String"}},validFrom:{serializedName:"validFrom",type:{name:"DateTime"}},validTo:{serializedName:"validTo",type:{name:"DateTime"}}}}},ReplicationUsageList={type:{name:"Composite",className:"ReplicationUsageList",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"ReplicationUsage"}}}}}}},ReplicationUsage={type:{name:"Composite",className:"ReplicationUsage",modelProperties:{monitoringSummary:{serializedName:"monitoringSummary",type:{name:"Composite",className:"MonitoringSummary"}},jobsSummary:{serializedName:"jobsSummary",type:{name:"Composite",className:"JobsSummary"}},protectedItemCount:{serializedName:"protectedItemCount",type:{name:"Number"}},recoveryPlanCount:{serializedName:"recoveryPlanCount",type:{name:"Number"}},registeredServersCount:{serializedName:"registeredServersCount",type:{name:"Number"}},recoveryServicesProviderAuthType:{serializedName:"recoveryServicesProviderAuthType",type:{name:"Number"}}}}},MonitoringSummary={type:{name:"Composite",className:"MonitoringSummary",modelProperties:{unHealthyVmCount:{serializedName:"unHealthyVmCount",type:{name:"Number"}},unHealthyProviderCount:{serializedName:"unHealthyProviderCount",type:{name:"Number"}},eventsCount:{serializedName:"eventsCount",type:{name:"Number"}},deprecatedProviderCount:{serializedName:"deprecatedProviderCount",type:{name:"Number"}},supportedProviderCount:{serializedName:"supportedProviderCount",type:{name:"Number"}},unsupportedProviderCount:{serializedName:"unsupportedProviderCount",type:{name:"Number"}}}}},JobsSummary={type:{name:"Composite",className:"JobsSummary",modelProperties:{failedJobs:{serializedName:"failedJobs",type:{name:"Number"}},suspendedJobs:{serializedName:"suspendedJobs",type:{name:"Number"}},inProgressJobs:{serializedName:"inProgressJobs",type:{name:"Number"}}}}},PrivateLinkResources={type:{name:"Composite",className:"PrivateLinkResources",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateLinkResource"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},PrivateLinkResource={type:{name:"Composite",className:"PrivateLinkResource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},groupId:{serializedName:"properties.groupId",readOnly:!0,type:{name:"String"}},requiredMembers:{serializedName:"properties.requiredMembers",readOnly:!0,type:{name:"Sequence",element:{type:{name:"String"}}}},requiredZoneNames:{serializedName:"properties.requiredZoneNames",readOnly:!0,type:{name:"Sequence",element:{type:{name:"String"}}}}}}},CloudError={type:{name:"Composite",className:"CloudError",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorModel"}}}}},ErrorModel={type:{name:"Composite",className:"ErrorModel",modelProperties:{additionalInfo:{serializedName:"additionalInfo",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ErrorAdditionalInfo"}}}},code:{serializedName:"code",readOnly:!0,type:{name:"String"}},details:{serializedName:"details",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ErrorModel"}}}},message:{serializedName:"message",readOnly:!0,type:{name:"String"}},target:{serializedName:"target",readOnly:!0,type:{name:"String"}}}}},ErrorAdditionalInfo={type:{name:"Composite",className:"ErrorAdditionalInfo",modelProperties:{info:{serializedName:"info",readOnly:!0,type:{name:"Dictionary",value:{type:{name:"any"}}}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}}}}},CheckNameAvailabilityParameters={type:{name:"Composite",className:"CheckNameAvailabilityParameters",modelProperties:{type:{serializedName:"type",type:{name:"String"}},name:{serializedName:"name",type:{name:"String"}}}}},CheckNameAvailabilityResult={type:{name:"Composite",className:"CheckNameAvailabilityResult",modelProperties:{nameAvailable:{serializedName:"nameAvailable",type:{name:"Boolean"}},reason:{serializedName:"reason",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}}}}},VaultList={type:{name:"Composite",className:"VaultList",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Vault"}}}},nextLink:{serializedName:"nextLink",readOnly:!0,type:{name:"String"}}}}},IdentityData={type:{name:"Composite",className:"IdentityData",modelProperties:{principalId:{serializedName:"principalId",readOnly:!0,type:{name:"String"}},tenantId:{serializedName:"tenantId",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",required:!0,type:{name:"String"}},userAssignedIdentities:{serializedName:"userAssignedIdentities",type:{name:"Dictionary",value:{type:{name:"Composite",className:"UserIdentity"}}}}}}},UserIdentity={type:{name:"Composite",className:"UserIdentity",modelProperties:{principalId:{serializedName:"principalId",readOnly:!0,type:{name:"String"}},clientId:{serializedName:"clientId",readOnly:!0,type:{name:"String"}}}}},VaultProperties={type:{name:"Composite",className:"VaultProperties",modelProperties:{provisioningState:{serializedName:"provisioningState",readOnly:!0,type:{name:"String"}},upgradeDetails:{serializedName:"upgradeDetails",type:{name:"Composite",className:"UpgradeDetails"}},privateEndpointConnections:{serializedName:"privateEndpointConnections",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnectionVaultProperties"}}}},privateEndpointStateForBackup:{serializedName:"privateEndpointStateForBackup",readOnly:!0,type:{name:"String"}},privateEndpointStateForSiteRecovery:{serializedName:"privateEndpointStateForSiteRecovery",readOnly:!0,type:{name:"String"}},encryption:{serializedName:"encryption",type:{name:"Composite",className:"VaultPropertiesEncryption"}},moveDetails:{serializedName:"moveDetails",type:{name:"Composite",className:"VaultPropertiesMoveDetails"}},moveState:{serializedName:"moveState",readOnly:!0,type:{name:"String"}},backupStorageVersion:{serializedName:"backupStorageVersion",readOnly:!0,type:{name:"String"}},monitoringSettings:{serializedName:"monitoringSettings",type:{name:"Composite",className:"MonitoringSettings"}},redundancySettings:{serializedName:"redundancySettings",type:{name:"Composite",className:"VaultPropertiesRedundancySettings"}}}}},UpgradeDetails={type:{name:"Composite",className:"UpgradeDetails",modelProperties:{operationId:{serializedName:"operationId",readOnly:!0,type:{name:"String"}},startTimeUtc:{serializedName:"startTimeUtc",readOnly:!0,type:{name:"DateTime"}},lastUpdatedTimeUtc:{serializedName:"lastUpdatedTimeUtc",readOnly:!0,type:{name:"DateTime"}},endTimeUtc:{serializedName:"endTimeUtc",readOnly:!0,type:{name:"DateTime"}},status:{serializedName:"status",readOnly:!0,type:{name:"String"}},message:{serializedName:"message",readOnly:!0,type:{name:"String"}},triggerType:{serializedName:"triggerType",readOnly:!0,type:{name:"String"}},upgradedResourceId:{serializedName:"upgradedResourceId",readOnly:!0,type:{name:"String"}},previousResourceId:{serializedName:"previousResourceId",readOnly:!0,type:{name:"String"}}}}},PrivateEndpointConnectionVaultProperties={type:{name:"Composite",className:"PrivateEndpointConnectionVaultProperties",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Composite",className:"PrivateEndpointConnection"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},location:{serializedName:"location",readOnly:!0,type:{name:"String"}}}}},PrivateEndpointConnection={type:{name:"Composite",className:"PrivateEndpointConnection",modelProperties:{provisioningState:{serializedName:"provisioningState",readOnly:!0,type:{name:"String"}},privateEndpoint:{serializedName:"privateEndpoint",type:{name:"Composite",className:"PrivateEndpoint"}},privateLinkServiceConnectionState:{serializedName:"privateLinkServiceConnectionState",type:{name:"Composite",className:"PrivateLinkServiceConnectionState"}}}}},PrivateEndpoint={type:{name:"Composite",className:"PrivateEndpoint",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}}}}},PrivateLinkServiceConnectionState={type:{name:"Composite",className:"PrivateLinkServiceConnectionState",modelProperties:{status:{serializedName:"status",readOnly:!0,type:{name:"String"}},description:{serializedName:"description",readOnly:!0,type:{name:"String"}},actionsRequired:{serializedName:"actionsRequired",readOnly:!0,type:{name:"String"}}}}},VaultPropertiesEncryption={type:{name:"Composite",className:"VaultPropertiesEncryption",modelProperties:{keyVaultProperties:{serializedName:"keyVaultProperties",type:{name:"Composite",className:"CmkKeyVaultProperties"}},kekIdentity:{serializedName:"kekIdentity",type:{name:"Composite",className:"CmkKekIdentity"}},infrastructureEncryption:{serializedName:"infrastructureEncryption",type:{name:"String"}}}}},CmkKeyVaultProperties={type:{name:"Composite",className:"CmkKeyVaultProperties",modelProperties:{keyUri:{serializedName:"keyUri",type:{name:"String"}}}}},CmkKekIdentity={type:{name:"Composite",className:"CmkKekIdentity",modelProperties:{useSystemAssignedIdentity:{serializedName:"useSystemAssignedIdentity",type:{name:"Boolean"}},userAssignedIdentity:{serializedName:"userAssignedIdentity",type:{name:"String"}}}}},VaultPropertiesMoveDetails={type:{name:"Composite",className:"VaultPropertiesMoveDetails",modelProperties:{operationId:{serializedName:"operationId",readOnly:!0,type:{name:"String"}},startTimeUtc:{serializedName:"startTimeUtc",readOnly:!0,type:{name:"DateTime"}},completionTimeUtc:{serializedName:"completionTimeUtc",readOnly:!0,type:{name:"DateTime"}},sourceResourceId:{serializedName:"sourceResourceId",readOnly:!0,type:{name:"String"}},targetResourceId:{serializedName:"targetResourceId",readOnly:!0,type:{name:"String"}}}}},MonitoringSettings={type:{name:"Composite",className:"MonitoringSettings",modelProperties:{azureMonitorAlertSettings:{serializedName:"azureMonitorAlertSettings",type:{name:"Composite",className:"AzureMonitorAlertSettings"}},classicAlertSettings:{serializedName:"classicAlertSettings",type:{name:"Composite",className:"ClassicAlertSettings"}}}}},AzureMonitorAlertSettings={type:{name:"Composite",className:"AzureMonitorAlertSettings",modelProperties:{alertsForAllJobFailures:{serializedName:"alertsForAllJobFailures",type:{name:"String"}}}}},ClassicAlertSettings={type:{name:"Composite",className:"ClassicAlertSettings",modelProperties:{alertsForCriticalOperations:{serializedName:"alertsForCriticalOperations",type:{name:"String"}}}}},VaultPropertiesRedundancySettings={type:{name:"Composite",className:"VaultPropertiesRedundancySettings",modelProperties:{standardTierStorageRedundancy:{serializedName:"standardTierStorageRedundancy",readOnly:!0,type:{name:"String"}},crossRegionRestore:{serializedName:"crossRegionRestore",readOnly:!0,type:{name:"String"}}}}},Sku={type:{name:"Composite",className:"Sku",modelProperties:{name:{serializedName:"name",required:!0,type:{name:"String"}},tier:{serializedName:"tier",type:{name:"String"}},family:{serializedName:"family",type:{name:"String"}},size:{serializedName:"size",type:{name:"String"}},capacity:{serializedName:"capacity",type:{name:"String"}}}}},SystemData={type:{name:"Composite",className:"SystemData",modelProperties:{createdBy:{serializedName:"createdBy",type:{name:"String"}},createdByType:{serializedName:"createdByType",type:{name:"String"}},createdAt:{serializedName:"createdAt",type:{name:"DateTime"}},lastModifiedBy:{serializedName:"lastModifiedBy",type:{name:"String"}},lastModifiedByType:{serializedName:"lastModifiedByType",type:{name:"String"}},lastModifiedAt:{serializedName:"lastModifiedAt",type:{name:"DateTime"}}}}},Resource={type:{name:"Composite",className:"Resource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},etag:{serializedName:"etag",type:{name:"String"}}}}},ClientDiscoveryResponse={type:{name:"Composite",className:"ClientDiscoveryResponse",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClientDiscoveryValueForSingleApi"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},ClientDiscoveryValueForSingleApi={type:{name:"Composite",className:"ClientDiscoveryValueForSingleApi",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"ClientDiscoveryDisplay"}},origin:{serializedName:"origin",type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Composite",className:"ClientDiscoveryForProperties"}}}}},ClientDiscoveryDisplay={type:{name:"Composite",className:"ClientDiscoveryDisplay",modelProperties:{provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}}}}},ClientDiscoveryForProperties={type:{name:"Composite",className:"ClientDiscoveryForProperties",modelProperties:{serviceSpecification:{serializedName:"serviceSpecification",type:{name:"Composite",className:"ClientDiscoveryForServiceSpecification"}}}}},ClientDiscoveryForServiceSpecification={type:{name:"Composite",className:"ClientDiscoveryForServiceSpecification",modelProperties:{logSpecifications:{serializedName:"logSpecifications",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClientDiscoveryForLogSpecification"}}}}}}},ClientDiscoveryForLogSpecification={type:{name:"Composite",className:"ClientDiscoveryForLogSpecification",modelProperties:{name:{serializedName:"name",type:{name:"String"}},displayName:{serializedName:"displayName",type:{name:"String"}},blobDuration:{serializedName:"blobDuration",type:{name:"String"}}}}},OperationResource={type:{name:"Composite",className:"OperationResource",modelProperties:{endTime:{serializedName:"endTime",type:{name:"DateTime"}},error:{serializedName:"error",type:{name:"Composite",className:"ErrorModel"}},id:{serializedName:"id",type:{name:"String"}},name:{serializedName:"name",type:{name:"String"}},status:{serializedName:"status",type:{name:"String"}},startTime:{serializedName:"startTime",type:{name:"DateTime"}}}}},VaultUsageList={type:{name:"Composite",className:"VaultUsageList",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"VaultUsage"}}}}}}},VaultUsage={type:{name:"Composite",className:"VaultUsage",modelProperties:{unit:{serializedName:"unit",type:{name:"String"}},quotaPeriod:{serializedName:"quotaPeriod",type:{name:"String"}},nextResetTime:{serializedName:"nextResetTime",type:{name:"DateTime"}},currentValue:{serializedName:"currentValue",type:{name:"Number"}},limit:{serializedName:"limit",type:{name:"Number"}},name:{serializedName:"name",type:{name:"Composite",className:"NameInfo"}}}}},NameInfo={type:{name:"Composite",className:"NameInfo",modelProperties:{value:{serializedName:"value",type:{name:"String"}},localizedValue:{serializedName:"localizedValue",type:{name:"String"}}}}},ResourceCertificateAndAadDetails={serializedName:"AzureActiveDirectory",type:{name:"Composite",className:"ResourceCertificateAndAadDetails",uberParent:"ResourceCertificateDetails",polymorphicDiscriminator:ResourceCertificateDetails.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ResourceCertificateDetails.type.modelProperties),{aadAuthority:{serializedName:"aadAuthority",required:!0,type:{name:"String"}},aadTenantId:{serializedName:"aadTenantId",required:!0,type:{name:"String"}},servicePrincipalClientId:{serializedName:"servicePrincipalClientId",required:!0,type:{name:"String"}},servicePrincipalObjectId:{serializedName:"servicePrincipalObjectId",required:!0,type:{name:"String"}},azureManagementEndpointAudience:{serializedName:"azureManagementEndpointAudience",required:!0,type:{name:"String"}},serviceResourceId:{serializedName:"serviceResourceId",type:{name:"String"}},aadAudience:{serializedName:"aadAudience",type:{name:"String"}}})}},ResourceCertificateAndAcsDetails={serializedName:"AccessControlService",type:{name:"Composite",className:"ResourceCertificateAndAcsDetails",uberParent:"ResourceCertificateDetails",polymorphicDiscriminator:ResourceCertificateDetails.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ResourceCertificateDetails.type.modelProperties),{globalAcsNamespace:{serializedName:"globalAcsNamespace",required:!0,type:{name:"String"}},globalAcsHostName:{serializedName:"globalAcsHostName",required:!0,type:{name:"String"}},globalAcsRPRealm:{serializedName:"globalAcsRPRealm",required:!0,type:{name:"String"}}})}},TrackedResource={type:{name:"Composite",className:"TrackedResource",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{location:{serializedName:"location",required:!0,type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}}})}},PatchTrackedResource={type:{name:"Composite",className:"PatchTrackedResource",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{location:{serializedName:"location",type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}}})}},VaultExtendedInfoResource={type:{name:"Composite",className:"VaultExtendedInfoResource",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{integrityKey:{serializedName:"properties.integrityKey",type:{name:"String"}},encryptionKey:{serializedName:"properties.encryptionKey",type:{name:"String"}},encryptionKeyThumbprint:{serializedName:"properties.encryptionKeyThumbprint",type:{name:"String"}},algorithm:{serializedName:"properties.algorithm",type:{name:"String"}}})}},Vault={type:{name:"Composite",className:"Vault",modelProperties:Object.assign(Object.assign({},TrackedResource.type.modelProperties),{identity:{serializedName:"identity",type:{name:"Composite",className:"IdentityData"}},properties:{serializedName:"properties",type:{name:"Composite",className:"VaultProperties"}},sku:{serializedName:"sku",type:{name:"Composite",className:"Sku"}},systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}}})}},PatchVault={type:{name:"Composite",className:"PatchVault",modelProperties:Object.assign(Object.assign({},PatchTrackedResource.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"VaultProperties"}},sku:{serializedName:"sku",type:{name:"Composite",className:"Sku"}},identity:{serializedName:"identity",type:{name:"Composite",className:"IdentityData"}}})}};let discriminators={ResourceCertificateDetails:ResourceCertificateDetails,"ResourceCertificateDetails.AzureActiveDirectory":ResourceCertificateAndAadDetails,"ResourceCertificateDetails.AccessControlService":ResourceCertificateAndAcsDetails};var Mappers=Object.freeze({__proto__:null,CertificateRequest:CertificateRequest,RawCertificateData:RawCertificateData,VaultCertificateResponse:VaultCertificateResponse,ResourceCertificateDetails:ResourceCertificateDetails,ReplicationUsageList:ReplicationUsageList,ReplicationUsage:ReplicationUsage,MonitoringSummary:MonitoringSummary,JobsSummary:JobsSummary,PrivateLinkResources:PrivateLinkResources,PrivateLinkResource:PrivateLinkResource,CloudError:CloudError,ErrorModel:ErrorModel,ErrorAdditionalInfo:ErrorAdditionalInfo,CheckNameAvailabilityParameters:CheckNameAvailabilityParameters,CheckNameAvailabilityResult:CheckNameAvailabilityResult,VaultList:VaultList,IdentityData:IdentityData,UserIdentity:UserIdentity,VaultProperties:VaultProperties,UpgradeDetails:UpgradeDetails,PrivateEndpointConnectionVaultProperties:PrivateEndpointConnectionVaultProperties,PrivateEndpointConnection:PrivateEndpointConnection,PrivateEndpoint:PrivateEndpoint,PrivateLinkServiceConnectionState:PrivateLinkServiceConnectionState,VaultPropertiesEncryption:VaultPropertiesEncryption,CmkKeyVaultProperties:CmkKeyVaultProperties,CmkKekIdentity:CmkKekIdentity,VaultPropertiesMoveDetails:VaultPropertiesMoveDetails,MonitoringSettings:MonitoringSettings,AzureMonitorAlertSettings:AzureMonitorAlertSettings,ClassicAlertSettings:ClassicAlertSettings,VaultPropertiesRedundancySettings:VaultPropertiesRedundancySettings,Sku:Sku,SystemData:SystemData,Resource:Resource,ClientDiscoveryResponse:ClientDiscoveryResponse,ClientDiscoveryValueForSingleApi:ClientDiscoveryValueForSingleApi,ClientDiscoveryDisplay:ClientDiscoveryDisplay,ClientDiscoveryForProperties:ClientDiscoveryForProperties,ClientDiscoveryForServiceSpecification:ClientDiscoveryForServiceSpecification,ClientDiscoveryForLogSpecification:ClientDiscoveryForLogSpecification,OperationResource:OperationResource,VaultUsageList:VaultUsageList,VaultUsage:VaultUsage,NameInfo:NameInfo,ResourceCertificateAndAadDetails:ResourceCertificateAndAadDetails,ResourceCertificateAndAcsDetails:ResourceCertificateAndAcsDetails,TrackedResource:TrackedResource,PatchTrackedResource:PatchTrackedResource,VaultExtendedInfoResource:VaultExtendedInfoResource,Vault:Vault,PatchVault:PatchVault,discriminators:discriminators});const contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},certificateRequest={parameterPath:"certificateRequest",mapper:CertificateRequest},accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2022-04-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},resourceGroupName={parameterPath:"resourceGroupName",mapper:{serializedName:"resourceGroupName",required:!0,type:{name:"String"}}},vaultName={parameterPath:"vaultName",mapper:{serializedName:"vaultName",required:!0,type:{name:"String"}}},certificateName={parameterPath:"certificateName",mapper:{serializedName:"certificateName",required:!0,type:{name:"String"}}},identityName={parameterPath:"identityName",mapper:{serializedName:"identityName",required:!0,type:{name:"String"}}},privateLinkResourceName={parameterPath:"privateLinkResourceName",mapper:{serializedName:"privateLinkResourceName",required:!0,type:{name:"String"}}},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0},input={parameterPath:"input",mapper:CheckNameAvailabilityParameters},location={parameterPath:"location",mapper:{serializedName:"location",required:!0,type:{name:"String"}}},vault={parameterPath:"vault",mapper:Vault},vault1={parameterPath:"vault",mapper:PatchVault},resourceExtendedInfoDetails={parameterPath:"resourceExtendedInfoDetails",mapper:VaultExtendedInfoResource},operationId={parameterPath:"operationId",mapper:{serializedName:"operationId",required:!0,type:{name:"String"}}};class VaultCertificatesImpl{constructor(e){this.client=e}create(e,t,r,i,a){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,certificateName:r,certificateRequest:i,options:a},createOperationSpec)}}const serializer$9=coreClient__namespace.createSerializer(Mappers,!1),createOperationSpec={path:"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/certificates/{certificateName}",httpMethod:"PUT",responses:{200:{bodyMapper:VaultCertificateResponse}},requestBody:certificateRequest,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName,certificateName],headerParameters:[contentType,accept],mediaType:"json",serializer:serializer$9};class RegisteredIdentitiesImpl{constructor(e){this.client=e}delete(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,identityName:r,options:i},deleteOperationSpec$1)}}const serializer$8=coreClient__namespace.createSerializer(Mappers,!1),deleteOperationSpec$1={path:"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/registeredIdentities/{identityName}",httpMethod:"DELETE",responses:{204:{}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName,identityName],serializer:serializer$8};class ReplicationUsagesImpl{constructor(e){this.client=e}list(e,t,r){const i=this.listPagingAll(e,t,r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e,t,r)}}listPagingPage(t,r,i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(t,r,i));yield yield tslib.__await(e.value||[])})}listPagingAll(s,n,o){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var r,i=tslib.__asyncValues(this.listPagingPage(s,n,o));!(r=yield tslib.__await(i.next())).done;){var a=r.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(t)throw t.error}}})}_list(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,options:r},listOperationSpec$2)}}const serializer$7=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec$2={path:"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/replicationUsages",httpMethod:"GET",responses:{200:{bodyMapper:ReplicationUsageList}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName],headerParameters:[accept],serializer:serializer$7};class PrivateLinkResourcesOperationsImpl{constructor(e){this.client=e}list(e,t,r){const i=this.listPagingAll(e,t,r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e,t,r)}}listPagingPage(r,i,a){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(r,i,a));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listNext(r,i,t,a)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(s,n,o){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var r,i=tslib.__asyncValues(this.listPagingPage(s,n,o));!(r=yield tslib.__await(i.next())).done;){var a=r.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(t)throw t.error}}})}_list(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,options:r},listOperationSpec$1)}get(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,privateLinkResourceName:r,options:i},getOperationSpec$2)}_listNext(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,nextLink:r,options:i},listNextOperationSpec$1)}}const serializer$6=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateLinkResources",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResources},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName],headerParameters:[accept],serializer:serializer$6},getOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateLinkResources/{privateLinkResourceName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResource},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName,privateLinkResourceName],headerParameters:[accept],serializer:serializer$6},listNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResources},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName,nextLink],headerParameters:[accept],serializer:serializer$6};class RecoveryServicesImpl{constructor(e){this.client=e}checkNameAvailability(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,location:t,input:r,options:i},checkNameAvailabilityOperationSpec)}}const serializer$5=coreClient__namespace.createSerializer(Mappers,!1),checkNameAvailabilityOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/locations/{location}/checkNameAvailability",httpMethod:"POST",responses:{200:{bodyMapper:CheckNameAvailabilityResult},default:{bodyMapper:CloudError}},requestBody:input,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,location],headerParameters:[contentType,accept],mediaType:"json",serializer:serializer$5};class LroImpl{constructor(e,t,r,i=r.path,a=r.httpMethod){this.sendOperationFn=e,this.args=t,this.spec=r,this.requestPath=i,this.requestMethod=a}sendInitialRequest(){return tslib.__awaiter(this,void 0,void 0,function*(){return this.sendOperationFn(this.args,this.spec)})}sendPollRequest(t){return tslib.__awaiter(this,void 0,void 0,function*(){var e=this.spec,e=tslib.__rest(e,["requestBody"]);return this.sendOperationFn(this.args,Object.assign(Object.assign({},e),{path:t,httpMethod:"GET"}))})}}class VaultsImpl{constructor(e){this.client=e}listBySubscriptionId(e){const t=this.listBySubscriptionIdPagingAll(e);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listBySubscriptionIdPagingPage(e)}}listBySubscriptionIdPagingPage(r){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listBySubscriptionId(r));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listBySubscriptionIdNext(t,r)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listBySubscriptionIdPagingAll(s){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var r,i=tslib.__asyncValues(this.listBySubscriptionIdPagingPage(s));!(r=yield tslib.__await(i.next())).done;){var a=r.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(t)throw t.error}}})}listByResourceGroup(e,t){const r=this.listByResourceGroupPagingAll(e,t);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByResourceGroupPagingPage(e,t)}}listByResourceGroupPagingPage(r,i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(r,i));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listByResourceGroupNext(r,t,i)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(s,n){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var r,i=tslib.__asyncValues(this.listByResourceGroupPagingPage(s,n));!(r=yield tslib.__await(i.next())).done;){var a=r.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(t)throw t.error}}})}_listBySubscriptionId(e){return this.client.sendOperationRequest({options:e},listBySubscriptionIdOperationSpec)}_listByResourceGroup(e,t){return this.client.sendOperationRequest({resourceGroupName:e,options:t},listByResourceGroupOperationSpec)}get(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,options:r},getOperationSpec$1)}beginCreateOrUpdate(r,i,a,n){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=new LroImpl((t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield s(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:r,vaultName:i,vault:a,options:n},createOrUpdateOperationSpec$1);const t=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield t.poll(),t})}beginCreateOrUpdateAndWait(t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(t,r,i,a);return e.pollUntilDone()})}delete(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,options:r},deleteOperationSpec)}beginUpdate(r,i,a,n){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=new LroImpl((t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield s(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:r,vaultName:i,vault:a,options:n},updateOperationSpec$1);const t=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield t.poll(),t})}beginUpdateAndWait(t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(t,r,i,a);return e.pollUntilDone()})}_listBySubscriptionIdNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listBySubscriptionIdNextOperationSpec)}_listByResourceGroupNext(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:t,options:r},listByResourceGroupNextOperationSpec)}}const serializer$4=coreClient__namespace.createSerializer(Mappers,!1),listBySubscriptionIdOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/vaults",httpMethod:"GET",responses:{200:{bodyMapper:VaultList},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer$4},listByResourceGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults",httpMethod:"GET",responses:{200:{bodyMapper:VaultList},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName],headerParameters:[accept],serializer:serializer$4},getOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}",httpMethod:"GET",responses:{200:{bodyMapper:Vault},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName],headerParameters:[accept],serializer:serializer$4},createOrUpdateOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}",httpMethod:"PUT",responses:{200:{bodyMapper:Vault},201:{bodyMapper:Vault},202:{bodyMapper:Vault},204:{bodyMapper:Vault},default:{bodyMapper:CloudError}},requestBody:vault,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName],headerParameters:[contentType,accept],mediaType:"json",serializer:serializer$4},deleteOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}",httpMethod:"DELETE",responses:{200:{},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName],headerParameters:[accept],serializer:serializer$4},updateOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}",httpMethod:"PATCH",responses:{200:{bodyMapper:Vault},201:{bodyMapper:Vault},202:{bodyMapper:Vault},204:{bodyMapper:Vault},default:{bodyMapper:CloudError}},requestBody:vault1,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName],headerParameters:[contentType,accept],mediaType:"json",serializer:serializer$4},listBySubscriptionIdNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:VaultList},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,nextLink],headerParameters:[accept],serializer:serializer$4},listByResourceGroupNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:VaultList},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink],headerParameters:[accept],serializer:serializer$4};class OperationsImpl{constructor(e){this.client=e}list(e){const t=this.listPagingAll(e);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(r){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(r));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listNext(t,r)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(s){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var r,i=tslib.__asyncValues(this.listPagingPage(s));!(r=yield tslib.__await(i.next())).done;){var a=r.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(t)throw t.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listNextOperationSpec)}}const serializer$3=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.RecoveryServices/operations",httpMethod:"GET",responses:{200:{bodyMapper:ClientDiscoveryResponse},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$3},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ClientDiscoveryResponse},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$3};class VaultExtendedInfoImpl{constructor(e){this.client=e}get(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,options:r},getOperationSpec)}createOrUpdate(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,resourceExtendedInfoDetails:r,options:i},createOrUpdateOperationSpec)}update(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,resourceExtendedInfoDetails:r,options:i},updateOperationSpec)}}const serializer$2=coreClient__namespace.createSerializer(Mappers,!1),getOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/extendedInformation/vaultExtendedInfo",httpMethod:"GET",responses:{200:{bodyMapper:VaultExtendedInfoResource},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName],headerParameters:[accept],serializer:serializer$2},createOrUpdateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/extendedInformation/vaultExtendedInfo",httpMethod:"PUT",responses:{200:{bodyMapper:VaultExtendedInfoResource},default:{bodyMapper:CloudError}},requestBody:resourceExtendedInfoDetails,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName],headerParameters:[contentType,accept],mediaType:"json",serializer:serializer$2},updateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/extendedInformation/vaultExtendedInfo",httpMethod:"PATCH",responses:{200:{bodyMapper:VaultExtendedInfoResource},default:{bodyMapper:CloudError}},requestBody:resourceExtendedInfoDetails,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName],headerParameters:[contentType,accept],mediaType:"json",serializer:serializer$2};class UsagesImpl{constructor(e){this.client=e}listByVaults(e,t,r){const i=this.listByVaultsPagingAll(e,t,r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByVaultsPagingPage(e,t,r)}}listByVaultsPagingPage(t,r,i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByVaults(t,r,i));yield yield tslib.__await(e.value||[])})}listByVaultsPagingAll(s,n,o){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var r,i=tslib.__asyncValues(this.listByVaultsPagingPage(s,n,o));!(r=yield tslib.__await(i.next())).done;){var a=r.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(t)throw t.error}}})}_listByVaults(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,options:r},listByVaultsOperationSpec)}}const serializer$1=coreClient__namespace.createSerializer(Mappers,!1),listByVaultsOperationSpec={path:"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/usages",httpMethod:"GET",responses:{200:{bodyMapper:VaultUsageList}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName],headerParameters:[accept],serializer:serializer$1};class RecoveryServicesClient extends coreClient__namespace.ServiceClient{constructor(e,t,r){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===t)throw new Error("'subscriptionId' cannot be null");var i={requestContentType:"application/json; charset=utf-8",credential:e},a="azsdk-js-arm-recoveryservices/5.1.0",a=(r=r||{}).userAgentOptions&&r.userAgentOptions.userAgentPrefix?r.userAgentOptions.userAgentPrefix+" "+a:a,i=(r.credentialScopes||(r.credentialScopes=["https://management.azure.com/.default"]),Object.assign(Object.assign(Object.assign({},i),r),{userAgentOptions:{userAgentPrefix:a},baseUri:null!=(a=null!=(i=r.endpoint)?i:r.baseUri)?a:"https://management.azure.com"}));super(i);let s=!1;if(null!=r&&r.pipeline&&0<r.pipeline.getOrderedPolicies().length){const n=r.pipeline.getOrderedPolicies();s=n.some(e=>e.name===coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName)}r&&r.pipeline&&0!=r.pipeline.getOrderedPolicies().length&&s||(this.pipeline.removePolicy({name:coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName}),this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({credential:e,scopes:""+i.credentialScopes,challengeCallbacks:{authorizeRequestOnChallenge:coreClient__namespace.authorizeRequestOnClaimChallenge}}))),this.subscriptionId=t,this.$host=r.$host||"https://management.azure.com",this.apiVersion=r.apiVersion||"2022-04-01",this.vaultCertificates=new VaultCertificatesImpl(this),this.registeredIdentities=new RegisteredIdentitiesImpl(this),this.replicationUsages=new ReplicationUsagesImpl(this),this.privateLinkResourcesOperations=new PrivateLinkResourcesOperationsImpl(this),this.recoveryServices=new RecoveryServicesImpl(this),this.vaults=new VaultsImpl(this),this.operations=new OperationsImpl(this),this.vaultExtendedInfo=new VaultExtendedInfoImpl(this),this.usages=new UsagesImpl(this),this.addCustomApiVersionPolicy(r.apiVersion)}addCustomApiVersionPolicy(a){a&&this.pipeline.addPolicy({name:"CustomApiVersionPolicy",sendRequest(r,i){return tslib.__awaiter(this,void 0,void 0,function*(){const e=r.url.split("?");if(1<e.length){const t=e[1].split("&").map(e=>-1<e.indexOf("api-version")?"api-version="+a:e);r.url=e[0]+"?"+t.join("&")}return i(r)})}})}getOperationStatus(e,t,r,i){return this.sendOperationRequest({resourceGroupName:e,vaultName:t,operationId:r,options:i},getOperationStatusOperationSpec)}getOperationResult(e,t,r,i){return this.sendOperationRequest({resourceGroupName:e,vaultName:t,operationId:r,options:i},getOperationResultOperationSpec)}}const serializer=coreClient__namespace.createSerializer(Mappers,!1),getOperationStatusOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/operationStatus/{operationId}",httpMethod:"GET",responses:{200:{bodyMapper:OperationResource},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName,operationId],headerParameters:[accept],serializer:serializer},getOperationResultOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/operationResults/{operationId}",httpMethod:"GET",responses:{200:{bodyMapper:Vault},202:{},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName,operationId],headerParameters:[accept],serializer:serializer};exports.RecoveryServicesClient=RecoveryServicesClient;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var tslib=require("tslib"),coreClient=require("@azure/core-client"),coreRestPipeline=require("@azure/core-rest-pipeline"),coreLro=require("@azure/core-lro");function _interopNamespace(r){var i;return r&&r.__esModule?r:(i=Object.create(null),r&&Object.keys(r).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(r,e),Object.defineProperty(i,e,t.get?t:{enumerable:!0,get:function(){return r[e]}}))}),i.default=r,Object.freeze(i))}var coreClient__namespace=_interopNamespace(coreClient),coreRestPipeline__namespace=_interopNamespace(coreRestPipeline);exports.KnownAuthType=void 0,function(e){e.Invalid="Invalid",e.ACS="ACS",e.AAD="AAD",e.AccessControlService="AccessControlService",e.AzureActiveDirectory="AzureActiveDirectory"}(exports.KnownAuthType||(exports.KnownAuthType={})),exports.KnownResourceIdentityType=void 0,function(e){e.SystemAssigned="SystemAssigned",e.None="None",e.UserAssigned="UserAssigned",e.SystemAssignedUserAssigned="SystemAssigned, UserAssigned"}(exports.KnownResourceIdentityType||(exports.KnownResourceIdentityType={})),exports.KnownVaultUpgradeState=void 0,function(e){e.Unknown="Unknown",e.InProgress="InProgress",e.Upgraded="Upgraded",e.Failed="Failed"}(exports.KnownVaultUpgradeState||(exports.KnownVaultUpgradeState={})),exports.KnownTriggerType=void 0,function(e){e.UserTriggered="UserTriggered",e.ForcedUpgrade="ForcedUpgrade"}(exports.KnownTriggerType||(exports.KnownTriggerType={})),exports.KnownProvisioningState=void 0,function(e){e.Succeeded="Succeeded",e.Deleting="Deleting",e.Failed="Failed",e.Pending="Pending"}(exports.KnownProvisioningState||(exports.KnownProvisioningState={})),exports.KnownPrivateEndpointConnectionStatus=void 0,function(e){e.Pending="Pending",e.Approved="Approved",e.Rejected="Rejected",e.Disconnected="Disconnected"}(exports.KnownPrivateEndpointConnectionStatus||(exports.KnownPrivateEndpointConnectionStatus={})),exports.KnownVaultPrivateEndpointState=void 0,function(e){e.None="None",e.Enabled="Enabled"}(exports.KnownVaultPrivateEndpointState||(exports.KnownVaultPrivateEndpointState={})),exports.KnownInfrastructureEncryptionState=void 0,function(e){e.Enabled="Enabled",e.Disabled="Disabled"}(exports.KnownInfrastructureEncryptionState||(exports.KnownInfrastructureEncryptionState={})),exports.KnownResourceMoveState=void 0,function(e){e.Unknown="Unknown",e.InProgress="InProgress",e.PrepareFailed="PrepareFailed",e.CommitFailed="CommitFailed",e.PrepareTimedout="PrepareTimedout",e.CommitTimedout="CommitTimedout",e.MoveSucceeded="MoveSucceeded",e.Failure="Failure",e.CriticalFailure="CriticalFailure",e.PartialSuccess="PartialSuccess"}(exports.KnownResourceMoveState||(exports.KnownResourceMoveState={})),exports.KnownBackupStorageVersion=void 0,function(e){e.V1="V1",e.V2="V2",e.Unassigned="Unassigned"}(exports.KnownBackupStorageVersion||(exports.KnownBackupStorageVersion={})),exports.KnownAlertsState=void 0,function(e){e.Enabled="Enabled",e.Disabled="Disabled"}(exports.KnownAlertsState||(exports.KnownAlertsState={})),exports.KnownStandardTierStorageRedundancy=void 0,function(e){e.LocallyRedundant="LocallyRedundant",e.GeoRedundant="GeoRedundant",e.ZoneRedundant="ZoneRedundant"}(exports.KnownStandardTierStorageRedundancy||(exports.KnownStandardTierStorageRedundancy={})),exports.KnownCrossRegionRestore=void 0,function(e){e.Enabled="Enabled",e.Disabled="Disabled"}(exports.KnownCrossRegionRestore||(exports.KnownCrossRegionRestore={})),exports.KnownSkuName=void 0,function(e){e.Standard="Standard",e.RS0="RS0"}(exports.KnownSkuName||(exports.KnownSkuName={})),exports.KnownCreatedByType=void 0,function(e){e.User="User",e.Application="Application",e.ManagedIdentity="ManagedIdentity",e.Key="Key"}(exports.KnownCreatedByType||(exports.KnownCreatedByType={})),exports.KnownUsagesUnit=void 0,function(e){e.Count="Count",e.Bytes="Bytes",e.Seconds="Seconds",e.Percent="Percent",e.CountPerSecond="CountPerSecond",e.BytesPerSecond="BytesPerSecond"}(exports.KnownUsagesUnit||(exports.KnownUsagesUnit={}));const CertificateRequest={type:{name:"Composite",className:"CertificateRequest",modelProperties:{properties:{serializedName:"properties",type:{name:"Composite",className:"RawCertificateData"}}}}},RawCertificateData={type:{name:"Composite",className:"RawCertificateData",modelProperties:{authType:{serializedName:"authType",type:{name:"String"}},certificate:{serializedName:"certificate",type:{name:"ByteArray"}}}}},VaultCertificateResponse={type:{name:"Composite",className:"VaultCertificateResponse",modelProperties:{name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},id:{serializedName:"id",readOnly:!0,type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Composite",className:"ResourceCertificateDetails"}}}}},ResourceCertificateDetails={type:{name:"Composite",className:"ResourceCertificateDetails",uberParent:"ResourceCertificateDetails",polymorphicDiscriminator:{serializedName:"authType",clientName:"authType"},modelProperties:{authType:{serializedName:"authType",required:!0,type:{name:"String"}},certificate:{serializedName:"certificate",type:{name:"ByteArray"}},friendlyName:{serializedName:"friendlyName",type:{name:"String"}},issuer:{serializedName:"issuer",type:{name:"String"}},resourceId:{serializedName:"resourceId",type:{name:"Number"}},subject:{serializedName:"subject",type:{name:"String"}},thumbprint:{serializedName:"thumbprint",type:{name:"String"}},validFrom:{serializedName:"validFrom",type:{name:"DateTime"}},validTo:{serializedName:"validTo",type:{name:"DateTime"}}}}},ReplicationUsageList={type:{name:"Composite",className:"ReplicationUsageList",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"ReplicationUsage"}}}}}}},ReplicationUsage={type:{name:"Composite",className:"ReplicationUsage",modelProperties:{monitoringSummary:{serializedName:"monitoringSummary",type:{name:"Composite",className:"MonitoringSummary"}},jobsSummary:{serializedName:"jobsSummary",type:{name:"Composite",className:"JobsSummary"}},protectedItemCount:{serializedName:"protectedItemCount",type:{name:"Number"}},recoveryPlanCount:{serializedName:"recoveryPlanCount",type:{name:"Number"}},registeredServersCount:{serializedName:"registeredServersCount",type:{name:"Number"}},recoveryServicesProviderAuthType:{serializedName:"recoveryServicesProviderAuthType",type:{name:"Number"}}}}},MonitoringSummary={type:{name:"Composite",className:"MonitoringSummary",modelProperties:{unHealthyVmCount:{serializedName:"unHealthyVmCount",type:{name:"Number"}},unHealthyProviderCount:{serializedName:"unHealthyProviderCount",type:{name:"Number"}},eventsCount:{serializedName:"eventsCount",type:{name:"Number"}},deprecatedProviderCount:{serializedName:"deprecatedProviderCount",type:{name:"Number"}},supportedProviderCount:{serializedName:"supportedProviderCount",type:{name:"Number"}},unsupportedProviderCount:{serializedName:"unsupportedProviderCount",type:{name:"Number"}}}}},JobsSummary={type:{name:"Composite",className:"JobsSummary",modelProperties:{failedJobs:{serializedName:"failedJobs",type:{name:"Number"}},suspendedJobs:{serializedName:"suspendedJobs",type:{name:"Number"}},inProgressJobs:{serializedName:"inProgressJobs",type:{name:"Number"}}}}},PrivateLinkResources={type:{name:"Composite",className:"PrivateLinkResources",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateLinkResource"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},PrivateLinkResource={type:{name:"Composite",className:"PrivateLinkResource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},groupId:{serializedName:"properties.groupId",readOnly:!0,type:{name:"String"}},requiredMembers:{serializedName:"properties.requiredMembers",readOnly:!0,type:{name:"Sequence",element:{type:{name:"String"}}}},requiredZoneNames:{serializedName:"properties.requiredZoneNames",readOnly:!0,type:{name:"Sequence",element:{type:{name:"String"}}}}}}},CloudError={type:{name:"Composite",className:"CloudError",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorModel"}}}}},ErrorModel={type:{name:"Composite",className:"ErrorModel",modelProperties:{additionalInfo:{serializedName:"additionalInfo",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ErrorAdditionalInfo"}}}},code:{serializedName:"code",readOnly:!0,type:{name:"String"}},details:{serializedName:"details",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ErrorModel"}}}},message:{serializedName:"message",readOnly:!0,type:{name:"String"}},target:{serializedName:"target",readOnly:!0,type:{name:"String"}}}}},ErrorAdditionalInfo={type:{name:"Composite",className:"ErrorAdditionalInfo",modelProperties:{info:{serializedName:"info",readOnly:!0,type:{name:"Dictionary",value:{type:{name:"any"}}}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}}}}},CheckNameAvailabilityParameters={type:{name:"Composite",className:"CheckNameAvailabilityParameters",modelProperties:{type:{serializedName:"type",type:{name:"String"}},name:{serializedName:"name",type:{name:"String"}}}}},CheckNameAvailabilityResult={type:{name:"Composite",className:"CheckNameAvailabilityResult",modelProperties:{nameAvailable:{serializedName:"nameAvailable",type:{name:"Boolean"}},reason:{serializedName:"reason",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}}}}},VaultList={type:{name:"Composite",className:"VaultList",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Vault"}}}},nextLink:{serializedName:"nextLink",readOnly:!0,type:{name:"String"}}}}},IdentityData={type:{name:"Composite",className:"IdentityData",modelProperties:{principalId:{serializedName:"principalId",readOnly:!0,type:{name:"String"}},tenantId:{serializedName:"tenantId",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",required:!0,type:{name:"String"}},userAssignedIdentities:{serializedName:"userAssignedIdentities",type:{name:"Dictionary",value:{type:{name:"Composite",className:"UserIdentity"}}}}}}},UserIdentity={type:{name:"Composite",className:"UserIdentity",modelProperties:{principalId:{serializedName:"principalId",readOnly:!0,type:{name:"String"}},clientId:{serializedName:"clientId",readOnly:!0,type:{name:"String"}}}}},VaultProperties={type:{name:"Composite",className:"VaultProperties",modelProperties:{provisioningState:{serializedName:"provisioningState",readOnly:!0,type:{name:"String"}},upgradeDetails:{serializedName:"upgradeDetails",type:{name:"Composite",className:"UpgradeDetails"}},privateEndpointConnections:{serializedName:"privateEndpointConnections",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnectionVaultProperties"}}}},privateEndpointStateForBackup:{serializedName:"privateEndpointStateForBackup",readOnly:!0,type:{name:"String"}},privateEndpointStateForSiteRecovery:{serializedName:"privateEndpointStateForSiteRecovery",readOnly:!0,type:{name:"String"}},encryption:{serializedName:"encryption",type:{name:"Composite",className:"VaultPropertiesEncryption"}},moveDetails:{serializedName:"moveDetails",type:{name:"Composite",className:"VaultPropertiesMoveDetails"}},moveState:{serializedName:"moveState",readOnly:!0,type:{name:"String"}},backupStorageVersion:{serializedName:"backupStorageVersion",readOnly:!0,type:{name:"String"}},monitoringSettings:{serializedName:"monitoringSettings",type:{name:"Composite",className:"MonitoringSettings"}},redundancySettings:{serializedName:"redundancySettings",type:{name:"Composite",className:"VaultPropertiesRedundancySettings"}}}}},UpgradeDetails={type:{name:"Composite",className:"UpgradeDetails",modelProperties:{operationId:{serializedName:"operationId",readOnly:!0,type:{name:"String"}},startTimeUtc:{serializedName:"startTimeUtc",readOnly:!0,type:{name:"DateTime"}},lastUpdatedTimeUtc:{serializedName:"lastUpdatedTimeUtc",readOnly:!0,type:{name:"DateTime"}},endTimeUtc:{serializedName:"endTimeUtc",readOnly:!0,type:{name:"DateTime"}},status:{serializedName:"status",readOnly:!0,type:{name:"String"}},message:{serializedName:"message",readOnly:!0,type:{name:"String"}},triggerType:{serializedName:"triggerType",readOnly:!0,type:{name:"String"}},upgradedResourceId:{serializedName:"upgradedResourceId",readOnly:!0,type:{name:"String"}},previousResourceId:{serializedName:"previousResourceId",readOnly:!0,type:{name:"String"}}}}},PrivateEndpointConnectionVaultProperties={type:{name:"Composite",className:"PrivateEndpointConnectionVaultProperties",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Composite",className:"PrivateEndpointConnection"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},location:{serializedName:"location",readOnly:!0,type:{name:"String"}}}}},PrivateEndpointConnection={type:{name:"Composite",className:"PrivateEndpointConnection",modelProperties:{provisioningState:{serializedName:"provisioningState",readOnly:!0,type:{name:"String"}},privateEndpoint:{serializedName:"privateEndpoint",type:{name:"Composite",className:"PrivateEndpoint"}},privateLinkServiceConnectionState:{serializedName:"privateLinkServiceConnectionState",type:{name:"Composite",className:"PrivateLinkServiceConnectionState"}}}}},PrivateEndpoint={type:{name:"Composite",className:"PrivateEndpoint",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}}}}},PrivateLinkServiceConnectionState={type:{name:"Composite",className:"PrivateLinkServiceConnectionState",modelProperties:{status:{serializedName:"status",readOnly:!0,type:{name:"String"}},description:{serializedName:"description",readOnly:!0,type:{name:"String"}},actionsRequired:{serializedName:"actionsRequired",readOnly:!0,type:{name:"String"}}}}},VaultPropertiesEncryption={type:{name:"Composite",className:"VaultPropertiesEncryption",modelProperties:{keyVaultProperties:{serializedName:"keyVaultProperties",type:{name:"Composite",className:"CmkKeyVaultProperties"}},kekIdentity:{serializedName:"kekIdentity",type:{name:"Composite",className:"CmkKekIdentity"}},infrastructureEncryption:{serializedName:"infrastructureEncryption",type:{name:"String"}}}}},CmkKeyVaultProperties={type:{name:"Composite",className:"CmkKeyVaultProperties",modelProperties:{keyUri:{serializedName:"keyUri",type:{name:"String"}}}}},CmkKekIdentity={type:{name:"Composite",className:"CmkKekIdentity",modelProperties:{useSystemAssignedIdentity:{serializedName:"useSystemAssignedIdentity",type:{name:"Boolean"}},userAssignedIdentity:{serializedName:"userAssignedIdentity",type:{name:"String"}}}}},VaultPropertiesMoveDetails={type:{name:"Composite",className:"VaultPropertiesMoveDetails",modelProperties:{operationId:{serializedName:"operationId",readOnly:!0,type:{name:"String"}},startTimeUtc:{serializedName:"startTimeUtc",readOnly:!0,type:{name:"DateTime"}},completionTimeUtc:{serializedName:"completionTimeUtc",readOnly:!0,type:{name:"DateTime"}},sourceResourceId:{serializedName:"sourceResourceId",readOnly:!0,type:{name:"String"}},targetResourceId:{serializedName:"targetResourceId",readOnly:!0,type:{name:"String"}}}}},MonitoringSettings={type:{name:"Composite",className:"MonitoringSettings",modelProperties:{azureMonitorAlertSettings:{serializedName:"azureMonitorAlertSettings",type:{name:"Composite",className:"AzureMonitorAlertSettings"}},classicAlertSettings:{serializedName:"classicAlertSettings",type:{name:"Composite",className:"ClassicAlertSettings"}}}}},AzureMonitorAlertSettings={type:{name:"Composite",className:"AzureMonitorAlertSettings",modelProperties:{alertsForAllJobFailures:{serializedName:"alertsForAllJobFailures",type:{name:"String"}}}}},ClassicAlertSettings={type:{name:"Composite",className:"ClassicAlertSettings",modelProperties:{alertsForCriticalOperations:{serializedName:"alertsForCriticalOperations",type:{name:"String"}}}}},VaultPropertiesRedundancySettings={type:{name:"Composite",className:"VaultPropertiesRedundancySettings",modelProperties:{standardTierStorageRedundancy:{serializedName:"standardTierStorageRedundancy",readOnly:!0,type:{name:"String"}},crossRegionRestore:{serializedName:"crossRegionRestore",readOnly:!0,type:{name:"String"}}}}},Sku={type:{name:"Composite",className:"Sku",modelProperties:{name:{serializedName:"name",required:!0,type:{name:"String"}},tier:{serializedName:"tier",type:{name:"String"}},family:{serializedName:"family",type:{name:"String"}},size:{serializedName:"size",type:{name:"String"}},capacity:{serializedName:"capacity",type:{name:"String"}}}}},SystemData={type:{name:"Composite",className:"SystemData",modelProperties:{createdBy:{serializedName:"createdBy",type:{name:"String"}},createdByType:{serializedName:"createdByType",type:{name:"String"}},createdAt:{serializedName:"createdAt",type:{name:"DateTime"}},lastModifiedBy:{serializedName:"lastModifiedBy",type:{name:"String"}},lastModifiedByType:{serializedName:"lastModifiedByType",type:{name:"String"}},lastModifiedAt:{serializedName:"lastModifiedAt",type:{name:"DateTime"}}}}},Resource={type:{name:"Composite",className:"Resource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},etag:{serializedName:"etag",type:{name:"String"}}}}},ClientDiscoveryResponse={type:{name:"Composite",className:"ClientDiscoveryResponse",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClientDiscoveryValueForSingleApi"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},ClientDiscoveryValueForSingleApi={type:{name:"Composite",className:"ClientDiscoveryValueForSingleApi",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"ClientDiscoveryDisplay"}},origin:{serializedName:"origin",type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Composite",className:"ClientDiscoveryForProperties"}}}}},ClientDiscoveryDisplay={type:{name:"Composite",className:"ClientDiscoveryDisplay",modelProperties:{provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}}}}},ClientDiscoveryForProperties={type:{name:"Composite",className:"ClientDiscoveryForProperties",modelProperties:{serviceSpecification:{serializedName:"serviceSpecification",type:{name:"Composite",className:"ClientDiscoveryForServiceSpecification"}}}}},ClientDiscoveryForServiceSpecification={type:{name:"Composite",className:"ClientDiscoveryForServiceSpecification",modelProperties:{logSpecifications:{serializedName:"logSpecifications",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClientDiscoveryForLogSpecification"}}}}}}},ClientDiscoveryForLogSpecification={type:{name:"Composite",className:"ClientDiscoveryForLogSpecification",modelProperties:{name:{serializedName:"name",type:{name:"String"}},displayName:{serializedName:"displayName",type:{name:"String"}},blobDuration:{serializedName:"blobDuration",type:{name:"String"}}}}},OperationResource={type:{name:"Composite",className:"OperationResource",modelProperties:{endTime:{serializedName:"endTime",type:{name:"DateTime"}},error:{serializedName:"error",type:{name:"Composite",className:"ErrorModel"}},id:{serializedName:"id",type:{name:"String"}},name:{serializedName:"name",type:{name:"String"}},status:{serializedName:"status",type:{name:"String"}},startTime:{serializedName:"startTime",type:{name:"DateTime"}}}}},VaultUsageList={type:{name:"Composite",className:"VaultUsageList",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"VaultUsage"}}}}}}},VaultUsage={type:{name:"Composite",className:"VaultUsage",modelProperties:{unit:{serializedName:"unit",type:{name:"String"}},quotaPeriod:{serializedName:"quotaPeriod",type:{name:"String"}},nextResetTime:{serializedName:"nextResetTime",type:{name:"DateTime"}},currentValue:{serializedName:"currentValue",type:{name:"Number"}},limit:{serializedName:"limit",type:{name:"Number"}},name:{serializedName:"name",type:{name:"Composite",className:"NameInfo"}}}}},NameInfo={type:{name:"Composite",className:"NameInfo",modelProperties:{value:{serializedName:"value",type:{name:"String"}},localizedValue:{serializedName:"localizedValue",type:{name:"String"}}}}},ResourceCertificateAndAadDetails={serializedName:"AzureActiveDirectory",type:{name:"Composite",className:"ResourceCertificateAndAadDetails",uberParent:"ResourceCertificateDetails",polymorphicDiscriminator:ResourceCertificateDetails.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ResourceCertificateDetails.type.modelProperties),{aadAuthority:{serializedName:"aadAuthority",required:!0,type:{name:"String"}},aadTenantId:{serializedName:"aadTenantId",required:!0,type:{name:"String"}},servicePrincipalClientId:{serializedName:"servicePrincipalClientId",required:!0,type:{name:"String"}},servicePrincipalObjectId:{serializedName:"servicePrincipalObjectId",required:!0,type:{name:"String"}},azureManagementEndpointAudience:{serializedName:"azureManagementEndpointAudience",required:!0,type:{name:"String"}},serviceResourceId:{serializedName:"serviceResourceId",type:{name:"String"}},aadAudience:{serializedName:"aadAudience",type:{name:"String"}}})}},ResourceCertificateAndAcsDetails={serializedName:"AccessControlService",type:{name:"Composite",className:"ResourceCertificateAndAcsDetails",uberParent:"ResourceCertificateDetails",polymorphicDiscriminator:ResourceCertificateDetails.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},ResourceCertificateDetails.type.modelProperties),{globalAcsNamespace:{serializedName:"globalAcsNamespace",required:!0,type:{name:"String"}},globalAcsHostName:{serializedName:"globalAcsHostName",required:!0,type:{name:"String"}},globalAcsRPRealm:{serializedName:"globalAcsRPRealm",required:!0,type:{name:"String"}}})}},TrackedResource={type:{name:"Composite",className:"TrackedResource",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{location:{serializedName:"location",required:!0,type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}}})}},PatchTrackedResource={type:{name:"Composite",className:"PatchTrackedResource",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{location:{serializedName:"location",type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}}})}},VaultExtendedInfoResource={type:{name:"Composite",className:"VaultExtendedInfoResource",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{integrityKey:{serializedName:"properties.integrityKey",type:{name:"String"}},encryptionKey:{serializedName:"properties.encryptionKey",type:{name:"String"}},encryptionKeyThumbprint:{serializedName:"properties.encryptionKeyThumbprint",type:{name:"String"}},algorithm:{serializedName:"properties.algorithm",type:{name:"String"}}})}},Vault={type:{name:"Composite",className:"Vault",modelProperties:Object.assign(Object.assign({},TrackedResource.type.modelProperties),{identity:{serializedName:"identity",type:{name:"Composite",className:"IdentityData"}},properties:{serializedName:"properties",type:{name:"Composite",className:"VaultProperties"}},sku:{serializedName:"sku",type:{name:"Composite",className:"Sku"}},systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}}})}},PatchVault={type:{name:"Composite",className:"PatchVault",modelProperties:Object.assign(Object.assign({},PatchTrackedResource.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"VaultProperties"}},sku:{serializedName:"sku",type:{name:"Composite",className:"Sku"}},identity:{serializedName:"identity",type:{name:"Composite",className:"IdentityData"}}})}};let discriminators={ResourceCertificateDetails:ResourceCertificateDetails,"ResourceCertificateDetails.AzureActiveDirectory":ResourceCertificateAndAadDetails,"ResourceCertificateDetails.AccessControlService":ResourceCertificateAndAcsDetails};var Mappers=Object.freeze({__proto__:null,CertificateRequest:CertificateRequest,RawCertificateData:RawCertificateData,VaultCertificateResponse:VaultCertificateResponse,ResourceCertificateDetails:ResourceCertificateDetails,ReplicationUsageList:ReplicationUsageList,ReplicationUsage:ReplicationUsage,MonitoringSummary:MonitoringSummary,JobsSummary:JobsSummary,PrivateLinkResources:PrivateLinkResources,PrivateLinkResource:PrivateLinkResource,CloudError:CloudError,ErrorModel:ErrorModel,ErrorAdditionalInfo:ErrorAdditionalInfo,CheckNameAvailabilityParameters:CheckNameAvailabilityParameters,CheckNameAvailabilityResult:CheckNameAvailabilityResult,VaultList:VaultList,IdentityData:IdentityData,UserIdentity:UserIdentity,VaultProperties:VaultProperties,UpgradeDetails:UpgradeDetails,PrivateEndpointConnectionVaultProperties:PrivateEndpointConnectionVaultProperties,PrivateEndpointConnection:PrivateEndpointConnection,PrivateEndpoint:PrivateEndpoint,PrivateLinkServiceConnectionState:PrivateLinkServiceConnectionState,VaultPropertiesEncryption:VaultPropertiesEncryption,CmkKeyVaultProperties:CmkKeyVaultProperties,CmkKekIdentity:CmkKekIdentity,VaultPropertiesMoveDetails:VaultPropertiesMoveDetails,MonitoringSettings:MonitoringSettings,AzureMonitorAlertSettings:AzureMonitorAlertSettings,ClassicAlertSettings:ClassicAlertSettings,VaultPropertiesRedundancySettings:VaultPropertiesRedundancySettings,Sku:Sku,SystemData:SystemData,Resource:Resource,ClientDiscoveryResponse:ClientDiscoveryResponse,ClientDiscoveryValueForSingleApi:ClientDiscoveryValueForSingleApi,ClientDiscoveryDisplay:ClientDiscoveryDisplay,ClientDiscoveryForProperties:ClientDiscoveryForProperties,ClientDiscoveryForServiceSpecification:ClientDiscoveryForServiceSpecification,ClientDiscoveryForLogSpecification:ClientDiscoveryForLogSpecification,OperationResource:OperationResource,VaultUsageList:VaultUsageList,VaultUsage:VaultUsage,NameInfo:NameInfo,ResourceCertificateAndAadDetails:ResourceCertificateAndAadDetails,ResourceCertificateAndAcsDetails:ResourceCertificateAndAcsDetails,TrackedResource:TrackedResource,PatchTrackedResource:PatchTrackedResource,VaultExtendedInfoResource:VaultExtendedInfoResource,Vault:Vault,PatchVault:PatchVault,discriminators:discriminators});const contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},certificateRequest={parameterPath:"certificateRequest",mapper:CertificateRequest},accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2022-04-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},resourceGroupName={parameterPath:"resourceGroupName",mapper:{serializedName:"resourceGroupName",required:!0,type:{name:"String"}}},vaultName={parameterPath:"vaultName",mapper:{serializedName:"vaultName",required:!0,type:{name:"String"}}},certificateName={parameterPath:"certificateName",mapper:{serializedName:"certificateName",required:!0,type:{name:"String"}}},identityName={parameterPath:"identityName",mapper:{serializedName:"identityName",required:!0,type:{name:"String"}}},privateLinkResourceName={parameterPath:"privateLinkResourceName",mapper:{serializedName:"privateLinkResourceName",required:!0,type:{name:"String"}}},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0},input={parameterPath:"input",mapper:CheckNameAvailabilityParameters},location={parameterPath:"location",mapper:{serializedName:"location",required:!0,type:{name:"String"}}},vault={parameterPath:"vault",mapper:Vault},vault1={parameterPath:"vault",mapper:PatchVault},resourceExtendedInfoDetails={parameterPath:"resourceExtendedInfoDetails",mapper:VaultExtendedInfoResource},operationId={parameterPath:"operationId",mapper:{serializedName:"operationId",required:!0,type:{name:"String"}}};class VaultCertificatesImpl{constructor(e){this.client=e}create(e,t,r,i,a){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,certificateName:r,certificateRequest:i,options:a},createOperationSpec)}}const serializer$9=coreClient__namespace.createSerializer(Mappers,!1),createOperationSpec={path:"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/certificates/{certificateName}",httpMethod:"PUT",responses:{200:{bodyMapper:VaultCertificateResponse}},requestBody:certificateRequest,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName,certificateName],headerParameters:[contentType,accept],mediaType:"json",serializer:serializer$9};class RegisteredIdentitiesImpl{constructor(e){this.client=e}delete(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,identityName:r,options:i},deleteOperationSpec$1)}}const serializer$8=coreClient__namespace.createSerializer(Mappers,!1),deleteOperationSpec$1={path:"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/registeredIdentities/{identityName}",httpMethod:"DELETE",responses:{204:{}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName,identityName],serializer:serializer$8};class ReplicationUsagesImpl{constructor(e){this.client=e}list(e,t,r){const i=this.listPagingAll(e,t,r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e,t,r)}}listPagingPage(t,r,i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(t,r,i));yield yield tslib.__await(e.value||[])})}listPagingAll(s,n,o){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var r,i=tslib.__asyncValues(this.listPagingPage(s,n,o));!(r=yield tslib.__await(i.next())).done;){var a=r.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(t)throw t.error}}})}_list(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,options:r},listOperationSpec$2)}}const serializer$7=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec$2={path:"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/replicationUsages",httpMethod:"GET",responses:{200:{bodyMapper:ReplicationUsageList}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName],headerParameters:[accept],serializer:serializer$7};class PrivateLinkResourcesOperationsImpl{constructor(e){this.client=e}list(e,t,r){const i=this.listPagingAll(e,t,r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e,t,r)}}listPagingPage(r,i,a){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(r,i,a));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listNext(r,i,t,a)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(s,n,o){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var r,i=tslib.__asyncValues(this.listPagingPage(s,n,o));!(r=yield tslib.__await(i.next())).done;){var a=r.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(t)throw t.error}}})}_list(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,options:r},listOperationSpec$1)}get(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,privateLinkResourceName:r,options:i},getOperationSpec$2)}_listNext(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,nextLink:r,options:i},listNextOperationSpec$1)}}const serializer$6=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateLinkResources",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResources},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName],headerParameters:[accept],serializer:serializer$6},getOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateLinkResources/{privateLinkResourceName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResource},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName,privateLinkResourceName],headerParameters:[accept],serializer:serializer$6},listNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResources},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName,nextLink],headerParameters:[accept],serializer:serializer$6};class RecoveryServicesImpl{constructor(e){this.client=e}checkNameAvailability(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,location:t,input:r,options:i},checkNameAvailabilityOperationSpec)}}const serializer$5=coreClient__namespace.createSerializer(Mappers,!1),checkNameAvailabilityOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/locations/{location}/checkNameAvailability",httpMethod:"POST",responses:{200:{bodyMapper:CheckNameAvailabilityResult},default:{bodyMapper:CloudError}},requestBody:input,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,location],headerParameters:[contentType,accept],mediaType:"json",serializer:serializer$5};class LroImpl{constructor(e,t,r,i=r.path,a=r.httpMethod){this.sendOperationFn=e,this.args=t,this.spec=r,this.requestPath=i,this.requestMethod=a}sendInitialRequest(){return tslib.__awaiter(this,void 0,void 0,function*(){return this.sendOperationFn(this.args,this.spec)})}sendPollRequest(t){return tslib.__awaiter(this,void 0,void 0,function*(){var e=this.spec,e=tslib.__rest(e,["requestBody"]);return this.sendOperationFn(this.args,Object.assign(Object.assign({},e),{path:t,httpMethod:"GET"}))})}}class VaultsImpl{constructor(e){this.client=e}listBySubscriptionId(e){const t=this.listBySubscriptionIdPagingAll(e);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listBySubscriptionIdPagingPage(e)}}listBySubscriptionIdPagingPage(r){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listBySubscriptionId(r));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listBySubscriptionIdNext(t,r)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listBySubscriptionIdPagingAll(s){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var r,i=tslib.__asyncValues(this.listBySubscriptionIdPagingPage(s));!(r=yield tslib.__await(i.next())).done;){var a=r.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(t)throw t.error}}})}listByResourceGroup(e,t){const r=this.listByResourceGroupPagingAll(e,t);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByResourceGroupPagingPage(e,t)}}listByResourceGroupPagingPage(r,i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(r,i));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listByResourceGroupNext(r,t,i)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(s,n){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var r,i=tslib.__asyncValues(this.listByResourceGroupPagingPage(s,n));!(r=yield tslib.__await(i.next())).done;){var a=r.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(t)throw t.error}}})}_listBySubscriptionId(e){return this.client.sendOperationRequest({options:e},listBySubscriptionIdOperationSpec)}_listByResourceGroup(e,t){return this.client.sendOperationRequest({resourceGroupName:e,options:t},listByResourceGroupOperationSpec)}get(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,options:r},getOperationSpec$1)}beginCreateOrUpdate(r,i,a,n){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=new LroImpl((t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield s(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:r,vaultName:i,vault:a,options:n},createOrUpdateOperationSpec$1);const t=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield t.poll(),t})}beginCreateOrUpdateAndWait(t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(t,r,i,a);return e.pollUntilDone()})}delete(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,options:r},deleteOperationSpec)}beginUpdate(r,i,a,n){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=new LroImpl((t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield s(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:r,vaultName:i,vault:a,options:n},updateOperationSpec$1);const t=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield t.poll(),t})}beginUpdateAndWait(t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(t,r,i,a);return e.pollUntilDone()})}_listBySubscriptionIdNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listBySubscriptionIdNextOperationSpec)}_listByResourceGroupNext(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:t,options:r},listByResourceGroupNextOperationSpec)}}const serializer$4=coreClient__namespace.createSerializer(Mappers,!1),listBySubscriptionIdOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/vaults",httpMethod:"GET",responses:{200:{bodyMapper:VaultList},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer$4},listByResourceGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults",httpMethod:"GET",responses:{200:{bodyMapper:VaultList},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName],headerParameters:[accept],serializer:serializer$4},getOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}",httpMethod:"GET",responses:{200:{bodyMapper:Vault},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName],headerParameters:[accept],serializer:serializer$4},createOrUpdateOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}",httpMethod:"PUT",responses:{200:{bodyMapper:Vault},201:{bodyMapper:Vault},202:{bodyMapper:Vault},204:{bodyMapper:Vault},default:{bodyMapper:CloudError}},requestBody:vault,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName],headerParameters:[contentType,accept],mediaType:"json",serializer:serializer$4},deleteOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}",httpMethod:"DELETE",responses:{200:{},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName],headerParameters:[accept],serializer:serializer$4},updateOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}",httpMethod:"PATCH",responses:{200:{bodyMapper:Vault},201:{bodyMapper:Vault},202:{bodyMapper:Vault},204:{bodyMapper:Vault},default:{bodyMapper:CloudError}},requestBody:vault1,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName],headerParameters:[contentType,accept],mediaType:"json",serializer:serializer$4},listBySubscriptionIdNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:VaultList},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,nextLink],headerParameters:[accept],serializer:serializer$4},listByResourceGroupNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:VaultList},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink],headerParameters:[accept],serializer:serializer$4};class OperationsImpl{constructor(e){this.client=e}list(e){const t=this.listPagingAll(e);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(r){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(r));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listNext(t,r)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(s){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var r,i=tslib.__asyncValues(this.listPagingPage(s));!(r=yield tslib.__await(i.next())).done;){var a=r.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(t)throw t.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listNextOperationSpec)}}const serializer$3=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.RecoveryServices/operations",httpMethod:"GET",responses:{200:{bodyMapper:ClientDiscoveryResponse},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$3},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ClientDiscoveryResponse},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$3};class VaultExtendedInfoImpl{constructor(e){this.client=e}get(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,options:r},getOperationSpec)}createOrUpdate(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,resourceExtendedInfoDetails:r,options:i},createOrUpdateOperationSpec)}update(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,resourceExtendedInfoDetails:r,options:i},updateOperationSpec)}}const serializer$2=coreClient__namespace.createSerializer(Mappers,!1),getOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/extendedInformation/vaultExtendedInfo",httpMethod:"GET",responses:{200:{bodyMapper:VaultExtendedInfoResource},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName],headerParameters:[accept],serializer:serializer$2},createOrUpdateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/extendedInformation/vaultExtendedInfo",httpMethod:"PUT",responses:{200:{bodyMapper:VaultExtendedInfoResource},default:{bodyMapper:CloudError}},requestBody:resourceExtendedInfoDetails,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName],headerParameters:[contentType,accept],mediaType:"json",serializer:serializer$2},updateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/extendedInformation/vaultExtendedInfo",httpMethod:"PATCH",responses:{200:{bodyMapper:VaultExtendedInfoResource},default:{bodyMapper:CloudError}},requestBody:resourceExtendedInfoDetails,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName],headerParameters:[contentType,accept],mediaType:"json",serializer:serializer$2};class UsagesImpl{constructor(e){this.client=e}listByVaults(e,t,r){const i=this.listByVaultsPagingAll(e,t,r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByVaultsPagingPage(e,t,r)}}listByVaultsPagingPage(t,r,i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByVaults(t,r,i));yield yield tslib.__await(e.value||[])})}listByVaultsPagingAll(s,n,o){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var r,i=tslib.__asyncValues(this.listByVaultsPagingPage(s,n,o));!(r=yield tslib.__await(i.next())).done;){var a=r.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(t)throw t.error}}})}_listByVaults(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,vaultName:t,options:r},listByVaultsOperationSpec)}}const serializer$1=coreClient__namespace.createSerializer(Mappers,!1),listByVaultsOperationSpec={path:"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/usages",httpMethod:"GET",responses:{200:{bodyMapper:VaultUsageList}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName],headerParameters:[accept],serializer:serializer$1};class RecoveryServicesClient extends coreClient__namespace.ServiceClient{constructor(e,t,r){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===t)throw new Error("'subscriptionId' cannot be null");var i={requestContentType:"application/json; charset=utf-8",credential:e},a="azsdk-js-arm-recoveryservices/5.1.0",a=(r=r||{}).userAgentOptions&&r.userAgentOptions.userAgentPrefix?r.userAgentOptions.userAgentPrefix+" "+a:a,i=(r.credentialScopes||(r.credentialScopes=["https://management.azure.com/.default"]),Object.assign(Object.assign(Object.assign({},i),r),{userAgentOptions:{userAgentPrefix:a},baseUri:null!=(a=null!=(i=r.endpoint)?i:r.baseUri)?a:"https://management.azure.com"}));super(i);let s=!1;if(null!=r&&r.pipeline&&0<r.pipeline.getOrderedPolicies().length){const n=r.pipeline.getOrderedPolicies();s=n.some(e=>e.name===coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName)}r&&r.pipeline&&0!=r.pipeline.getOrderedPolicies().length&&s||(this.pipeline.removePolicy({name:coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName}),this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({credential:e,scopes:""+i.credentialScopes,challengeCallbacks:{authorizeRequestOnChallenge:coreClient__namespace.authorizeRequestOnClaimChallenge}}))),this.subscriptionId=t,this.$host=r.$host||"https://management.azure.com",this.apiVersion=r.apiVersion||"2022-04-01",this.vaultCertificates=new VaultCertificatesImpl(this),this.registeredIdentities=new RegisteredIdentitiesImpl(this),this.replicationUsages=new ReplicationUsagesImpl(this),this.privateLinkResourcesOperations=new PrivateLinkResourcesOperationsImpl(this),this.recoveryServices=new RecoveryServicesImpl(this),this.vaults=new VaultsImpl(this),this.operations=new OperationsImpl(this),this.vaultExtendedInfo=new VaultExtendedInfoImpl(this),this.usages=new UsagesImpl(this),this.addCustomApiVersionPolicy(r.apiVersion)}addCustomApiVersionPolicy(a){a&&this.pipeline.addPolicy({name:"CustomApiVersionPolicy",sendRequest(r,i){return tslib.__awaiter(this,void 0,void 0,function*(){const e=r.url.split("?");if(1<e.length){const t=e[1].split("&").map(e=>-1<e.indexOf("api-version")?"api-version="+a:e);r.url=e[0]+"?"+t.join("&")}return i(r)})}})}getOperationStatus(e,t,r,i){return this.sendOperationRequest({resourceGroupName:e,vaultName:t,operationId:r,options:i},getOperationStatusOperationSpec)}getOperationResult(e,t,r,i){return this.sendOperationRequest({resourceGroupName:e,vaultName:t,operationId:r,options:i},getOperationResultOperationSpec)}}const serializer=coreClient__namespace.createSerializer(Mappers,!1),getOperationStatusOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/operationStatus/{operationId}",httpMethod:"GET",responses:{200:{bodyMapper:OperationResource},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName,operationId],headerParameters:[accept],serializer:serializer},getOperationResultOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/operationResults/{operationId}",httpMethod:"GET",responses:{200:{bodyMapper:Vault},202:{},default:{bodyMapper:CloudError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,vaultName,operationId],headerParameters:[accept],serializer:serializer};exports.RecoveryServicesClient=RecoveryServicesClient;

@@ -6,3 +6,3 @@ {

"description": "A generated SDK for RecoveryServicesClient.",
"version": "5.1.0-alpha.20220725.3",
"version": "5.1.0-alpha.20220907.1",
"engines": {

@@ -9,0 +9,0 @@ "node": ">=12.0.0"

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc