@azure/arm-healthcareapis 2.1.1-alpha.20220330.1 → 2.1.1-alpha.20220411.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),tslib=require("tslib"),coreLro=require("@azure/core-lro");function _interopNamespace(i){if(i&&i.__esModule)return i;var t=Object.create(null);return i&&Object.keys(i).forEach(function(e){var r;"default"!==e&&(r=Object.getOwnPropertyDescriptor(i,e),Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:function(){return i[e]}}))}),t.default=i,Object.freeze(t)}var coreClient__namespace=_interopNamespace(coreClient);exports.KnownProvisioningState=void 0,function(e){e.Deleting="Deleting",e.Succeeded="Succeeded",e.Creating="Creating",e.Accepted="Accepted",e.Verifying="Verifying",e.Updating="Updating",e.Failed="Failed",e.Canceled="Canceled",e.Deprovisioned="Deprovisioned",e.Moving="Moving",e.Suspended="Suspended",e.Warned="Warned",e.SystemMaintenance="SystemMaintenance"}(exports.KnownProvisioningState||(exports.KnownProvisioningState={})),exports.KnownPrivateEndpointServiceConnectionStatus=void 0,function(e){e.Pending="Pending",e.Approved="Approved",e.Rejected="Rejected"}(exports.KnownPrivateEndpointServiceConnectionStatus||(exports.KnownPrivateEndpointServiceConnectionStatus={})),exports.KnownPrivateEndpointConnectionProvisioningState=void 0,function(e){e.Succeeded="Succeeded",e.Creating="Creating",e.Deleting="Deleting",e.Failed="Failed"}(exports.KnownPrivateEndpointConnectionProvisioningState||(exports.KnownPrivateEndpointConnectionProvisioningState={})),exports.KnownPublicNetworkAccess=void 0,function(e){e.Enabled="Enabled",e.Disabled="Disabled"}(exports.KnownPublicNetworkAccess||(exports.KnownPublicNetworkAccess={})),exports.KnownCreatedByType=void 0,function(e){e.User="User",e.Application="Application",e.ManagedIdentity="ManagedIdentity",e.Key="Key"}(exports.KnownCreatedByType||(exports.KnownCreatedByType={})),exports.KnownManagedServiceIdentityType=void 0,function(e){e.SystemAssigned="SystemAssigned",e.None="None"}(exports.KnownManagedServiceIdentityType||(exports.KnownManagedServiceIdentityType={})),exports.KnownServiceManagedIdentityType=void 0,function(e){e.None="None",e.SystemAssigned="SystemAssigned",e.UserAssigned="UserAssigned",e.SystemAssignedUserAssigned="SystemAssigned,UserAssigned"}(exports.KnownServiceManagedIdentityType||(exports.KnownServiceManagedIdentityType={})),exports.KnownIotIdentityResolutionType=void 0,function(e){e.Create="Create",e.Lookup="Lookup"}(exports.KnownIotIdentityResolutionType||(exports.KnownIotIdentityResolutionType={})),exports.KnownFhirServiceKind=void 0,function(e){e.FhirStu3="fhir-Stu3",e.FhirR4="fhir-R4"}(exports.KnownFhirServiceKind||(exports.KnownFhirServiceKind={})),exports.KnownServiceEventState=void 0,function(e){e.Disabled="Disabled",e.Enabled="Enabled",e.Updating="Updating"}(exports.KnownServiceEventState||(exports.KnownServiceEventState={})),exports.KnownFhirResourceVersionPolicy=void 0,function(e){e.NoVersion="no-version",e.Versioned="versioned",e.VersionedUpdate="versioned-update"}(exports.KnownFhirResourceVersionPolicy||(exports.KnownFhirResourceVersionPolicy={})),exports.KnownActionType=void 0,(exports.KnownActionType||(exports.KnownActionType={})).Internal="Internal",exports.KnownOperationResultStatus=void 0,function(e){e.Canceled="Canceled",e.Succeeded="Succeeded",e.Failed="Failed",e.Requested="Requested",e.Running="Running"}(exports.KnownOperationResultStatus||(exports.KnownOperationResultStatus={}));const ServicesProperties={type:{name:"Composite",className:"ServicesProperties",modelProperties:{provisioningState:{serializedName:"provisioningState",readOnly:!0,type:{name:"String"}},accessPolicies:{serializedName:"accessPolicies",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServiceAccessPolicyEntry"}}}},cosmosDbConfiguration:{serializedName:"cosmosDbConfiguration",type:{name:"Composite",className:"ServiceCosmosDbConfigurationInfo"}},authenticationConfiguration:{serializedName:"authenticationConfiguration",type:{name:"Composite",className:"ServiceAuthenticationConfigurationInfo"}},corsConfiguration:{serializedName:"corsConfiguration",type:{name:"Composite",className:"ServiceCorsConfigurationInfo"}},exportConfiguration:{serializedName:"exportConfiguration",type:{name:"Composite",className:"ServiceExportConfigurationInfo"}},privateEndpointConnections:{serializedName:"privateEndpointConnections",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}},publicNetworkAccess:{serializedName:"publicNetworkAccess",type:{name:"String"}},acrConfiguration:{serializedName:"acrConfiguration",type:{name:"Composite",className:"ServiceAcrConfigurationInfo"}}}}},ServiceAccessPolicyEntry={type:{name:"Composite",className:"ServiceAccessPolicyEntry",modelProperties:{objectId:{constraints:{Pattern:new RegExp("^(([0-9A-Fa-f]{8}[-]?(?:[0-9A-Fa-f]{4}[-]?){3}[0-9A-Fa-f]{12}){1})+$")},serializedName:"objectId",required:!0,type:{name:"String"}}}}},ServiceCosmosDbConfigurationInfo={type:{name:"Composite",className:"ServiceCosmosDbConfigurationInfo",modelProperties:{offerThroughput:{constraints:{InclusiveMaximum:1e4,InclusiveMinimum:400},serializedName:"offerThroughput",type:{name:"Number"}},keyVaultKeyUri:{serializedName:"keyVaultKeyUri",type:{name:"String"}}}}},ServiceAuthenticationConfigurationInfo={type:{name:"Composite",className:"ServiceAuthenticationConfigurationInfo",modelProperties:{authority:{serializedName:"authority",type:{name:"String"}},audience:{serializedName:"audience",type:{name:"String"}},smartProxyEnabled:{serializedName:"smartProxyEnabled",type:{name:"Boolean"}}}}},ServiceCorsConfigurationInfo={type:{name:"Composite",className:"ServiceCorsConfigurationInfo",modelProperties:{origins:{serializedName:"origins",type:{name:"Sequence",element:{constraints:{Pattern:new RegExp("^(?:(?:(?:[hH][tT][tT][pP](?:[sS]|))\\:\\/\\/(?:[a-zA-Z0-9-]+[.]?)+(?:\\:[0-9]{1,5})?|[*]))$")},type:{name:"String"}}}},headers:{serializedName:"headers",type:{name:"Sequence",element:{type:{name:"String"}}}},methods:{serializedName:"methods",type:{name:"Sequence",element:{type:{name:"String"}}}},maxAge:{constraints:{InclusiveMaximum:99999,InclusiveMinimum:0},serializedName:"maxAge",type:{name:"Number"}},allowCredentials:{serializedName:"allowCredentials",type:{name:"Boolean"}}}}},ServiceExportConfigurationInfo={type:{name:"Composite",className:"ServiceExportConfigurationInfo",modelProperties:{storageAccountName:{serializedName:"storageAccountName",type:{name:"String"}}}}},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",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}},actionsRequired:{serializedName:"actionsRequired",type:{name:"String"}}}}},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"}}}}},ServiceAcrConfigurationInfo={type:{name:"Composite",className:"ServiceAcrConfigurationInfo",modelProperties:{loginServers:{serializedName:"loginServers",type:{name:"Sequence",element:{type:{name:"String"}}}},ociArtifacts:{serializedName:"ociArtifacts",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServiceOciArtifactEntry"}}}}}}},ServiceOciArtifactEntry={type:{name:"Composite",className:"ServiceOciArtifactEntry",modelProperties:{loginServer:{serializedName:"loginServer",type:{name:"String"}},imageName:{serializedName:"imageName",type:{name:"String"}},digest:{serializedName:"digest",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"}}}}},ServicesResource={type:{name:"Composite",className:"ServicesResource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{constraints:{Pattern:new RegExp("^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$")},serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},kind:{serializedName:"kind",required:!0,type:{name:"Enum",allowedValues:["fhir","fhir-Stu3","fhir-R4"]}},location:{serializedName:"location",required:!0,type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",type:{name:"String"}},identity:{serializedName:"identity",type:{name:"Composite",className:"ServicesResourceIdentity"}}}}},ServicesResourceIdentity={type:{name:"Composite",className:"ServicesResourceIdentity",modelProperties:{principalId:{serializedName:"principalId",readOnly:!0,type:{name:"String"}},tenantId:{serializedName:"tenantId",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",type:{name:"String"}}}}},ErrorDetails={type:{name:"Composite",className:"ErrorDetails",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorDetailsInternal"}}}}},ErrorDetailsInternal={type:{name:"Composite",className:"ErrorDetailsInternal",modelProperties:{code:{serializedName:"code",readOnly:!0,type:{name:"String"}},message:{serializedName:"message",readOnly:!0,type:{name:"String"}},target:{serializedName:"target",readOnly:!0,type:{name:"String"}}}}},ServicesPatchDescription={type:{name:"Composite",className:"ServicesPatchDescription",modelProperties:{tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},publicNetworkAccess:{serializedName:"properties.publicNetworkAccess",type:{name:"String"}}}}},ServicesDescriptionListResult={type:{name:"Composite",className:"ServicesDescriptionListResult",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServicesDescription"}}}}}}},CheckNameAvailabilityParameters={type:{name:"Composite",className:"CheckNameAvailabilityParameters",modelProperties:{name:{serializedName:"name",required:!0,type:{name:"String"}},type:{serializedName:"type",required:!0,type:{name:"String"}}}}},ServicesNameAvailabilityInfo={type:{name:"Composite",className:"ServicesNameAvailabilityInfo",modelProperties:{nameAvailable:{serializedName:"nameAvailable",readOnly:!0,type:{name:"Boolean"}},reason:{serializedName:"reason",readOnly:!0,type:{name:"Enum",allowedValues:["Invalid","AlreadyExists"]}},message:{serializedName:"message",type:{name:"String"}}}}},PrivateEndpointConnectionListResultDescription={type:{name:"Composite",className:"PrivateEndpointConnectionListResultDescription",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnectionDescription"}}}}}}},PrivateLinkResourceListResultDescription={type:{name:"Composite",className:"PrivateLinkResourceListResultDescription",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateLinkResourceDescription"}}}}}}},WorkspaceList={type:{name:"Composite",className:"WorkspaceList",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Workspace"}}}}}}},WorkspaceProperties={type:{name:"Composite",className:"WorkspaceProperties",modelProperties:{provisioningState:{serializedName:"provisioningState",readOnly:!0,type:{name:"String"}},privateEndpointConnections:{serializedName:"privateEndpointConnections",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}},publicNetworkAccess:{serializedName:"publicNetworkAccess",type:{name:"String"}}}}},ResourceTags={type:{name:"Composite",className:"ResourceTags",modelProperties:{tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},ResourceCore={type:{name:"Composite",className:"ResourceCore",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{constraints:{Pattern:new RegExp("^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$")},serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},etag:{serializedName:"etag",type:{name:"String"}}}}},ErrorModel={type:{name:"Composite",className:"ErrorModel",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorDetailsInternal"}}}}},DicomServiceCollection={type:{name:"Composite",className:"DicomServiceCollection",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"DicomService"}}}}}}},DicomServiceAuthenticationConfiguration={type:{name:"Composite",className:"DicomServiceAuthenticationConfiguration",modelProperties:{authority:{serializedName:"authority",readOnly:!0,type:{name:"String"}},audiences:{serializedName:"audiences",readOnly:!0,type:{name:"Sequence",element:{type:{name:"String"}}}}}}},ServiceManagedIdentity={type:{name:"Composite",className:"ServiceManagedIdentity",modelProperties:{identity:{serializedName:"identity",type:{name:"Composite",className:"ServiceManagedIdentityIdentity"}}}}},ServiceManagedIdentityIdentity={type:{name:"Composite",className:"ServiceManagedIdentityIdentity",modelProperties:{type:{serializedName:"type",required:!0,type:{name:"String"}},principalId:{serializedName:"principalId",readOnly:!0,type:{name:"Uuid"}},tenantId:{serializedName:"tenantId",readOnly:!0,type:{name:"Uuid"}},userAssignedIdentities:{serializedName:"userAssignedIdentities",type:{name:"Dictionary",value:{type:{name:"Composite",className:"UserAssignedIdentity"}}}}}}},UserAssignedIdentity={type:{name:"Composite",className:"UserAssignedIdentity",modelProperties:{principalId:{serializedName:"principalId",readOnly:!0,type:{name:"Uuid"}},clientId:{serializedName:"clientId",readOnly:!0,type:{name:"Uuid"}}}}},IotConnectorCollection={type:{name:"Composite",className:"IotConnectorCollection",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"IotConnector"}}}}}}},IotEventHubIngestionEndpointConfiguration={type:{name:"Composite",className:"IotEventHubIngestionEndpointConfiguration",modelProperties:{eventHubName:{serializedName:"eventHubName",type:{name:"String"}},consumerGroup:{serializedName:"consumerGroup",type:{name:"String"}},fullyQualifiedEventHubNamespace:{serializedName:"fullyQualifiedEventHubNamespace",type:{name:"String"}}}}},IotMappingProperties={type:{name:"Composite",className:"IotMappingProperties",modelProperties:{content:{serializedName:"content",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},IotFhirDestinationCollection={type:{name:"Composite",className:"IotFhirDestinationCollection",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"IotFhirDestination"}}}}}}},IotDestinationProperties={type:{name:"Composite",className:"IotDestinationProperties",modelProperties:{provisioningState:{serializedName:"provisioningState",readOnly:!0,type:{name:"String"}}}}},FhirServiceCollection={type:{name:"Composite",className:"FhirServiceCollection",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"FhirService"}}}}}}},FhirServiceAccessPolicyEntry={type:{name:"Composite",className:"FhirServiceAccessPolicyEntry",modelProperties:{objectId:{constraints:{Pattern:new RegExp("^(([0-9A-Fa-f]{8}[-]?(?:[0-9A-Fa-f]{4}[-]?){3}[0-9A-Fa-f]{12}){1})+$")},serializedName:"objectId",required:!0,type:{name:"String"}}}}},FhirServiceAcrConfiguration={type:{name:"Composite",className:"FhirServiceAcrConfiguration",modelProperties:{loginServers:{serializedName:"loginServers",type:{name:"Sequence",element:{type:{name:"String"}}}},ociArtifacts:{serializedName:"ociArtifacts",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServiceOciArtifactEntry"}}}}}}},FhirServiceAuthenticationConfiguration={type:{name:"Composite",className:"FhirServiceAuthenticationConfiguration",modelProperties:{authority:{serializedName:"authority",type:{name:"String"}},audience:{serializedName:"audience",type:{name:"String"}},smartProxyEnabled:{serializedName:"smartProxyEnabled",type:{name:"Boolean"}}}}},FhirServiceCorsConfiguration={type:{name:"Composite",className:"FhirServiceCorsConfiguration",modelProperties:{origins:{serializedName:"origins",type:{name:"Sequence",element:{constraints:{Pattern:new RegExp("^(?:(?:(?:[hH][tT][tT][pP](?:[sS]|))\\:\\/\\/(?:[a-zA-Z0-9-]+[.]?)+(?:\\:[0-9]{1,5})?|[*]))$")},type:{name:"String"}}}},headers:{serializedName:"headers",type:{name:"Sequence",element:{type:{name:"String"}}}},methods:{serializedName:"methods",type:{name:"Sequence",element:{type:{name:"String"}}}},maxAge:{constraints:{InclusiveMaximum:99999,InclusiveMinimum:0},serializedName:"maxAge",type:{name:"Number"}},allowCredentials:{serializedName:"allowCredentials",type:{name:"Boolean"}}}}},FhirServiceExportConfiguration={type:{name:"Composite",className:"FhirServiceExportConfiguration",modelProperties:{storageAccountName:{serializedName:"storageAccountName",type:{name:"String"}}}}},ResourceVersionPolicyConfiguration={type:{name:"Composite",className:"ResourceVersionPolicyConfiguration",modelProperties:{default:{serializedName:"default",type:{name:"String"}},resourceTypeOverrides:{serializedName:"resourceTypeOverrides",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},ListOperations={type:{name:"Composite",className:"ListOperations",modelProperties:{value:{serializedName:"value",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"OperationDetail"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},OperationDetail={type:{name:"Composite",className:"OperationDetail",modelProperties:{name:{serializedName:"name",readOnly:!0,type:{name:"String"}},isDataAction:{serializedName:"isDataAction",readOnly:!0,type:{name:"Boolean"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}},origin:{serializedName:"origin",readOnly:!0,type:{name:"String"}},actionType:{serializedName:"actionType",readOnly:!0,type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Composite",className:"OperationProperties"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",readOnly:!0,type:{name:"String"}},resource:{serializedName:"resource",readOnly:!0,type:{name:"String"}},operation:{serializedName:"operation",readOnly:!0,type:{name:"String"}},description:{serializedName:"description",readOnly:!0,type:{name:"String"}}}}},OperationProperties={type:{name:"Composite",className:"OperationProperties",modelProperties:{serviceSpecification:{serializedName:"serviceSpecification",type:{name:"Composite",className:"ServiceSpecification"}}}}},ServiceSpecification={type:{name:"Composite",className:"ServiceSpecification",modelProperties:{logSpecifications:{serializedName:"logSpecifications",type:{name:"Sequence",element:{type:{name:"Composite",className:"LogSpecification"}}}},metricSpecifications:{serializedName:"metricSpecifications",type:{name:"Sequence",element:{type:{name:"Composite",className:"MetricSpecification"}}}}}}},LogSpecification={type:{name:"Composite",className:"LogSpecification",modelProperties:{name:{serializedName:"name",type:{name:"String"}},displayName:{serializedName:"displayName",type:{name:"String"}},blobDuration:{serializedName:"blobDuration",type:{name:"String"}}}}},MetricSpecification={type:{name:"Composite",className:"MetricSpecification",modelProperties:{name:{serializedName:"name",type:{name:"String"}},displayName:{serializedName:"displayName",type:{name:"String"}},displayDescription:{serializedName:"displayDescription",type:{name:"String"}},unit:{serializedName:"unit",type:{name:"String"}},category:{serializedName:"category",type:{name:"String"}},aggregationType:{serializedName:"aggregationType",type:{name:"String"}},supportedAggregationTypes:{serializedName:"supportedAggregationTypes",type:{name:"Sequence",element:{type:{name:"String"}}}},supportedTimeGrainTypes:{serializedName:"supportedTimeGrainTypes",type:{name:"Sequence",element:{type:{name:"String"}}}},fillGapWithZero:{serializedName:"fillGapWithZero",type:{name:"Boolean"}},dimensions:{serializedName:"dimensions",type:{name:"Sequence",element:{type:{name:"Composite",className:"MetricDimension"}}}},sourceMdmNamespace:{serializedName:"sourceMdmNamespace",type:{name:"String"}}}}},MetricDimension={type:{name:"Composite",className:"MetricDimension",modelProperties:{name:{serializedName:"name",type:{name:"String"}},displayName:{serializedName:"displayName",type:{name:"String"}},toBeExportedForShoebox:{serializedName:"toBeExportedForShoebox",type:{name:"Boolean"}}}}},OperationResultsDescription={type:{name:"Composite",className:"OperationResultsDescription",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},status:{serializedName:"status",readOnly:!0,type:{name:"String"}},startTime:{serializedName:"startTime",readOnly:!0,type:{name:"String"}},endTime:{serializedName:"endTime",readOnly:!0,type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},PrivateEndpointConnectionListResult={type:{name:"Composite",className:"PrivateEndpointConnectionListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}}}}},PrivateEndpointConnection={type:{name:"Composite",className:"PrivateEndpointConnection",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{privateEndpoint:{serializedName:"properties.privateEndpoint",type:{name:"Composite",className:"PrivateEndpoint"}},privateLinkServiceConnectionState:{serializedName:"properties.privateLinkServiceConnectionState",type:{name:"Composite",className:"PrivateLinkServiceConnectionState"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}}})}},PrivateLinkResource={type:{name:"Composite",className:"PrivateLinkResource",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{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",type:{name:"Sequence",element:{type:{name:"String"}}}}})}},ServicesDescription={type:{name:"Composite",className:"ServicesDescription",modelProperties:Object.assign(Object.assign({},ServicesResource.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"ServicesProperties"}},systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}}})}},LocationBasedResource={type:{name:"Composite",className:"LocationBasedResource",modelProperties:Object.assign(Object.assign({},ResourceCore.type.modelProperties),{location:{serializedName:"location",type:{name:"String"}}})}},TaggedResource={type:{name:"Composite",className:"TaggedResource",modelProperties:Object.assign(Object.assign({},ResourceTags.type.modelProperties),LocationBasedResource.type.modelProperties)}},WorkspacePatchResource={type:{name:"Composite",className:"WorkspacePatchResource",modelProperties:Object.assign({},ResourceTags.type.modelProperties)}},DicomServicePatchResource={type:{name:"Composite",className:"DicomServicePatchResource",modelProperties:Object.assign(Object.assign({},ResourceTags.type.modelProperties),ServiceManagedIdentity.type.modelProperties)}},IotConnectorPatchResource={type:{name:"Composite",className:"IotConnectorPatchResource",modelProperties:Object.assign(Object.assign({},ResourceTags.type.modelProperties),ServiceManagedIdentity.type.modelProperties)}},FhirServicePatchResource={type:{name:"Composite",className:"FhirServicePatchResource",modelProperties:Object.assign(Object.assign({},ResourceTags.type.modelProperties),ServiceManagedIdentity.type.modelProperties)}},DicomService={type:{name:"Composite",className:"DicomService",modelProperties:Object.assign(Object.assign(Object.assign({},TaggedResource.type.modelProperties),ServiceManagedIdentity.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},authenticationConfiguration:{serializedName:"properties.authenticationConfiguration",type:{name:"Composite",className:"DicomServiceAuthenticationConfiguration"}},serviceUrl:{serializedName:"properties.serviceUrl",readOnly:!0,type:{name:"String"}},privateEndpointConnections:{serializedName:"properties.privateEndpointConnections",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}},publicNetworkAccess:{serializedName:"properties.publicNetworkAccess",type:{name:"String"}}})}},IotConnector={type:{name:"Composite",className:"IotConnector",modelProperties:Object.assign(Object.assign(Object.assign({},TaggedResource.type.modelProperties),ServiceManagedIdentity.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},ingestionEndpointConfiguration:{serializedName:"properties.ingestionEndpointConfiguration",type:{name:"Composite",className:"IotEventHubIngestionEndpointConfiguration"}},deviceMapping:{serializedName:"properties.deviceMapping",type:{name:"Composite",className:"IotMappingProperties"}}})}},FhirService={type:{name:"Composite",className:"FhirService",modelProperties:Object.assign(Object.assign(Object.assign({},TaggedResource.type.modelProperties),ServiceManagedIdentity.type.modelProperties),{kind:{serializedName:"kind",type:{name:"String"}},systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},accessPolicies:{serializedName:"properties.accessPolicies",type:{name:"Sequence",element:{type:{name:"Composite",className:"FhirServiceAccessPolicyEntry"}}}},acrConfiguration:{serializedName:"properties.acrConfiguration",type:{name:"Composite",className:"FhirServiceAcrConfiguration"}},authenticationConfiguration:{serializedName:"properties.authenticationConfiguration",type:{name:"Composite",className:"FhirServiceAuthenticationConfiguration"}},corsConfiguration:{serializedName:"properties.corsConfiguration",type:{name:"Composite",className:"FhirServiceCorsConfiguration"}},exportConfiguration:{serializedName:"properties.exportConfiguration",type:{name:"Composite",className:"FhirServiceExportConfiguration"}},privateEndpointConnections:{serializedName:"properties.privateEndpointConnections",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}},publicNetworkAccess:{serializedName:"properties.publicNetworkAccess",type:{name:"String"}},eventState:{serializedName:"properties.eventState",readOnly:!0,type:{name:"String"}},resourceVersionPolicyConfiguration:{serializedName:"properties.resourceVersionPolicyConfiguration",type:{name:"Composite",className:"ResourceVersionPolicyConfiguration"}}})}},IotFhirDestinationProperties={type:{name:"Composite",className:"IotFhirDestinationProperties",modelProperties:Object.assign(Object.assign({},IotDestinationProperties.type.modelProperties),{resourceIdentityResolutionType:{serializedName:"resourceIdentityResolutionType",required:!0,type:{name:"String"}},fhirServiceResourceId:{serializedName:"fhirServiceResourceId",required:!0,type:{name:"String"}},fhirMapping:{serializedName:"fhirMapping",type:{name:"Composite",className:"IotMappingProperties"}}})}},PrivateEndpointConnectionDescription={type:{name:"Composite",className:"PrivateEndpointConnectionDescription",modelProperties:Object.assign(Object.assign({},PrivateEndpointConnection.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}}})}},PrivateLinkResourceDescription={type:{name:"Composite",className:"PrivateLinkResourceDescription",modelProperties:Object.assign(Object.assign({},PrivateLinkResource.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}}})}},Workspace={type:{name:"Composite",className:"Workspace",modelProperties:Object.assign(Object.assign({},TaggedResource.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"WorkspaceProperties"}},systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}}})}},IotFhirDestination={type:{name:"Composite",className:"IotFhirDestination",modelProperties:Object.assign(Object.assign({},LocationBasedResource.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},resourceIdentityResolutionType:{serializedName:"properties.resourceIdentityResolutionType",required:!0,type:{name:"String"}},fhirServiceResourceId:{serializedName:"properties.fhirServiceResourceId",required:!0,type:{name:"String"}},fhirMapping:{serializedName:"properties.fhirMapping",type:{name:"Composite",className:"IotMappingProperties"}}})}};var Mappers=Object.freeze({__proto__:null,ServicesProperties:ServicesProperties,ServiceAccessPolicyEntry:ServiceAccessPolicyEntry,ServiceCosmosDbConfigurationInfo:ServiceCosmosDbConfigurationInfo,ServiceAuthenticationConfigurationInfo:ServiceAuthenticationConfigurationInfo,ServiceCorsConfigurationInfo:ServiceCorsConfigurationInfo,ServiceExportConfigurationInfo:ServiceExportConfigurationInfo,PrivateEndpoint:PrivateEndpoint,PrivateLinkServiceConnectionState:PrivateLinkServiceConnectionState,Resource:Resource,ServiceAcrConfigurationInfo:ServiceAcrConfigurationInfo,ServiceOciArtifactEntry:ServiceOciArtifactEntry,SystemData:SystemData,ServicesResource:ServicesResource,ServicesResourceIdentity:ServicesResourceIdentity,ErrorDetails:ErrorDetails,ErrorDetailsInternal:ErrorDetailsInternal,ServicesPatchDescription:ServicesPatchDescription,ServicesDescriptionListResult:ServicesDescriptionListResult,CheckNameAvailabilityParameters:CheckNameAvailabilityParameters,ServicesNameAvailabilityInfo:ServicesNameAvailabilityInfo,PrivateEndpointConnectionListResultDescription:PrivateEndpointConnectionListResultDescription,PrivateLinkResourceListResultDescription:PrivateLinkResourceListResultDescription,WorkspaceList:WorkspaceList,WorkspaceProperties:WorkspaceProperties,ResourceTags:ResourceTags,ResourceCore:ResourceCore,ErrorModel:ErrorModel,DicomServiceCollection:DicomServiceCollection,DicomServiceAuthenticationConfiguration:DicomServiceAuthenticationConfiguration,ServiceManagedIdentity:ServiceManagedIdentity,ServiceManagedIdentityIdentity:ServiceManagedIdentityIdentity,UserAssignedIdentity:UserAssignedIdentity,IotConnectorCollection:IotConnectorCollection,IotEventHubIngestionEndpointConfiguration:IotEventHubIngestionEndpointConfiguration,IotMappingProperties:IotMappingProperties,IotFhirDestinationCollection:IotFhirDestinationCollection,IotDestinationProperties:IotDestinationProperties,FhirServiceCollection:FhirServiceCollection,FhirServiceAccessPolicyEntry:FhirServiceAccessPolicyEntry,FhirServiceAcrConfiguration:FhirServiceAcrConfiguration,FhirServiceAuthenticationConfiguration:FhirServiceAuthenticationConfiguration,FhirServiceCorsConfiguration:FhirServiceCorsConfiguration,FhirServiceExportConfiguration:FhirServiceExportConfiguration,ResourceVersionPolicyConfiguration:ResourceVersionPolicyConfiguration,ListOperations:ListOperations,OperationDetail:OperationDetail,OperationDisplay:OperationDisplay,OperationProperties:OperationProperties,ServiceSpecification:ServiceSpecification,LogSpecification:LogSpecification,MetricSpecification:MetricSpecification,MetricDimension:MetricDimension,OperationResultsDescription:OperationResultsDescription,PrivateEndpointConnectionListResult:PrivateEndpointConnectionListResult,PrivateEndpointConnection:PrivateEndpointConnection,PrivateLinkResource:PrivateLinkResource,ServicesDescription:ServicesDescription,LocationBasedResource:LocationBasedResource,TaggedResource:TaggedResource,WorkspacePatchResource:WorkspacePatchResource,DicomServicePatchResource:DicomServicePatchResource,IotConnectorPatchResource:IotConnectorPatchResource,FhirServicePatchResource:FhirServicePatchResource,DicomService:DicomService,IotConnector:IotConnector,FhirService:FhirService,IotFhirDestinationProperties:IotFhirDestinationProperties,PrivateEndpointConnectionDescription:PrivateEndpointConnectionDescription,PrivateLinkResourceDescription:PrivateLinkResourceDescription,Workspace:Workspace,IotFhirDestination:IotFhirDestination});const 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},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2021-11-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},resourceGroupName={parameterPath:"resourceGroupName",mapper:{constraints:{Pattern:new RegExp("^[-\\w\\._\\(\\)]+$"),MaxLength:90,MinLength:1},serializedName:"resourceGroupName",required:!0,type:{name:"String"}}},resourceName={parameterPath:"resourceName",mapper:{constraints:{MaxLength:24,MinLength:3},serializedName:"resourceName",required:!0,type:{name:"String"}}},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},serviceDescription={parameterPath:"serviceDescription",mapper:ServicesDescription},servicePatchDescription={parameterPath:"servicePatchDescription",mapper:ServicesPatchDescription},checkNameAvailabilityInputs={parameterPath:"checkNameAvailabilityInputs",mapper:CheckNameAvailabilityParameters},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0},privateEndpointConnectionName={parameterPath:"privateEndpointConnectionName",mapper:{serializedName:"privateEndpointConnectionName",required:!0,type:{name:"String"}}},properties={parameterPath:"properties",mapper:PrivateEndpointConnection},groupName={parameterPath:"groupName",mapper:{serializedName:"groupName",required:!0,type:{name:"String"}}},workspaceName={parameterPath:"workspaceName",mapper:{constraints:{MaxLength:24,MinLength:3},serializedName:"workspaceName",required:!0,type:{name:"String"}}},workspace={parameterPath:"workspace",mapper:Workspace},workspacePatchResource={parameterPath:"workspacePatchResource",mapper:WorkspacePatchResource},dicomServiceName={parameterPath:"dicomServiceName",mapper:{constraints:{MaxLength:24,MinLength:3},serializedName:"dicomServiceName",required:!0,type:{name:"String"}}},dicomservice={parameterPath:"dicomservice",mapper:DicomService},dicomservicePatchResource={parameterPath:"dicomservicePatchResource",mapper:DicomServicePatchResource},iotConnectorName={parameterPath:"iotConnectorName",mapper:{constraints:{MaxLength:24,MinLength:3},serializedName:"iotConnectorName",required:!0,type:{name:"String"}}},iotConnector={parameterPath:"iotConnector",mapper:IotConnector},iotConnectorPatchResource={parameterPath:"iotConnectorPatchResource",mapper:IotConnectorPatchResource},fhirDestinationName={parameterPath:"fhirDestinationName",mapper:{constraints:{MaxLength:24,MinLength:3},serializedName:"fhirDestinationName",required:!0,type:{name:"String"}}},iotFhirDestination={parameterPath:"iotFhirDestination",mapper:IotFhirDestination},fhirServiceName={parameterPath:"fhirServiceName",mapper:{constraints:{MaxLength:24,MinLength:3},serializedName:"fhirServiceName",required:!0,type:{name:"String"}}},fhirservice={parameterPath:"fhirservice",mapper:FhirService},fhirservicePatchResource={parameterPath:"fhirservicePatchResource",mapper:FhirServicePatchResource},properties1={parameterPath:"properties",mapper:PrivateEndpointConnectionDescription},locationName={parameterPath:"locationName",mapper:{serializedName:"locationName",required:!0,type:{name:"String"}}},operationResultId={parameterPath:"operationResultId",mapper:{serializedName:"operationResultId",required:!0,type:{name:"String"}}};class LroImpl{constructor(e,r,i,t=i.path,s=i.httpMethod){this.sendOperationFn=e,this.args=r,this.spec=i,this.requestPath=t,this.requestMethod=s}sendInitialRequest(){return tslib.__awaiter(this,void 0,void 0,function*(){return this.sendOperationFn(this.args,this.spec)})}sendPollRequest(r){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:r,httpMethod:"GET"}))})}}class ServicesImpl{constructor(e){this.client=e}list(e){const r=this.listPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(i));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(r,i)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(a){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listPagingPage(a));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}listByResourceGroup(e,r){const i=this.listByResourceGroupPagingAll(e,r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByResourceGroupPagingPage(e,r)}}listByResourceGroupPagingPage(i,t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(i,t));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByResourceGroupNext(i,r,t)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(a,o){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listByResourceGroupPagingPage(a,o));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}get(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,options:i},getOperationSpec$a)}beginCreateOrUpdate(i,t,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,resourceName:t,serviceDescription:s,options:o},createOrUpdateOperationSpec$7);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,i,t,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,i,t,s);return e.pollUntilDone()})}beginUpdate(i,t,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,resourceName:t,servicePatchDescription:s,options:o},updateOperationSpec$4);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginUpdateAndWait(r,i,t,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(r,i,t,s);return e.pollUntilDone()})}beginDelete(i,t,s){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,resourceName:t,options:s},deleteOperationSpec$7);const r=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,i,t){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,i,t);return e.pollUntilDone()})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$1)}_listByResourceGroup(e,r){return this.client.sendOperationRequest({resourceGroupName:e,options:r},listByResourceGroupOperationSpec$1)}checkNameAvailability(e,r){return this.client.sendOperationRequest({checkNameAvailabilityInputs:e,options:r},checkNameAvailabilityOperationSpec)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec$1)}_listByResourceGroupNext(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:r,options:i},listByResourceGroupNextOperationSpec$1)}}const serializer$c=coreClient__namespace.createSerializer(Mappers,!1),getOperationSpec$a={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",httpMethod:"GET",responses:{200:{bodyMapper:ServicesDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer$c},createOrUpdateOperationSpec$7={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",httpMethod:"PUT",responses:{200:{bodyMapper:ServicesDescription},201:{bodyMapper:ServicesDescription},202:{bodyMapper:ServicesDescription},204:{bodyMapper:ServicesDescription},default:{bodyMapper:ErrorDetails}},requestBody:serviceDescription,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$c},updateOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",httpMethod:"PATCH",responses:{200:{bodyMapper:ServicesDescription},201:{bodyMapper:ServicesDescription},202:{bodyMapper:ServicesDescription},204:{bodyMapper:ServicesDescription},default:{bodyMapper:ErrorDetails}},requestBody:servicePatchDescription,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$c},deleteOperationSpec$7={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer$c},listOperationSpec$1={path:"/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/services",httpMethod:"GET",responses:{200:{bodyMapper:ServicesDescriptionListResult},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer$c},listByResourceGroupOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services",httpMethod:"GET",responses:{200:{bodyMapper:ServicesDescriptionListResult},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName],headerParameters:[accept],serializer:serializer$c},checkNameAvailabilityOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/checkNameAvailability",httpMethod:"POST",responses:{200:{bodyMapper:ServicesNameAvailabilityInfo},default:{bodyMapper:ErrorDetails}},requestBody:checkNameAvailabilityInputs,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$c},listNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ServicesDescriptionListResult},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,nextLink],headerParameters:[accept],serializer:serializer$c},listByResourceGroupNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ServicesDescriptionListResult},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink],headerParameters:[accept],serializer:serializer$c};class PrivateEndpointConnectionsImpl{constructor(e){this.client=e}listByService(e,r,i){const t=this.listByServicePagingAll(e,r,i);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByServicePagingPage(e,r,i)}}listByServicePagingPage(r,i,t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByService(r,i,t));yield yield tslib.__await(e.value||[])})}listByServicePagingAll(a,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listByServicePagingPage(a,o,n));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}_listByService(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,options:i},listByServiceOperationSpec$1)}get(e,r,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,privateEndpointConnectionName:i,options:t},getOperationSpec$9)}beginCreateOrUpdate(i,t,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,resourceName:t,privateEndpointConnectionName:s,properties:o,options:n},createOrUpdateOperationSpec$6);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,i,t,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,i,t,s,a);return e.pollUntilDone()})}beginDelete(i,t,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,resourceName:t,privateEndpointConnectionName:s,options:o},deleteOperationSpec$6);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,i,t,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,i,t,s);return e.pollUntilDone()})}}const serializer$b=coreClient__namespace.createSerializer(Mappers,!1),listByServiceOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections",httpMethod:"GET",responses:{200:{bodyMapper:PrivateEndpointConnectionListResultDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer$b},getOperationSpec$9={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateEndpointConnectionDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,privateEndpointConnectionName],headerParameters:[accept],serializer:serializer$b},createOrUpdateOperationSpec$6={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"PUT",responses:{200:{bodyMapper:PrivateEndpointConnectionDescription},201:{bodyMapper:PrivateEndpointConnectionDescription},202:{bodyMapper:PrivateEndpointConnectionDescription},204:{bodyMapper:PrivateEndpointConnectionDescription},default:{bodyMapper:ErrorDetails}},requestBody:properties,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,privateEndpointConnectionName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$b},deleteOperationSpec$6={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,privateEndpointConnectionName],headerParameters:[accept],serializer:serializer$b};class PrivateLinkResourcesImpl{constructor(e){this.client=e}listByService(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,options:i},listByServiceOperationSpec)}get(e,r,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,groupName:i,options:t},getOperationSpec$8)}}const serializer$a=coreClient__namespace.createSerializer(Mappers,!1),listByServiceOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceListResultDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer$a},getOperationSpec$8={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources/{groupName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,groupName],headerParameters:[accept],serializer:serializer$a};class WorkspacesImpl{constructor(e){this.client=e}listBySubscription(e){const r=this.listBySubscriptionPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listBySubscriptionPagingPage(e)}}listBySubscriptionPagingPage(i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listBySubscription(i));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listBySubscriptionNext(r,i)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listBySubscriptionPagingAll(a){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listBySubscriptionPagingPage(a));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}listByResourceGroup(e,r){const i=this.listByResourceGroupPagingAll(e,r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByResourceGroupPagingPage(e,r)}}listByResourceGroupPagingPage(i,t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(i,t));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByResourceGroupNext(i,r,t)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(a,o){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listByResourceGroupPagingPage(a,o));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}_listBySubscription(e){return this.client.sendOperationRequest({options:e},listBySubscriptionOperationSpec)}_listByResourceGroup(e,r){return this.client.sendOperationRequest({resourceGroupName:e,options:r},listByResourceGroupOperationSpec)}get(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,options:i},getOperationSpec$7)}beginCreateOrUpdate(i,t,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:t,workspace:s,options:o},createOrUpdateOperationSpec$5);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,i,t,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,i,t,s);return e.pollUntilDone()})}beginUpdate(i,t,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:t,workspacePatchResource:s,options:o},updateOperationSpec$3);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginUpdateAndWait(r,i,t,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(r,i,t,s);return e.pollUntilDone()})}beginDelete(i,t,s){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:t,options:s},deleteOperationSpec$5);const r=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,i,t){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,i,t);return e.pollUntilDone()})}_listBySubscriptionNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listBySubscriptionNextOperationSpec)}_listByResourceGroupNext(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:r,options:i},listByResourceGroupNextOperationSpec)}}const serializer$9=coreClient__namespace.createSerializer(Mappers,!1),listBySubscriptionOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/workspaces",httpMethod:"GET",responses:{200:{bodyMapper:WorkspaceList},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer$9},listByResourceGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces",httpMethod:"GET",responses:{200:{bodyMapper:WorkspaceList},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName],headerParameters:[accept],serializer:serializer$9},getOperationSpec$7={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}",httpMethod:"GET",responses:{200:{bodyMapper:Workspace},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$9},createOrUpdateOperationSpec$5={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}",httpMethod:"PUT",responses:{200:{bodyMapper:Workspace},201:{bodyMapper:Workspace},202:{bodyMapper:Workspace},204:{bodyMapper:Workspace},default:{bodyMapper:ErrorDetails}},requestBody:workspace,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$9},updateOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}",httpMethod:"PATCH",responses:{200:{bodyMapper:Workspace},201:{bodyMapper:Workspace},202:{bodyMapper:Workspace},204:{bodyMapper:Workspace},default:{bodyMapper:ErrorDetails}},requestBody:workspacePatchResource,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$9},deleteOperationSpec$5={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$9},listBySubscriptionNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:WorkspaceList},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,nextLink],headerParameters:[accept],serializer:serializer$9},listByResourceGroupNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:WorkspaceList},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink],headerParameters:[accept],serializer:serializer$9};class DicomServicesImpl{constructor(e){this.client=e}listByWorkspace(e,r,i){const t=this.listByWorkspacePagingAll(e,r,i);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByWorkspacePagingPage(e,r,i)}}listByWorkspacePagingPage(i,t,s){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(i,t,s));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByWorkspaceNext(i,t,r,s)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(a,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listByWorkspacePagingPage(a,o,n));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}_listByWorkspace(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,options:i},listByWorkspaceOperationSpec$4)}get(e,r,i,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,dicomServiceName:i,options:t},getOperationSpec$6)}beginCreateOrUpdate(i,t,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:t,dicomServiceName:s,dicomservice:o,options:n},createOrUpdateOperationSpec$4);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,i,t,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,i,t,s,a);return e.pollUntilDone()})}beginUpdate(i,t,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,dicomServiceName:t,workspaceName:s,dicomservicePatchResource:o,options:n},updateOperationSpec$2);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginUpdateAndWait(r,i,t,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(r,i,t,s,a);return e.pollUntilDone()})}beginDelete(i,t,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,dicomServiceName:t,workspaceName:s,options:o},deleteOperationSpec$4);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,i,t,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,i,t,s);return e.pollUntilDone()})}_listByWorkspaceNext(e,r,i,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,nextLink:i,options:t},listByWorkspaceNextOperationSpec$2)}}const serializer$8=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices",httpMethod:"GET",responses:{200:{bodyMapper:DicomServiceCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$8},getOperationSpec$6={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",httpMethod:"GET",responses:{200:{bodyMapper:DicomService},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,dicomServiceName],headerParameters:[accept],serializer:serializer$8},createOrUpdateOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",httpMethod:"PUT",responses:{200:{bodyMapper:DicomService},201:{bodyMapper:DicomService},202:{bodyMapper:DicomService},204:{bodyMapper:DicomService},default:{bodyMapper:ErrorDetails}},requestBody:dicomservice,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,dicomServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$8},updateOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",httpMethod:"PATCH",responses:{200:{bodyMapper:DicomService},201:{bodyMapper:DicomService},202:{bodyMapper:DicomService},204:{bodyMapper:DicomService},default:{bodyMapper:ErrorDetails}},requestBody:dicomservicePatchResource,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,dicomServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$8},deleteOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,dicomServiceName],headerParameters:[accept],serializer:serializer$8},listByWorkspaceNextOperationSpec$2={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:DicomServiceCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink,workspaceName],headerParameters:[accept],serializer:serializer$8};class IotConnectorsImpl{constructor(e){this.client=e}listByWorkspace(e,r,i){const t=this.listByWorkspacePagingAll(e,r,i);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByWorkspacePagingPage(e,r,i)}}listByWorkspacePagingPage(i,t,s){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(i,t,s));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByWorkspaceNext(i,t,r,s)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(a,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listByWorkspacePagingPage(a,o,n));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}_listByWorkspace(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,options:i},listByWorkspaceOperationSpec$3)}get(e,r,i,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,iotConnectorName:i,options:t},getOperationSpec$5)}beginCreateOrUpdate(i,t,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:t,iotConnectorName:s,iotConnector:o,options:n},createOrUpdateOperationSpec$3);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,i,t,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,i,t,s,a);return e.pollUntilDone()})}beginUpdate(i,t,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,iotConnectorName:t,workspaceName:s,iotConnectorPatchResource:o,options:n},updateOperationSpec$1);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginUpdateAndWait(r,i,t,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(r,i,t,s,a);return e.pollUntilDone()})}beginDelete(i,t,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,iotConnectorName:t,workspaceName:s,options:o},deleteOperationSpec$3);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,i,t,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,i,t,s);return e.pollUntilDone()})}_listByWorkspaceNext(e,r,i,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,nextLink:i,options:t},listByWorkspaceNextOperationSpec$1)}}const serializer$7=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors",httpMethod:"GET",responses:{200:{bodyMapper:IotConnectorCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$7},getOperationSpec$5={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}",httpMethod:"GET",responses:{200:{bodyMapper:IotConnector},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept],serializer:serializer$7},createOrUpdateOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}",httpMethod:"PUT",responses:{200:{bodyMapper:IotConnector},201:{bodyMapper:IotConnector},202:{bodyMapper:IotConnector},204:{bodyMapper:IotConnector},default:{bodyMapper:ErrorDetails}},requestBody:iotConnector,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$7},updateOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}",httpMethod:"PATCH",responses:{200:{bodyMapper:IotConnector},201:{bodyMapper:IotConnector},202:{bodyMapper:IotConnector},204:{bodyMapper:IotConnector},default:{bodyMapper:ErrorDetails}},requestBody:iotConnectorPatchResource,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$7},deleteOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept],serializer:serializer$7},listByWorkspaceNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:IotConnectorCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink,workspaceName],headerParameters:[accept],serializer:serializer$7};class FhirDestinationsImpl{constructor(e){this.client=e}listByIotConnector(e,r,i,t){const s=this.listByIotConnectorPagingAll(e,r,i,t);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByIotConnectorPagingPage(e,r,i,t)}}listByIotConnectorPagingPage(i,t,s,a){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByIotConnector(i,t,s,a));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByIotConnectorNext(i,t,s,r,a)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByIotConnectorPagingAll(a,o,n,p){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listByIotConnectorPagingPage(a,o,n,p));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}_listByIotConnector(e,r,i,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,iotConnectorName:i,options:t},listByIotConnectorOperationSpec)}_listByIotConnectorNext(e,r,i,t,s){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,iotConnectorName:i,nextLink:t,options:s},listByIotConnectorNextOperationSpec)}}const serializer$6=coreClient__namespace.createSerializer(Mappers,!1),listByIotConnectorOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations",httpMethod:"GET",responses:{200:{bodyMapper:IotFhirDestinationCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept],serializer:serializer$6},listByIotConnectorNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:IotFhirDestinationCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink,workspaceName,iotConnectorName],headerParameters:[accept],serializer:serializer$6};class IotConnectorFhirDestinationImpl{constructor(e){this.client=e}get(e,r,i,t,s){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,iotConnectorName:i,fhirDestinationName:t,options:s},getOperationSpec$4)}beginCreateOrUpdate(i,t,s,o,n,p){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:t,iotConnectorName:s,fhirDestinationName:o,iotFhirDestination:n,options:p},createOrUpdateOperationSpec$2);const r=new coreLro.LroEngine(e,{resumeFrom:null==p?void 0:p.resumeFrom,intervalInMs:null==p?void 0:p.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,i,t,s,a,o){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,i,t,s,a,o);return e.pollUntilDone()})}beginDelete(i,t,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:t,iotConnectorName:s,fhirDestinationName:o,options:n},deleteOperationSpec$2);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,i,t,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,i,t,s,a);return e.pollUntilDone()})}}const serializer$5=coreClient__namespace.createSerializer(Mappers,!1),getOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}",httpMethod:"GET",responses:{200:{bodyMapper:IotFhirDestination},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName,fhirDestinationName],headerParameters:[accept],serializer:serializer$5},createOrUpdateOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}",httpMethod:"PUT",responses:{200:{bodyMapper:IotFhirDestination},201:{bodyMapper:IotFhirDestination},202:{bodyMapper:IotFhirDestination},204:{bodyMapper:IotFhirDestination},default:{bodyMapper:ErrorDetails}},requestBody:iotFhirDestination,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName,fhirDestinationName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$5},deleteOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName,fhirDestinationName],headerParameters:[accept],serializer:serializer$5};class FhirServicesImpl{constructor(e){this.client=e}listByWorkspace(e,r,i){const t=this.listByWorkspacePagingAll(e,r,i);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByWorkspacePagingPage(e,r,i)}}listByWorkspacePagingPage(i,t,s){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(i,t,s));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByWorkspaceNext(i,t,r,s)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(a,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listByWorkspacePagingPage(a,o,n));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}_listByWorkspace(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,options:i},listByWorkspaceOperationSpec$2)}get(e,r,i,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,fhirServiceName:i,options:t},getOperationSpec$3)}beginCreateOrUpdate(i,t,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:t,fhirServiceName:s,fhirservice:o,options:n},createOrUpdateOperationSpec$1);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,i,t,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,i,t,s,a);return e.pollUntilDone()})}beginUpdate(i,t,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,fhirServiceName:t,workspaceName:s,fhirservicePatchResource:o,options:n},updateOperationSpec);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginUpdateAndWait(r,i,t,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(r,i,t,s,a);return e.pollUntilDone()})}beginDelete(i,t,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,fhirServiceName:t,workspaceName:s,options:o},deleteOperationSpec$1);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,i,t,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,i,t,s);return e.pollUntilDone()})}_listByWorkspaceNext(e,r,i,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,nextLink:i,options:t},listByWorkspaceNextOperationSpec)}}const serializer$4=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices",httpMethod:"GET",responses:{200:{bodyMapper:FhirServiceCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$4},getOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}",httpMethod:"GET",responses:{200:{bodyMapper:FhirService},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,fhirServiceName],headerParameters:[accept],serializer:serializer$4},createOrUpdateOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}",httpMethod:"PUT",responses:{200:{bodyMapper:FhirService},201:{bodyMapper:FhirService},202:{bodyMapper:FhirService},204:{bodyMapper:FhirService},default:{bodyMapper:ErrorDetails}},requestBody:fhirservice,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,fhirServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$4},updateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}",httpMethod:"PATCH",responses:{200:{bodyMapper:FhirService},201:{bodyMapper:FhirService},202:{bodyMapper:FhirService},204:{bodyMapper:FhirService},default:{bodyMapper:ErrorDetails}},requestBody:fhirservicePatchResource,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,fhirServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$4},deleteOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,fhirServiceName],headerParameters:[accept],serializer:serializer$4},listByWorkspaceNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:FhirServiceCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink,workspaceName],headerParameters:[accept],serializer:serializer$4};class WorkspacePrivateEndpointConnectionsImpl{constructor(e){this.client=e}listByWorkspace(e,r,i){const t=this.listByWorkspacePagingAll(e,r,i);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByWorkspacePagingPage(e,r,i)}}listByWorkspacePagingPage(r,i,t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(r,i,t));yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(a,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listByWorkspacePagingPage(a,o,n));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}_listByWorkspace(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,options:i},listByWorkspaceOperationSpec$1)}get(e,r,i,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,privateEndpointConnectionName:i,options:t},getOperationSpec$2)}beginCreateOrUpdate(i,t,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:t,privateEndpointConnectionName:s,properties:o,options:n},createOrUpdateOperationSpec);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,i,t,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,i,t,s,a);return e.pollUntilDone()})}beginDelete(i,t,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:t,privateEndpointConnectionName:s,options:o},deleteOperationSpec);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,i,t,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,i,t,s);return e.pollUntilDone()})}}const serializer$3=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections",httpMethod:"GET",responses:{200:{bodyMapper:PrivateEndpointConnectionListResultDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$3},getOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateEndpointConnectionDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,privateEndpointConnectionName,workspaceName],headerParameters:[accept],serializer:serializer$3},createOrUpdateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"PUT",responses:{200:{bodyMapper:PrivateEndpointConnectionDescription},201:{bodyMapper:PrivateEndpointConnectionDescription},202:{bodyMapper:PrivateEndpointConnectionDescription},204:{bodyMapper:PrivateEndpointConnectionDescription},default:{bodyMapper:ErrorDetails}},requestBody:properties1,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,privateEndpointConnectionName,workspaceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$3},deleteOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,privateEndpointConnectionName,workspaceName],headerParameters:[accept],serializer:serializer$3};class WorkspacePrivateLinkResourcesImpl{constructor(e){this.client=e}listByWorkspace(e,r,i){const t=this.listByWorkspacePagingAll(e,r,i);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByWorkspacePagingPage(e,r,i)}}listByWorkspacePagingPage(r,i,t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(r,i,t));yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(a,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listByWorkspacePagingPage(a,o,n));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}_listByWorkspace(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,options:i},listByWorkspaceOperationSpec)}get(e,r,i,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,groupName:i,options:t},getOperationSpec$1)}}const serializer$2=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateLinkResources",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceListResultDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$2},getOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateLinkResources/{groupName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,groupName,workspaceName],headerParameters:[accept],serializer:serializer$2};class OperationsImpl{constructor(e){this.client=e}list(e){const r=this.listPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(i));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(r,i)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(a){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listPagingPage(a));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec)}}const serializer$1=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.HealthcareApis/operations",httpMethod:"GET",responses:{200:{bodyMapper:ListOperations},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ListOperations},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$1};class OperationResultsImpl{constructor(e){this.client=e}get(e,r,i){return this.client.sendOperationRequest({locationName:e,operationResultId:r,options:i},getOperationSpec)}}const serializer=coreClient__namespace.createSerializer(Mappers,!1),getOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/locations/{locationName}/operationresults/{operationResultId}",httpMethod:"GET",responses:{200:{bodyMapper:OperationResultsDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,locationName,operationResultId],headerParameters:[accept],serializer:serializer};class HealthcareApisManagementClient extends coreClient__namespace.ServiceClient{constructor(e,r,i){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===r)throw new Error("'subscriptionId' cannot be null");var e={requestContentType:"application/json; charset=utf-8",credential:e},t="azsdk-js-arm-healthcareapis/2.1.1",t=(i=i||{}).userAgentOptions&&i.userAgentOptions.userAgentPrefix?i.userAgentOptions.userAgentPrefix+" "+t:t,e=(i.credentialScopes||(i.credentialScopes=["https://management.azure.com/.default"]),Object.assign(Object.assign(Object.assign({},e),i),{userAgentOptions:{userAgentPrefix:t},baseUri:null!==(t=null!==(e=i.endpoint)&&void 0!==e?e:i.baseUri)&&void 0!==t?t:"https://management.azure.com"}));super(e),this.subscriptionId=r,this.$host=i.$host||"https://management.azure.com",this.apiVersion=i.apiVersion||"2021-11-01",this.services=new ServicesImpl(this),this.privateEndpointConnections=new PrivateEndpointConnectionsImpl(this),this.privateLinkResources=new PrivateLinkResourcesImpl(this),this.workspaces=new WorkspacesImpl(this),this.dicomServices=new DicomServicesImpl(this),this.iotConnectors=new IotConnectorsImpl(this),this.fhirDestinations=new FhirDestinationsImpl(this),this.iotConnectorFhirDestination=new IotConnectorFhirDestinationImpl(this),this.fhirServices=new FhirServicesImpl(this),this.workspacePrivateEndpointConnections=new WorkspacePrivateEndpointConnectionsImpl(this),this.workspacePrivateLinkResources=new WorkspacePrivateLinkResourcesImpl(this),this.operations=new OperationsImpl(this),this.operationResults=new OperationResultsImpl(this)}}exports.HealthcareApisManagementClient=HealthcareApisManagementClient;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),tslib=require("tslib"),coreLro=require("@azure/core-lro");function _interopNamespace(t){if(t&&t.__esModule)return t;var i=Object.create(null);return t&&Object.keys(t).forEach(function(e){var r;"default"!==e&&(r=Object.getOwnPropertyDescriptor(t,e),Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return t[e]}}))}),i.default=t,Object.freeze(i)}var coreClient__namespace=_interopNamespace(coreClient);exports.KnownProvisioningState=void 0,function(e){e.Deleting="Deleting",e.Succeeded="Succeeded",e.Creating="Creating",e.Accepted="Accepted",e.Verifying="Verifying",e.Updating="Updating",e.Failed="Failed",e.Canceled="Canceled",e.Deprovisioned="Deprovisioned",e.Moving="Moving",e.Suspended="Suspended",e.Warned="Warned",e.SystemMaintenance="SystemMaintenance"}(exports.KnownProvisioningState||(exports.KnownProvisioningState={})),exports.KnownPrivateEndpointServiceConnectionStatus=void 0,function(e){e.Pending="Pending",e.Approved="Approved",e.Rejected="Rejected"}(exports.KnownPrivateEndpointServiceConnectionStatus||(exports.KnownPrivateEndpointServiceConnectionStatus={})),exports.KnownPrivateEndpointConnectionProvisioningState=void 0,function(e){e.Succeeded="Succeeded",e.Creating="Creating",e.Deleting="Deleting",e.Failed="Failed"}(exports.KnownPrivateEndpointConnectionProvisioningState||(exports.KnownPrivateEndpointConnectionProvisioningState={})),exports.KnownPublicNetworkAccess=void 0,function(e){e.Enabled="Enabled",e.Disabled="Disabled"}(exports.KnownPublicNetworkAccess||(exports.KnownPublicNetworkAccess={})),exports.KnownCreatedByType=void 0,function(e){e.User="User",e.Application="Application",e.ManagedIdentity="ManagedIdentity",e.Key="Key"}(exports.KnownCreatedByType||(exports.KnownCreatedByType={})),exports.KnownManagedServiceIdentityType=void 0,function(e){e.SystemAssigned="SystemAssigned",e.None="None"}(exports.KnownManagedServiceIdentityType||(exports.KnownManagedServiceIdentityType={})),exports.KnownServiceManagedIdentityType=void 0,function(e){e.None="None",e.SystemAssigned="SystemAssigned",e.UserAssigned="UserAssigned",e.SystemAssignedUserAssigned="SystemAssigned,UserAssigned"}(exports.KnownServiceManagedIdentityType||(exports.KnownServiceManagedIdentityType={})),exports.KnownIotIdentityResolutionType=void 0,function(e){e.Create="Create",e.Lookup="Lookup"}(exports.KnownIotIdentityResolutionType||(exports.KnownIotIdentityResolutionType={})),exports.KnownFhirServiceKind=void 0,function(e){e.FhirStu3="fhir-Stu3",e.FhirR4="fhir-R4"}(exports.KnownFhirServiceKind||(exports.KnownFhirServiceKind={})),exports.KnownServiceEventState=void 0,function(e){e.Disabled="Disabled",e.Enabled="Enabled",e.Updating="Updating"}(exports.KnownServiceEventState||(exports.KnownServiceEventState={})),exports.KnownFhirResourceVersionPolicy=void 0,function(e){e.NoVersion="no-version",e.Versioned="versioned",e.VersionedUpdate="versioned-update"}(exports.KnownFhirResourceVersionPolicy||(exports.KnownFhirResourceVersionPolicy={})),exports.KnownActionType=void 0,(exports.KnownActionType||(exports.KnownActionType={})).Internal="Internal",exports.KnownOperationResultStatus=void 0,function(e){e.Canceled="Canceled",e.Succeeded="Succeeded",e.Failed="Failed",e.Requested="Requested",e.Running="Running"}(exports.KnownOperationResultStatus||(exports.KnownOperationResultStatus={}));const ServicesProperties={type:{name:"Composite",className:"ServicesProperties",modelProperties:{provisioningState:{serializedName:"provisioningState",readOnly:!0,type:{name:"String"}},accessPolicies:{serializedName:"accessPolicies",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServiceAccessPolicyEntry"}}}},cosmosDbConfiguration:{serializedName:"cosmosDbConfiguration",type:{name:"Composite",className:"ServiceCosmosDbConfigurationInfo"}},authenticationConfiguration:{serializedName:"authenticationConfiguration",type:{name:"Composite",className:"ServiceAuthenticationConfigurationInfo"}},corsConfiguration:{serializedName:"corsConfiguration",type:{name:"Composite",className:"ServiceCorsConfigurationInfo"}},exportConfiguration:{serializedName:"exportConfiguration",type:{name:"Composite",className:"ServiceExportConfigurationInfo"}},privateEndpointConnections:{serializedName:"privateEndpointConnections",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}},publicNetworkAccess:{serializedName:"publicNetworkAccess",type:{name:"String"}},acrConfiguration:{serializedName:"acrConfiguration",type:{name:"Composite",className:"ServiceAcrConfigurationInfo"}}}}},ServiceAccessPolicyEntry={type:{name:"Composite",className:"ServiceAccessPolicyEntry",modelProperties:{objectId:{constraints:{Pattern:new RegExp("^(([0-9A-Fa-f]{8}[-]?(?:[0-9A-Fa-f]{4}[-]?){3}[0-9A-Fa-f]{12}){1})+$")},serializedName:"objectId",required:!0,type:{name:"String"}}}}},ServiceCosmosDbConfigurationInfo={type:{name:"Composite",className:"ServiceCosmosDbConfigurationInfo",modelProperties:{offerThroughput:{constraints:{InclusiveMaximum:1e4,InclusiveMinimum:400},serializedName:"offerThroughput",type:{name:"Number"}},keyVaultKeyUri:{serializedName:"keyVaultKeyUri",type:{name:"String"}}}}},ServiceAuthenticationConfigurationInfo={type:{name:"Composite",className:"ServiceAuthenticationConfigurationInfo",modelProperties:{authority:{serializedName:"authority",type:{name:"String"}},audience:{serializedName:"audience",type:{name:"String"}},smartProxyEnabled:{serializedName:"smartProxyEnabled",type:{name:"Boolean"}}}}},ServiceCorsConfigurationInfo={type:{name:"Composite",className:"ServiceCorsConfigurationInfo",modelProperties:{origins:{serializedName:"origins",type:{name:"Sequence",element:{constraints:{Pattern:new RegExp("^(?:(?:(?:[hH][tT][tT][pP](?:[sS]|))\\:\\/\\/(?:[a-zA-Z0-9-]+[.]?)+(?:\\:[0-9]{1,5})?|[*]))$")},type:{name:"String"}}}},headers:{serializedName:"headers",type:{name:"Sequence",element:{type:{name:"String"}}}},methods:{serializedName:"methods",type:{name:"Sequence",element:{type:{name:"String"}}}},maxAge:{constraints:{InclusiveMaximum:99999,InclusiveMinimum:0},serializedName:"maxAge",type:{name:"Number"}},allowCredentials:{serializedName:"allowCredentials",type:{name:"Boolean"}}}}},ServiceExportConfigurationInfo={type:{name:"Composite",className:"ServiceExportConfigurationInfo",modelProperties:{storageAccountName:{serializedName:"storageAccountName",type:{name:"String"}}}}},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",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}},actionsRequired:{serializedName:"actionsRequired",type:{name:"String"}}}}},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"}}}}},ServiceAcrConfigurationInfo={type:{name:"Composite",className:"ServiceAcrConfigurationInfo",modelProperties:{loginServers:{serializedName:"loginServers",type:{name:"Sequence",element:{type:{name:"String"}}}},ociArtifacts:{serializedName:"ociArtifacts",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServiceOciArtifactEntry"}}}}}}},ServiceOciArtifactEntry={type:{name:"Composite",className:"ServiceOciArtifactEntry",modelProperties:{loginServer:{serializedName:"loginServer",type:{name:"String"}},imageName:{serializedName:"imageName",type:{name:"String"}},digest:{serializedName:"digest",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"}}}}},ServicesResource={type:{name:"Composite",className:"ServicesResource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{constraints:{Pattern:new RegExp("^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$")},serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},kind:{serializedName:"kind",required:!0,type:{name:"Enum",allowedValues:["fhir","fhir-Stu3","fhir-R4"]}},location:{serializedName:"location",required:!0,type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",type:{name:"String"}},identity:{serializedName:"identity",type:{name:"Composite",className:"ServicesResourceIdentity"}}}}},ServicesResourceIdentity={type:{name:"Composite",className:"ServicesResourceIdentity",modelProperties:{principalId:{serializedName:"principalId",readOnly:!0,type:{name:"String"}},tenantId:{serializedName:"tenantId",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",type:{name:"String"}}}}},ErrorDetails={type:{name:"Composite",className:"ErrorDetails",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorDetailsInternal"}}}}},ErrorDetailsInternal={type:{name:"Composite",className:"ErrorDetailsInternal",modelProperties:{code:{serializedName:"code",readOnly:!0,type:{name:"String"}},message:{serializedName:"message",readOnly:!0,type:{name:"String"}},target:{serializedName:"target",readOnly:!0,type:{name:"String"}}}}},ServicesPatchDescription={type:{name:"Composite",className:"ServicesPatchDescription",modelProperties:{tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},publicNetworkAccess:{serializedName:"properties.publicNetworkAccess",type:{name:"String"}}}}},ServicesDescriptionListResult={type:{name:"Composite",className:"ServicesDescriptionListResult",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServicesDescription"}}}}}}},CheckNameAvailabilityParameters={type:{name:"Composite",className:"CheckNameAvailabilityParameters",modelProperties:{name:{serializedName:"name",required:!0,type:{name:"String"}},type:{serializedName:"type",required:!0,type:{name:"String"}}}}},ServicesNameAvailabilityInfo={type:{name:"Composite",className:"ServicesNameAvailabilityInfo",modelProperties:{nameAvailable:{serializedName:"nameAvailable",readOnly:!0,type:{name:"Boolean"}},reason:{serializedName:"reason",readOnly:!0,type:{name:"Enum",allowedValues:["Invalid","AlreadyExists"]}},message:{serializedName:"message",type:{name:"String"}}}}},PrivateEndpointConnectionListResultDescription={type:{name:"Composite",className:"PrivateEndpointConnectionListResultDescription",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnectionDescription"}}}}}}},PrivateLinkResourceListResultDescription={type:{name:"Composite",className:"PrivateLinkResourceListResultDescription",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateLinkResourceDescription"}}}}}}},WorkspaceList={type:{name:"Composite",className:"WorkspaceList",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Workspace"}}}}}}},WorkspaceProperties={type:{name:"Composite",className:"WorkspaceProperties",modelProperties:{provisioningState:{serializedName:"provisioningState",readOnly:!0,type:{name:"String"}},privateEndpointConnections:{serializedName:"privateEndpointConnections",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}},publicNetworkAccess:{serializedName:"publicNetworkAccess",type:{name:"String"}}}}},ResourceTags={type:{name:"Composite",className:"ResourceTags",modelProperties:{tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},ResourceCore={type:{name:"Composite",className:"ResourceCore",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{constraints:{Pattern:new RegExp("^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$")},serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},etag:{serializedName:"etag",type:{name:"String"}}}}},ErrorModel={type:{name:"Composite",className:"ErrorModel",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorDetailsInternal"}}}}},DicomServiceCollection={type:{name:"Composite",className:"DicomServiceCollection",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"DicomService"}}}}}}},DicomServiceAuthenticationConfiguration={type:{name:"Composite",className:"DicomServiceAuthenticationConfiguration",modelProperties:{authority:{serializedName:"authority",readOnly:!0,type:{name:"String"}},audiences:{serializedName:"audiences",readOnly:!0,type:{name:"Sequence",element:{type:{name:"String"}}}}}}},ServiceManagedIdentity={type:{name:"Composite",className:"ServiceManagedIdentity",modelProperties:{identity:{serializedName:"identity",type:{name:"Composite",className:"ServiceManagedIdentityIdentity"}}}}},ServiceManagedIdentityIdentity={type:{name:"Composite",className:"ServiceManagedIdentityIdentity",modelProperties:{type:{serializedName:"type",required:!0,type:{name:"String"}},principalId:{serializedName:"principalId",readOnly:!0,type:{name:"Uuid"}},tenantId:{serializedName:"tenantId",readOnly:!0,type:{name:"Uuid"}},userAssignedIdentities:{serializedName:"userAssignedIdentities",type:{name:"Dictionary",value:{type:{name:"Composite",className:"UserAssignedIdentity"}}}}}}},UserAssignedIdentity={type:{name:"Composite",className:"UserAssignedIdentity",modelProperties:{principalId:{serializedName:"principalId",readOnly:!0,type:{name:"Uuid"}},clientId:{serializedName:"clientId",readOnly:!0,type:{name:"Uuid"}}}}},IotConnectorCollection={type:{name:"Composite",className:"IotConnectorCollection",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"IotConnector"}}}}}}},IotEventHubIngestionEndpointConfiguration={type:{name:"Composite",className:"IotEventHubIngestionEndpointConfiguration",modelProperties:{eventHubName:{serializedName:"eventHubName",type:{name:"String"}},consumerGroup:{serializedName:"consumerGroup",type:{name:"String"}},fullyQualifiedEventHubNamespace:{serializedName:"fullyQualifiedEventHubNamespace",type:{name:"String"}}}}},IotMappingProperties={type:{name:"Composite",className:"IotMappingProperties",modelProperties:{content:{serializedName:"content",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},IotFhirDestinationCollection={type:{name:"Composite",className:"IotFhirDestinationCollection",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"IotFhirDestination"}}}}}}},IotDestinationProperties={type:{name:"Composite",className:"IotDestinationProperties",modelProperties:{provisioningState:{serializedName:"provisioningState",readOnly:!0,type:{name:"String"}}}}},FhirServiceCollection={type:{name:"Composite",className:"FhirServiceCollection",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"FhirService"}}}}}}},FhirServiceAccessPolicyEntry={type:{name:"Composite",className:"FhirServiceAccessPolicyEntry",modelProperties:{objectId:{constraints:{Pattern:new RegExp("^(([0-9A-Fa-f]{8}[-]?(?:[0-9A-Fa-f]{4}[-]?){3}[0-9A-Fa-f]{12}){1})+$")},serializedName:"objectId",required:!0,type:{name:"String"}}}}},FhirServiceAcrConfiguration={type:{name:"Composite",className:"FhirServiceAcrConfiguration",modelProperties:{loginServers:{serializedName:"loginServers",type:{name:"Sequence",element:{type:{name:"String"}}}},ociArtifacts:{serializedName:"ociArtifacts",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServiceOciArtifactEntry"}}}}}}},FhirServiceAuthenticationConfiguration={type:{name:"Composite",className:"FhirServiceAuthenticationConfiguration",modelProperties:{authority:{serializedName:"authority",type:{name:"String"}},audience:{serializedName:"audience",type:{name:"String"}},smartProxyEnabled:{serializedName:"smartProxyEnabled",type:{name:"Boolean"}}}}},FhirServiceCorsConfiguration={type:{name:"Composite",className:"FhirServiceCorsConfiguration",modelProperties:{origins:{serializedName:"origins",type:{name:"Sequence",element:{constraints:{Pattern:new RegExp("^(?:(?:(?:[hH][tT][tT][pP](?:[sS]|))\\:\\/\\/(?:[a-zA-Z0-9-]+[.]?)+(?:\\:[0-9]{1,5})?|[*]))$")},type:{name:"String"}}}},headers:{serializedName:"headers",type:{name:"Sequence",element:{type:{name:"String"}}}},methods:{serializedName:"methods",type:{name:"Sequence",element:{type:{name:"String"}}}},maxAge:{constraints:{InclusiveMaximum:99999,InclusiveMinimum:0},serializedName:"maxAge",type:{name:"Number"}},allowCredentials:{serializedName:"allowCredentials",type:{name:"Boolean"}}}}},FhirServiceExportConfiguration={type:{name:"Composite",className:"FhirServiceExportConfiguration",modelProperties:{storageAccountName:{serializedName:"storageAccountName",type:{name:"String"}}}}},ResourceVersionPolicyConfiguration={type:{name:"Composite",className:"ResourceVersionPolicyConfiguration",modelProperties:{default:{serializedName:"default",type:{name:"String"}},resourceTypeOverrides:{serializedName:"resourceTypeOverrides",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},ListOperations={type:{name:"Composite",className:"ListOperations",modelProperties:{value:{serializedName:"value",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"OperationDetail"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},OperationDetail={type:{name:"Composite",className:"OperationDetail",modelProperties:{name:{serializedName:"name",readOnly:!0,type:{name:"String"}},isDataAction:{serializedName:"isDataAction",readOnly:!0,type:{name:"Boolean"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}},origin:{serializedName:"origin",readOnly:!0,type:{name:"String"}},actionType:{serializedName:"actionType",readOnly:!0,type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Composite",className:"OperationProperties"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",readOnly:!0,type:{name:"String"}},resource:{serializedName:"resource",readOnly:!0,type:{name:"String"}},operation:{serializedName:"operation",readOnly:!0,type:{name:"String"}},description:{serializedName:"description",readOnly:!0,type:{name:"String"}}}}},OperationProperties={type:{name:"Composite",className:"OperationProperties",modelProperties:{serviceSpecification:{serializedName:"serviceSpecification",type:{name:"Composite",className:"ServiceSpecification"}}}}},ServiceSpecification={type:{name:"Composite",className:"ServiceSpecification",modelProperties:{logSpecifications:{serializedName:"logSpecifications",type:{name:"Sequence",element:{type:{name:"Composite",className:"LogSpecification"}}}},metricSpecifications:{serializedName:"metricSpecifications",type:{name:"Sequence",element:{type:{name:"Composite",className:"MetricSpecification"}}}}}}},LogSpecification={type:{name:"Composite",className:"LogSpecification",modelProperties:{name:{serializedName:"name",type:{name:"String"}},displayName:{serializedName:"displayName",type:{name:"String"}},blobDuration:{serializedName:"blobDuration",type:{name:"String"}}}}},MetricSpecification={type:{name:"Composite",className:"MetricSpecification",modelProperties:{name:{serializedName:"name",type:{name:"String"}},displayName:{serializedName:"displayName",type:{name:"String"}},displayDescription:{serializedName:"displayDescription",type:{name:"String"}},unit:{serializedName:"unit",type:{name:"String"}},category:{serializedName:"category",type:{name:"String"}},aggregationType:{serializedName:"aggregationType",type:{name:"String"}},supportedAggregationTypes:{serializedName:"supportedAggregationTypes",type:{name:"Sequence",element:{type:{name:"String"}}}},supportedTimeGrainTypes:{serializedName:"supportedTimeGrainTypes",type:{name:"Sequence",element:{type:{name:"String"}}}},fillGapWithZero:{serializedName:"fillGapWithZero",type:{name:"Boolean"}},dimensions:{serializedName:"dimensions",type:{name:"Sequence",element:{type:{name:"Composite",className:"MetricDimension"}}}},sourceMdmNamespace:{serializedName:"sourceMdmNamespace",type:{name:"String"}}}}},MetricDimension={type:{name:"Composite",className:"MetricDimension",modelProperties:{name:{serializedName:"name",type:{name:"String"}},displayName:{serializedName:"displayName",type:{name:"String"}},toBeExportedForShoebox:{serializedName:"toBeExportedForShoebox",type:{name:"Boolean"}}}}},OperationResultsDescription={type:{name:"Composite",className:"OperationResultsDescription",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},status:{serializedName:"status",readOnly:!0,type:{name:"String"}},startTime:{serializedName:"startTime",readOnly:!0,type:{name:"String"}},endTime:{serializedName:"endTime",readOnly:!0,type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},PrivateEndpointConnectionListResult={type:{name:"Composite",className:"PrivateEndpointConnectionListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}}}}},PrivateEndpointConnection={type:{name:"Composite",className:"PrivateEndpointConnection",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{privateEndpoint:{serializedName:"properties.privateEndpoint",type:{name:"Composite",className:"PrivateEndpoint"}},privateLinkServiceConnectionState:{serializedName:"properties.privateLinkServiceConnectionState",type:{name:"Composite",className:"PrivateLinkServiceConnectionState"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}}})}},PrivateLinkResource={type:{name:"Composite",className:"PrivateLinkResource",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{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",type:{name:"Sequence",element:{type:{name:"String"}}}}})}},ServicesDescription={type:{name:"Composite",className:"ServicesDescription",modelProperties:Object.assign(Object.assign({},ServicesResource.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"ServicesProperties"}},systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}}})}},LocationBasedResource={type:{name:"Composite",className:"LocationBasedResource",modelProperties:Object.assign(Object.assign({},ResourceCore.type.modelProperties),{location:{serializedName:"location",type:{name:"String"}}})}},TaggedResource={type:{name:"Composite",className:"TaggedResource",modelProperties:Object.assign(Object.assign({},ResourceTags.type.modelProperties),LocationBasedResource.type.modelProperties)}},WorkspacePatchResource={type:{name:"Composite",className:"WorkspacePatchResource",modelProperties:Object.assign({},ResourceTags.type.modelProperties)}},DicomServicePatchResource={type:{name:"Composite",className:"DicomServicePatchResource",modelProperties:Object.assign(Object.assign({},ResourceTags.type.modelProperties),ServiceManagedIdentity.type.modelProperties)}},IotConnectorPatchResource={type:{name:"Composite",className:"IotConnectorPatchResource",modelProperties:Object.assign(Object.assign({},ResourceTags.type.modelProperties),ServiceManagedIdentity.type.modelProperties)}},FhirServicePatchResource={type:{name:"Composite",className:"FhirServicePatchResource",modelProperties:Object.assign(Object.assign({},ResourceTags.type.modelProperties),ServiceManagedIdentity.type.modelProperties)}},DicomService={type:{name:"Composite",className:"DicomService",modelProperties:Object.assign(Object.assign(Object.assign({},TaggedResource.type.modelProperties),ServiceManagedIdentity.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},authenticationConfiguration:{serializedName:"properties.authenticationConfiguration",type:{name:"Composite",className:"DicomServiceAuthenticationConfiguration"}},serviceUrl:{serializedName:"properties.serviceUrl",readOnly:!0,type:{name:"String"}},privateEndpointConnections:{serializedName:"properties.privateEndpointConnections",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}},publicNetworkAccess:{serializedName:"properties.publicNetworkAccess",type:{name:"String"}}})}},IotConnector={type:{name:"Composite",className:"IotConnector",modelProperties:Object.assign(Object.assign(Object.assign({},TaggedResource.type.modelProperties),ServiceManagedIdentity.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},ingestionEndpointConfiguration:{serializedName:"properties.ingestionEndpointConfiguration",type:{name:"Composite",className:"IotEventHubIngestionEndpointConfiguration"}},deviceMapping:{serializedName:"properties.deviceMapping",type:{name:"Composite",className:"IotMappingProperties"}}})}},FhirService={type:{name:"Composite",className:"FhirService",modelProperties:Object.assign(Object.assign(Object.assign({},TaggedResource.type.modelProperties),ServiceManagedIdentity.type.modelProperties),{kind:{serializedName:"kind",type:{name:"String"}},systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},accessPolicies:{serializedName:"properties.accessPolicies",type:{name:"Sequence",element:{type:{name:"Composite",className:"FhirServiceAccessPolicyEntry"}}}},acrConfiguration:{serializedName:"properties.acrConfiguration",type:{name:"Composite",className:"FhirServiceAcrConfiguration"}},authenticationConfiguration:{serializedName:"properties.authenticationConfiguration",type:{name:"Composite",className:"FhirServiceAuthenticationConfiguration"}},corsConfiguration:{serializedName:"properties.corsConfiguration",type:{name:"Composite",className:"FhirServiceCorsConfiguration"}},exportConfiguration:{serializedName:"properties.exportConfiguration",type:{name:"Composite",className:"FhirServiceExportConfiguration"}},privateEndpointConnections:{serializedName:"properties.privateEndpointConnections",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}},publicNetworkAccess:{serializedName:"properties.publicNetworkAccess",type:{name:"String"}},eventState:{serializedName:"properties.eventState",readOnly:!0,type:{name:"String"}},resourceVersionPolicyConfiguration:{serializedName:"properties.resourceVersionPolicyConfiguration",type:{name:"Composite",className:"ResourceVersionPolicyConfiguration"}}})}},IotFhirDestinationProperties={type:{name:"Composite",className:"IotFhirDestinationProperties",modelProperties:Object.assign(Object.assign({},IotDestinationProperties.type.modelProperties),{resourceIdentityResolutionType:{serializedName:"resourceIdentityResolutionType",required:!0,type:{name:"String"}},fhirServiceResourceId:{serializedName:"fhirServiceResourceId",required:!0,type:{name:"String"}},fhirMapping:{serializedName:"fhirMapping",type:{name:"Composite",className:"IotMappingProperties"}}})}},PrivateEndpointConnectionDescription={type:{name:"Composite",className:"PrivateEndpointConnectionDescription",modelProperties:Object.assign(Object.assign({},PrivateEndpointConnection.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}}})}},PrivateLinkResourceDescription={type:{name:"Composite",className:"PrivateLinkResourceDescription",modelProperties:Object.assign(Object.assign({},PrivateLinkResource.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}}})}},Workspace={type:{name:"Composite",className:"Workspace",modelProperties:Object.assign(Object.assign({},TaggedResource.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"WorkspaceProperties"}},systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}}})}},IotFhirDestination={type:{name:"Composite",className:"IotFhirDestination",modelProperties:Object.assign(Object.assign({},LocationBasedResource.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},resourceIdentityResolutionType:{serializedName:"properties.resourceIdentityResolutionType",required:!0,type:{name:"String"}},fhirServiceResourceId:{serializedName:"properties.fhirServiceResourceId",required:!0,type:{name:"String"}},fhirMapping:{serializedName:"properties.fhirMapping",type:{name:"Composite",className:"IotMappingProperties"}}})}};var Mappers=Object.freeze({__proto__:null,ServicesProperties:ServicesProperties,ServiceAccessPolicyEntry:ServiceAccessPolicyEntry,ServiceCosmosDbConfigurationInfo:ServiceCosmosDbConfigurationInfo,ServiceAuthenticationConfigurationInfo:ServiceAuthenticationConfigurationInfo,ServiceCorsConfigurationInfo:ServiceCorsConfigurationInfo,ServiceExportConfigurationInfo:ServiceExportConfigurationInfo,PrivateEndpoint:PrivateEndpoint,PrivateLinkServiceConnectionState:PrivateLinkServiceConnectionState,Resource:Resource,ServiceAcrConfigurationInfo:ServiceAcrConfigurationInfo,ServiceOciArtifactEntry:ServiceOciArtifactEntry,SystemData:SystemData,ServicesResource:ServicesResource,ServicesResourceIdentity:ServicesResourceIdentity,ErrorDetails:ErrorDetails,ErrorDetailsInternal:ErrorDetailsInternal,ServicesPatchDescription:ServicesPatchDescription,ServicesDescriptionListResult:ServicesDescriptionListResult,CheckNameAvailabilityParameters:CheckNameAvailabilityParameters,ServicesNameAvailabilityInfo:ServicesNameAvailabilityInfo,PrivateEndpointConnectionListResultDescription:PrivateEndpointConnectionListResultDescription,PrivateLinkResourceListResultDescription:PrivateLinkResourceListResultDescription,WorkspaceList:WorkspaceList,WorkspaceProperties:WorkspaceProperties,ResourceTags:ResourceTags,ResourceCore:ResourceCore,ErrorModel:ErrorModel,DicomServiceCollection:DicomServiceCollection,DicomServiceAuthenticationConfiguration:DicomServiceAuthenticationConfiguration,ServiceManagedIdentity:ServiceManagedIdentity,ServiceManagedIdentityIdentity:ServiceManagedIdentityIdentity,UserAssignedIdentity:UserAssignedIdentity,IotConnectorCollection:IotConnectorCollection,IotEventHubIngestionEndpointConfiguration:IotEventHubIngestionEndpointConfiguration,IotMappingProperties:IotMappingProperties,IotFhirDestinationCollection:IotFhirDestinationCollection,IotDestinationProperties:IotDestinationProperties,FhirServiceCollection:FhirServiceCollection,FhirServiceAccessPolicyEntry:FhirServiceAccessPolicyEntry,FhirServiceAcrConfiguration:FhirServiceAcrConfiguration,FhirServiceAuthenticationConfiguration:FhirServiceAuthenticationConfiguration,FhirServiceCorsConfiguration:FhirServiceCorsConfiguration,FhirServiceExportConfiguration:FhirServiceExportConfiguration,ResourceVersionPolicyConfiguration:ResourceVersionPolicyConfiguration,ListOperations:ListOperations,OperationDetail:OperationDetail,OperationDisplay:OperationDisplay,OperationProperties:OperationProperties,ServiceSpecification:ServiceSpecification,LogSpecification:LogSpecification,MetricSpecification:MetricSpecification,MetricDimension:MetricDimension,OperationResultsDescription:OperationResultsDescription,PrivateEndpointConnectionListResult:PrivateEndpointConnectionListResult,PrivateEndpointConnection:PrivateEndpointConnection,PrivateLinkResource:PrivateLinkResource,ServicesDescription:ServicesDescription,LocationBasedResource:LocationBasedResource,TaggedResource:TaggedResource,WorkspacePatchResource:WorkspacePatchResource,DicomServicePatchResource:DicomServicePatchResource,IotConnectorPatchResource:IotConnectorPatchResource,FhirServicePatchResource:FhirServicePatchResource,DicomService:DicomService,IotConnector:IotConnector,FhirService:FhirService,IotFhirDestinationProperties:IotFhirDestinationProperties,PrivateEndpointConnectionDescription:PrivateEndpointConnectionDescription,PrivateLinkResourceDescription:PrivateLinkResourceDescription,Workspace:Workspace,IotFhirDestination:IotFhirDestination});const 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},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2021-11-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},resourceGroupName={parameterPath:"resourceGroupName",mapper:{constraints:{Pattern:new RegExp("^[-\\w\\._\\(\\)]+$"),MaxLength:90,MinLength:1},serializedName:"resourceGroupName",required:!0,type:{name:"String"}}},resourceName={parameterPath:"resourceName",mapper:{constraints:{MaxLength:24,MinLength:3},serializedName:"resourceName",required:!0,type:{name:"String"}}},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},serviceDescription={parameterPath:"serviceDescription",mapper:ServicesDescription},servicePatchDescription={parameterPath:"servicePatchDescription",mapper:ServicesPatchDescription},checkNameAvailabilityInputs={parameterPath:"checkNameAvailabilityInputs",mapper:CheckNameAvailabilityParameters},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0},privateEndpointConnectionName={parameterPath:"privateEndpointConnectionName",mapper:{serializedName:"privateEndpointConnectionName",required:!0,type:{name:"String"}}},properties={parameterPath:"properties",mapper:PrivateEndpointConnection},groupName={parameterPath:"groupName",mapper:{serializedName:"groupName",required:!0,type:{name:"String"}}},workspaceName={parameterPath:"workspaceName",mapper:{constraints:{MaxLength:24,MinLength:3},serializedName:"workspaceName",required:!0,type:{name:"String"}}},workspace={parameterPath:"workspace",mapper:Workspace},workspacePatchResource={parameterPath:"workspacePatchResource",mapper:WorkspacePatchResource},dicomServiceName={parameterPath:"dicomServiceName",mapper:{constraints:{MaxLength:24,MinLength:3},serializedName:"dicomServiceName",required:!0,type:{name:"String"}}},dicomservice={parameterPath:"dicomservice",mapper:DicomService},dicomservicePatchResource={parameterPath:"dicomservicePatchResource",mapper:DicomServicePatchResource},iotConnectorName={parameterPath:"iotConnectorName",mapper:{constraints:{MaxLength:24,MinLength:3},serializedName:"iotConnectorName",required:!0,type:{name:"String"}}},iotConnector={parameterPath:"iotConnector",mapper:IotConnector},iotConnectorPatchResource={parameterPath:"iotConnectorPatchResource",mapper:IotConnectorPatchResource},fhirDestinationName={parameterPath:"fhirDestinationName",mapper:{constraints:{MaxLength:24,MinLength:3},serializedName:"fhirDestinationName",required:!0,type:{name:"String"}}},iotFhirDestination={parameterPath:"iotFhirDestination",mapper:IotFhirDestination},fhirServiceName={parameterPath:"fhirServiceName",mapper:{constraints:{MaxLength:24,MinLength:3},serializedName:"fhirServiceName",required:!0,type:{name:"String"}}},fhirservice={parameterPath:"fhirservice",mapper:FhirService},fhirservicePatchResource={parameterPath:"fhirservicePatchResource",mapper:FhirServicePatchResource},properties1={parameterPath:"properties",mapper:PrivateEndpointConnectionDescription},locationName={parameterPath:"locationName",mapper:{serializedName:"locationName",required:!0,type:{name:"String"}}},operationResultId={parameterPath:"operationResultId",mapper:{serializedName:"operationResultId",required:!0,type:{name:"String"}}};class LroImpl{constructor(e,r,t,i=t.path,s=t.httpMethod){this.sendOperationFn=e,this.args=r,this.spec=t,this.requestPath=i,this.requestMethod=s}sendInitialRequest(){return tslib.__awaiter(this,void 0,void 0,function*(){return this.sendOperationFn(this.args,this.spec)})}sendPollRequest(r){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:r,httpMethod:"GET"}))})}}class ServicesImpl{constructor(e){this.client=e}list(e){const r=this.listPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(t));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(r,t)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(a){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listPagingPage(a));!(t=yield tslib.__await(i.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}listByResourceGroup(e,r){const t=this.listByResourceGroupPagingAll(e,r);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByResourceGroupPagingPage(e,r)}}listByResourceGroupPagingPage(t,i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(t,i));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByResourceGroupNext(t,r,i)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(a,o){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listByResourceGroupPagingPage(a,o));!(t=yield tslib.__await(i.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}get(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,options:t},getOperationSpec$a)}beginCreateOrUpdate(t,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:t,resourceName:i,serviceDescription:s,options:o},createOrUpdateOperationSpec$7);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,t,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,t,i,s);return e.pollUntilDone()})}beginUpdate(t,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:t,resourceName:i,servicePatchDescription:s,options:o},updateOperationSpec$4);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginUpdateAndWait(r,t,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(r,t,i,s);return e.pollUntilDone()})}beginDelete(t,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:t,resourceName:i,options:s},deleteOperationSpec$7);const r=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,t,i){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,t,i);return e.pollUntilDone()})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$1)}_listByResourceGroup(e,r){return this.client.sendOperationRequest({resourceGroupName:e,options:r},listByResourceGroupOperationSpec$1)}checkNameAvailability(e,r){return this.client.sendOperationRequest({checkNameAvailabilityInputs:e,options:r},checkNameAvailabilityOperationSpec)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec$1)}_listByResourceGroupNext(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:r,options:t},listByResourceGroupNextOperationSpec$1)}}const serializer$c=coreClient__namespace.createSerializer(Mappers,!1),getOperationSpec$a={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",httpMethod:"GET",responses:{200:{bodyMapper:ServicesDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer$c},createOrUpdateOperationSpec$7={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",httpMethod:"PUT",responses:{200:{bodyMapper:ServicesDescription},201:{bodyMapper:ServicesDescription},202:{bodyMapper:ServicesDescription},204:{bodyMapper:ServicesDescription},default:{bodyMapper:ErrorDetails}},requestBody:serviceDescription,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$c},updateOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",httpMethod:"PATCH",responses:{200:{bodyMapper:ServicesDescription},201:{bodyMapper:ServicesDescription},202:{bodyMapper:ServicesDescription},204:{bodyMapper:ServicesDescription},default:{bodyMapper:ErrorDetails}},requestBody:servicePatchDescription,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$c},deleteOperationSpec$7={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer$c},listOperationSpec$1={path:"/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/services",httpMethod:"GET",responses:{200:{bodyMapper:ServicesDescriptionListResult},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer$c},listByResourceGroupOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services",httpMethod:"GET",responses:{200:{bodyMapper:ServicesDescriptionListResult},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName],headerParameters:[accept],serializer:serializer$c},checkNameAvailabilityOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/checkNameAvailability",httpMethod:"POST",responses:{200:{bodyMapper:ServicesNameAvailabilityInfo},default:{bodyMapper:ErrorDetails}},requestBody:checkNameAvailabilityInputs,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$c},listNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ServicesDescriptionListResult},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,nextLink],headerParameters:[accept],serializer:serializer$c},listByResourceGroupNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ServicesDescriptionListResult},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink],headerParameters:[accept],serializer:serializer$c};class PrivateEndpointConnectionsImpl{constructor(e){this.client=e}listByService(e,r,t){const i=this.listByServicePagingAll(e,r,t);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByServicePagingPage(e,r,t)}}listByServicePagingPage(r,t,i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByService(r,t,i));yield yield tslib.__await(e.value||[])})}listByServicePagingAll(a,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listByServicePagingPage(a,o,n));!(t=yield tslib.__await(i.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}_listByService(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,options:t},listByServiceOperationSpec$1)}get(e,r,t,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,privateEndpointConnectionName:t,options:i},getOperationSpec$9)}beginCreateOrUpdate(t,i,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:t,resourceName:i,privateEndpointConnectionName:s,properties:o,options:n},createOrUpdateOperationSpec$6);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,t,i,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,t,i,s,a);return e.pollUntilDone()})}beginDelete(t,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:t,resourceName:i,privateEndpointConnectionName:s,options:o},deleteOperationSpec$6);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,t,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,t,i,s);return e.pollUntilDone()})}}const serializer$b=coreClient__namespace.createSerializer(Mappers,!1),listByServiceOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections",httpMethod:"GET",responses:{200:{bodyMapper:PrivateEndpointConnectionListResultDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer$b},getOperationSpec$9={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateEndpointConnectionDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,privateEndpointConnectionName],headerParameters:[accept],serializer:serializer$b},createOrUpdateOperationSpec$6={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"PUT",responses:{200:{bodyMapper:PrivateEndpointConnectionDescription},201:{bodyMapper:PrivateEndpointConnectionDescription},202:{bodyMapper:PrivateEndpointConnectionDescription},204:{bodyMapper:PrivateEndpointConnectionDescription},default:{bodyMapper:ErrorDetails}},requestBody:properties,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,privateEndpointConnectionName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$b},deleteOperationSpec$6={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,privateEndpointConnectionName],headerParameters:[accept],serializer:serializer$b};class PrivateLinkResourcesImpl{constructor(e){this.client=e}listByService(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,options:t},listByServiceOperationSpec)}get(e,r,t,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,groupName:t,options:i},getOperationSpec$8)}}const serializer$a=coreClient__namespace.createSerializer(Mappers,!1),listByServiceOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceListResultDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer$a},getOperationSpec$8={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources/{groupName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,groupName],headerParameters:[accept],serializer:serializer$a};class WorkspacesImpl{constructor(e){this.client=e}listBySubscription(e){const r=this.listBySubscriptionPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listBySubscriptionPagingPage(e)}}listBySubscriptionPagingPage(t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listBySubscription(t));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listBySubscriptionNext(r,t)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listBySubscriptionPagingAll(a){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listBySubscriptionPagingPage(a));!(t=yield tslib.__await(i.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}listByResourceGroup(e,r){const t=this.listByResourceGroupPagingAll(e,r);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByResourceGroupPagingPage(e,r)}}listByResourceGroupPagingPage(t,i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(t,i));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByResourceGroupNext(t,r,i)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(a,o){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listByResourceGroupPagingPage(a,o));!(t=yield tslib.__await(i.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}_listBySubscription(e){return this.client.sendOperationRequest({options:e},listBySubscriptionOperationSpec)}_listByResourceGroup(e,r){return this.client.sendOperationRequest({resourceGroupName:e,options:r},listByResourceGroupOperationSpec)}get(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,options:t},getOperationSpec$7)}beginCreateOrUpdate(t,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:t,workspaceName:i,workspace:s,options:o},createOrUpdateOperationSpec$5);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,t,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,t,i,s);return e.pollUntilDone()})}beginUpdate(t,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:t,workspaceName:i,workspacePatchResource:s,options:o},updateOperationSpec$3);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginUpdateAndWait(r,t,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(r,t,i,s);return e.pollUntilDone()})}beginDelete(t,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:t,workspaceName:i,options:s},deleteOperationSpec$5);const r=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,t,i){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,t,i);return e.pollUntilDone()})}_listBySubscriptionNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listBySubscriptionNextOperationSpec)}_listByResourceGroupNext(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:r,options:t},listByResourceGroupNextOperationSpec)}}const serializer$9=coreClient__namespace.createSerializer(Mappers,!1),listBySubscriptionOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/workspaces",httpMethod:"GET",responses:{200:{bodyMapper:WorkspaceList},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer$9},listByResourceGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces",httpMethod:"GET",responses:{200:{bodyMapper:WorkspaceList},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName],headerParameters:[accept],serializer:serializer$9},getOperationSpec$7={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}",httpMethod:"GET",responses:{200:{bodyMapper:Workspace},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$9},createOrUpdateOperationSpec$5={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}",httpMethod:"PUT",responses:{200:{bodyMapper:Workspace},201:{bodyMapper:Workspace},202:{bodyMapper:Workspace},204:{bodyMapper:Workspace},default:{bodyMapper:ErrorDetails}},requestBody:workspace,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$9},updateOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}",httpMethod:"PATCH",responses:{200:{bodyMapper:Workspace},201:{bodyMapper:Workspace},202:{bodyMapper:Workspace},204:{bodyMapper:Workspace},default:{bodyMapper:ErrorDetails}},requestBody:workspacePatchResource,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$9},deleteOperationSpec$5={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$9},listBySubscriptionNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:WorkspaceList},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,nextLink],headerParameters:[accept],serializer:serializer$9},listByResourceGroupNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:WorkspaceList},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink],headerParameters:[accept],serializer:serializer$9};class DicomServicesImpl{constructor(e){this.client=e}listByWorkspace(e,r,t){const i=this.listByWorkspacePagingAll(e,r,t);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByWorkspacePagingPage(e,r,t)}}listByWorkspacePagingPage(t,i,s){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(t,i,s));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByWorkspaceNext(t,i,r,s)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(a,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listByWorkspacePagingPage(a,o,n));!(t=yield tslib.__await(i.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}_listByWorkspace(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,options:t},listByWorkspaceOperationSpec$4)}get(e,r,t,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,dicomServiceName:t,options:i},getOperationSpec$6)}beginCreateOrUpdate(t,i,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:t,workspaceName:i,dicomServiceName:s,dicomservice:o,options:n},createOrUpdateOperationSpec$4);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,t,i,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,t,i,s,a);return e.pollUntilDone()})}beginUpdate(t,i,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:t,dicomServiceName:i,workspaceName:s,dicomservicePatchResource:o,options:n},updateOperationSpec$2);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginUpdateAndWait(r,t,i,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(r,t,i,s,a);return e.pollUntilDone()})}beginDelete(t,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:t,dicomServiceName:i,workspaceName:s,options:o},deleteOperationSpec$4);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,t,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,t,i,s);return e.pollUntilDone()})}_listByWorkspaceNext(e,r,t,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,nextLink:t,options:i},listByWorkspaceNextOperationSpec$2)}}const serializer$8=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices",httpMethod:"GET",responses:{200:{bodyMapper:DicomServiceCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$8},getOperationSpec$6={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",httpMethod:"GET",responses:{200:{bodyMapper:DicomService},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,dicomServiceName],headerParameters:[accept],serializer:serializer$8},createOrUpdateOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",httpMethod:"PUT",responses:{200:{bodyMapper:DicomService},201:{bodyMapper:DicomService},202:{bodyMapper:DicomService},204:{bodyMapper:DicomService},default:{bodyMapper:ErrorDetails}},requestBody:dicomservice,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,dicomServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$8},updateOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",httpMethod:"PATCH",responses:{200:{bodyMapper:DicomService},201:{bodyMapper:DicomService},202:{bodyMapper:DicomService},204:{bodyMapper:DicomService},default:{bodyMapper:ErrorDetails}},requestBody:dicomservicePatchResource,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,dicomServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$8},deleteOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,dicomServiceName],headerParameters:[accept],serializer:serializer$8},listByWorkspaceNextOperationSpec$2={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:DicomServiceCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink,workspaceName],headerParameters:[accept],serializer:serializer$8};class IotConnectorsImpl{constructor(e){this.client=e}listByWorkspace(e,r,t){const i=this.listByWorkspacePagingAll(e,r,t);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByWorkspacePagingPage(e,r,t)}}listByWorkspacePagingPage(t,i,s){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(t,i,s));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByWorkspaceNext(t,i,r,s)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(a,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listByWorkspacePagingPage(a,o,n));!(t=yield tslib.__await(i.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}_listByWorkspace(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,options:t},listByWorkspaceOperationSpec$3)}get(e,r,t,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,iotConnectorName:t,options:i},getOperationSpec$5)}beginCreateOrUpdate(t,i,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:t,workspaceName:i,iotConnectorName:s,iotConnector:o,options:n},createOrUpdateOperationSpec$3);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,t,i,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,t,i,s,a);return e.pollUntilDone()})}beginUpdate(t,i,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:t,iotConnectorName:i,workspaceName:s,iotConnectorPatchResource:o,options:n},updateOperationSpec$1);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginUpdateAndWait(r,t,i,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(r,t,i,s,a);return e.pollUntilDone()})}beginDelete(t,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:t,iotConnectorName:i,workspaceName:s,options:o},deleteOperationSpec$3);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,t,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,t,i,s);return e.pollUntilDone()})}_listByWorkspaceNext(e,r,t,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,nextLink:t,options:i},listByWorkspaceNextOperationSpec$1)}}const serializer$7=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors",httpMethod:"GET",responses:{200:{bodyMapper:IotConnectorCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$7},getOperationSpec$5={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}",httpMethod:"GET",responses:{200:{bodyMapper:IotConnector},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept],serializer:serializer$7},createOrUpdateOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}",httpMethod:"PUT",responses:{200:{bodyMapper:IotConnector},201:{bodyMapper:IotConnector},202:{bodyMapper:IotConnector},204:{bodyMapper:IotConnector},default:{bodyMapper:ErrorDetails}},requestBody:iotConnector,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$7},updateOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}",httpMethod:"PATCH",responses:{200:{bodyMapper:IotConnector},201:{bodyMapper:IotConnector},202:{bodyMapper:IotConnector},204:{bodyMapper:IotConnector},default:{bodyMapper:ErrorDetails}},requestBody:iotConnectorPatchResource,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$7},deleteOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept],serializer:serializer$7},listByWorkspaceNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:IotConnectorCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink,workspaceName],headerParameters:[accept],serializer:serializer$7};class FhirDestinationsImpl{constructor(e){this.client=e}listByIotConnector(e,r,t,i){const s=this.listByIotConnectorPagingAll(e,r,t,i);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByIotConnectorPagingPage(e,r,t,i)}}listByIotConnectorPagingPage(t,i,s,a){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByIotConnector(t,i,s,a));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByIotConnectorNext(t,i,s,r,a)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByIotConnectorPagingAll(a,o,n,p){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listByIotConnectorPagingPage(a,o,n,p));!(t=yield tslib.__await(i.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}_listByIotConnector(e,r,t,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,iotConnectorName:t,options:i},listByIotConnectorOperationSpec)}_listByIotConnectorNext(e,r,t,i,s){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,iotConnectorName:t,nextLink:i,options:s},listByIotConnectorNextOperationSpec)}}const serializer$6=coreClient__namespace.createSerializer(Mappers,!1),listByIotConnectorOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations",httpMethod:"GET",responses:{200:{bodyMapper:IotFhirDestinationCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept],serializer:serializer$6},listByIotConnectorNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:IotFhirDestinationCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink,workspaceName,iotConnectorName],headerParameters:[accept],serializer:serializer$6};class IotConnectorFhirDestinationImpl{constructor(e){this.client=e}get(e,r,t,i,s){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,iotConnectorName:t,fhirDestinationName:i,options:s},getOperationSpec$4)}beginCreateOrUpdate(t,i,s,o,n,p){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:t,workspaceName:i,iotConnectorName:s,fhirDestinationName:o,iotFhirDestination:n,options:p},createOrUpdateOperationSpec$2);const r=new coreLro.LroEngine(e,{resumeFrom:null==p?void 0:p.resumeFrom,intervalInMs:null==p?void 0:p.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,t,i,s,a,o){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,t,i,s,a,o);return e.pollUntilDone()})}beginDelete(t,i,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:t,workspaceName:i,iotConnectorName:s,fhirDestinationName:o,options:n},deleteOperationSpec$2);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,t,i,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,t,i,s,a);return e.pollUntilDone()})}}const serializer$5=coreClient__namespace.createSerializer(Mappers,!1),getOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}",httpMethod:"GET",responses:{200:{bodyMapper:IotFhirDestination},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName,fhirDestinationName],headerParameters:[accept],serializer:serializer$5},createOrUpdateOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}",httpMethod:"PUT",responses:{200:{bodyMapper:IotFhirDestination},201:{bodyMapper:IotFhirDestination},202:{bodyMapper:IotFhirDestination},204:{bodyMapper:IotFhirDestination},default:{bodyMapper:ErrorDetails}},requestBody:iotFhirDestination,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName,fhirDestinationName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$5},deleteOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName,fhirDestinationName],headerParameters:[accept],serializer:serializer$5};class FhirServicesImpl{constructor(e){this.client=e}listByWorkspace(e,r,t){const i=this.listByWorkspacePagingAll(e,r,t);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByWorkspacePagingPage(e,r,t)}}listByWorkspacePagingPage(t,i,s){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(t,i,s));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByWorkspaceNext(t,i,r,s)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(a,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listByWorkspacePagingPage(a,o,n));!(t=yield tslib.__await(i.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}_listByWorkspace(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,options:t},listByWorkspaceOperationSpec$2)}get(e,r,t,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,fhirServiceName:t,options:i},getOperationSpec$3)}beginCreateOrUpdate(t,i,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:t,workspaceName:i,fhirServiceName:s,fhirservice:o,options:n},createOrUpdateOperationSpec$1);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,t,i,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,t,i,s,a);return e.pollUntilDone()})}beginUpdate(t,i,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:t,fhirServiceName:i,workspaceName:s,fhirservicePatchResource:o,options:n},updateOperationSpec);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginUpdateAndWait(r,t,i,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(r,t,i,s,a);return e.pollUntilDone()})}beginDelete(t,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:t,fhirServiceName:i,workspaceName:s,options:o},deleteOperationSpec$1);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,t,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,t,i,s);return e.pollUntilDone()})}_listByWorkspaceNext(e,r,t,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,nextLink:t,options:i},listByWorkspaceNextOperationSpec)}}const serializer$4=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices",httpMethod:"GET",responses:{200:{bodyMapper:FhirServiceCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$4},getOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}",httpMethod:"GET",responses:{200:{bodyMapper:FhirService},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,fhirServiceName],headerParameters:[accept],serializer:serializer$4},createOrUpdateOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}",httpMethod:"PUT",responses:{200:{bodyMapper:FhirService},201:{bodyMapper:FhirService},202:{bodyMapper:FhirService},204:{bodyMapper:FhirService},default:{bodyMapper:ErrorDetails}},requestBody:fhirservice,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,fhirServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$4},updateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}",httpMethod:"PATCH",responses:{200:{bodyMapper:FhirService},201:{bodyMapper:FhirService},202:{bodyMapper:FhirService},204:{bodyMapper:FhirService},default:{bodyMapper:ErrorDetails}},requestBody:fhirservicePatchResource,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,fhirServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$4},deleteOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,fhirServiceName],headerParameters:[accept],serializer:serializer$4},listByWorkspaceNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:FhirServiceCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink,workspaceName],headerParameters:[accept],serializer:serializer$4};class WorkspacePrivateEndpointConnectionsImpl{constructor(e){this.client=e}listByWorkspace(e,r,t){const i=this.listByWorkspacePagingAll(e,r,t);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByWorkspacePagingPage(e,r,t)}}listByWorkspacePagingPage(r,t,i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(r,t,i));yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(a,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listByWorkspacePagingPage(a,o,n));!(t=yield tslib.__await(i.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}_listByWorkspace(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,options:t},listByWorkspaceOperationSpec$1)}get(e,r,t,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,privateEndpointConnectionName:t,options:i},getOperationSpec$2)}beginCreateOrUpdate(t,i,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:t,workspaceName:i,privateEndpointConnectionName:s,properties:o,options:n},createOrUpdateOperationSpec);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,t,i,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,t,i,s,a);return e.pollUntilDone()})}beginDelete(t,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:t,workspaceName:i,privateEndpointConnectionName:s,options:o},deleteOperationSpec);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,t,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,t,i,s);return e.pollUntilDone()})}}const serializer$3=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections",httpMethod:"GET",responses:{200:{bodyMapper:PrivateEndpointConnectionListResultDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$3},getOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateEndpointConnectionDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,privateEndpointConnectionName,workspaceName],headerParameters:[accept],serializer:serializer$3},createOrUpdateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"PUT",responses:{200:{bodyMapper:PrivateEndpointConnectionDescription},201:{bodyMapper:PrivateEndpointConnectionDescription},202:{bodyMapper:PrivateEndpointConnectionDescription},204:{bodyMapper:PrivateEndpointConnectionDescription},default:{bodyMapper:ErrorDetails}},requestBody:properties1,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,privateEndpointConnectionName,workspaceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$3},deleteOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,privateEndpointConnectionName,workspaceName],headerParameters:[accept],serializer:serializer$3};class WorkspacePrivateLinkResourcesImpl{constructor(e){this.client=e}listByWorkspace(e,r,t){const i=this.listByWorkspacePagingAll(e,r,t);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByWorkspacePagingPage(e,r,t)}}listByWorkspacePagingPage(r,t,i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(r,t,i));yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(a,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listByWorkspacePagingPage(a,o,n));!(t=yield tslib.__await(i.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}_listByWorkspace(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,options:t},listByWorkspaceOperationSpec)}get(e,r,t,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,groupName:t,options:i},getOperationSpec$1)}}const serializer$2=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateLinkResources",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceListResultDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$2},getOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateLinkResources/{groupName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,groupName,workspaceName],headerParameters:[accept],serializer:serializer$2};class OperationsImpl{constructor(e){this.client=e}list(e){const r=this.listPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(t));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(r,t)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(a){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listPagingPage(a));!(t=yield tslib.__await(i.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec)}}const serializer$1=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.HealthcareApis/operations",httpMethod:"GET",responses:{200:{bodyMapper:ListOperations},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ListOperations},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$1};class OperationResultsImpl{constructor(e){this.client=e}get(e,r,t){return this.client.sendOperationRequest({locationName:e,operationResultId:r,options:t},getOperationSpec)}}const serializer=coreClient__namespace.createSerializer(Mappers,!1),getOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/locations/{locationName}/operationresults/{operationResultId}",httpMethod:"GET",responses:{200:{bodyMapper:OperationResultsDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,locationName,operationResultId],headerParameters:[accept],serializer:serializer};class HealthcareApisManagementClient extends coreClient__namespace.ServiceClient{constructor(e,r,t){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===r)throw new Error("'subscriptionId' cannot be null");var e={requestContentType:"application/json; charset=utf-8",credential:e},i="azsdk-js-arm-healthcareapis/2.1.1",i=(t=t||{}).userAgentOptions&&t.userAgentOptions.userAgentPrefix?t.userAgentOptions.userAgentPrefix+" "+i:i,e=(t.credentialScopes||(t.credentialScopes=["https://management.azure.com/.default"]),Object.assign(Object.assign(Object.assign({},e),t),{userAgentOptions:{userAgentPrefix:i},baseUri:null!=(i=null!=(e=t.endpoint)?e:t.baseUri)?i:"https://management.azure.com"}));super(e),this.subscriptionId=r,this.$host=t.$host||"https://management.azure.com",this.apiVersion=t.apiVersion||"2021-11-01",this.services=new ServicesImpl(this),this.privateEndpointConnections=new PrivateEndpointConnectionsImpl(this),this.privateLinkResources=new PrivateLinkResourcesImpl(this),this.workspaces=new WorkspacesImpl(this),this.dicomServices=new DicomServicesImpl(this),this.iotConnectors=new IotConnectorsImpl(this),this.fhirDestinations=new FhirDestinationsImpl(this),this.iotConnectorFhirDestination=new IotConnectorFhirDestinationImpl(this),this.fhirServices=new FhirServicesImpl(this),this.workspacePrivateEndpointConnections=new WorkspacePrivateEndpointConnectionsImpl(this),this.workspacePrivateLinkResources=new WorkspacePrivateLinkResourcesImpl(this),this.operations=new OperationsImpl(this),this.operationResults=new OperationResultsImpl(this)}}exports.HealthcareApisManagementClient=HealthcareApisManagementClient;