@azure/arm-healthcareapis 2.2.1-alpha.20231016.1 → 2.2.1-alpha.20231023.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/dist/index.js +36 -96
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.min.js +1 -1
  4. package/dist/index.min.js.map +1 -1
  5. package/dist-esm/samples-dev/dicomServicesListByWorkspaceSample.js +3 -8
  6. package/dist-esm/samples-dev/dicomServicesListByWorkspaceSample.js.map +1 -1
  7. package/dist-esm/samples-dev/fhirDestinationsListByIotConnectorSample.js +3 -8
  8. package/dist-esm/samples-dev/fhirDestinationsListByIotConnectorSample.js.map +1 -1
  9. package/dist-esm/samples-dev/fhirServicesListByWorkspaceSample.js +3 -8
  10. package/dist-esm/samples-dev/fhirServicesListByWorkspaceSample.js.map +1 -1
  11. package/dist-esm/samples-dev/iotConnectorsListByWorkspaceSample.js +3 -8
  12. package/dist-esm/samples-dev/iotConnectorsListByWorkspaceSample.js.map +1 -1
  13. package/dist-esm/samples-dev/listAllServicesInResourceGroup.js +3 -8
  14. package/dist-esm/samples-dev/listAllServicesInResourceGroup.js.map +1 -1
  15. package/dist-esm/samples-dev/listAllServicesInSubscription.js +3 -8
  16. package/dist-esm/samples-dev/listAllServicesInSubscription.js.map +1 -1
  17. package/dist-esm/samples-dev/listOperations.js +3 -8
  18. package/dist-esm/samples-dev/listOperations.js.map +1 -1
  19. package/dist-esm/samples-dev/operationsListSample.js +3 -8
  20. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  21. package/dist-esm/samples-dev/privateEndpointConnectionList.js +3 -8
  22. package/dist-esm/samples-dev/privateEndpointConnectionList.js.map +1 -1
  23. package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.js +3 -8
  24. package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.js.map +1 -1
  25. package/dist-esm/samples-dev/servicesListByResourceGroupSample.js +3 -8
  26. package/dist-esm/samples-dev/servicesListByResourceGroupSample.js.map +1 -1
  27. package/dist-esm/samples-dev/servicesListSample.js +3 -8
  28. package/dist-esm/samples-dev/servicesListSample.js.map +1 -1
  29. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsListByWorkspaceSample.js +3 -8
  30. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsListByWorkspaceSample.js.map +1 -1
  31. package/dist-esm/samples-dev/workspacePrivateLinkResourcesListByWorkspaceSample.js +3 -8
  32. package/dist-esm/samples-dev/workspacePrivateLinkResourcesListByWorkspaceSample.js.map +1 -1
  33. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +3 -8
  34. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +1 -1
  35. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +3 -8
  36. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +1 -1
  37. package/dist-esm/src/operations/dicomServices.js +3 -8
  38. package/dist-esm/src/operations/dicomServices.js.map +1 -1
  39. package/dist-esm/src/operations/fhirDestinations.js +3 -8
  40. package/dist-esm/src/operations/fhirDestinations.js.map +1 -1
  41. package/dist-esm/src/operations/fhirServices.js +3 -8
  42. package/dist-esm/src/operations/fhirServices.js.map +1 -1
  43. package/dist-esm/src/operations/iotConnectors.js +3 -8
  44. package/dist-esm/src/operations/iotConnectors.js.map +1 -1
  45. package/dist-esm/src/operations/operations.js +3 -8
  46. package/dist-esm/src/operations/operations.js.map +1 -1
  47. package/dist-esm/src/operations/privateEndpointConnections.js +3 -8
  48. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  49. package/dist-esm/src/operations/services.js +6 -16
  50. package/dist-esm/src/operations/services.js.map +1 -1
  51. package/dist-esm/src/operations/workspacePrivateEndpointConnections.js +3 -8
  52. package/dist-esm/src/operations/workspacePrivateEndpointConnections.js.map +1 -1
  53. package/dist-esm/src/operations/workspacePrivateLinkResources.js +3 -8
  54. package/dist-esm/src/operations/workspacePrivateLinkResources.js.map +1 -1
  55. package/dist-esm/src/operations/workspaces.js +6 -16
  56. package/dist-esm/src/operations/workspaces.js.map +1 -1
  57. package/package.json +2 -2
package/dist/index.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";var tslib=require("tslib"),coreClient=require("@azure/core-client"),coreRestPipeline=require("@azure/core-rest-pipeline"),coreLro=require("@azure/core-lro");function _interopNamespaceDefault(r){var t=Object.create(null);return r&&Object.keys(r).forEach(function(e){var i;"default"!==e&&(i=Object.getOwnPropertyDescriptor(r,e),Object.defineProperty(t,e,i.get?i:{enumerable:!0,get:function(){return r[e]}}))}),t.default=r,Object.freeze(t)}var coreClient__namespace=_interopNamespaceDefault(coreClient),coreRestPipeline__namespace=_interopNamespaceDefault(coreRestPipeline);const pageMap=new WeakMap;function getContinuationToken(e){return"object"!=typeof e||null===e||null==(e=pageMap.get(e))?void 0:e.continuationToken}function setContinuationToken(e,i){var r;"object"==typeof e&&null!==e&&i&&((r=null!=(r=pageMap.get(e))?r:{}).continuationToken=i,pageMap.set(e,r))}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:{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,CheckNameAvailabilityParameters:CheckNameAvailabilityParameters,DicomService:DicomService,DicomServiceAuthenticationConfiguration:DicomServiceAuthenticationConfiguration,DicomServiceCollection:DicomServiceCollection,DicomServicePatchResource:DicomServicePatchResource,ErrorDetails:ErrorDetails,ErrorDetailsInternal:ErrorDetailsInternal,ErrorModel:ErrorModel,FhirService:FhirService,FhirServiceAccessPolicyEntry:FhirServiceAccessPolicyEntry,FhirServiceAcrConfiguration:FhirServiceAcrConfiguration,FhirServiceAuthenticationConfiguration:FhirServiceAuthenticationConfiguration,FhirServiceCollection:FhirServiceCollection,FhirServiceCorsConfiguration:FhirServiceCorsConfiguration,FhirServiceExportConfiguration:FhirServiceExportConfiguration,FhirServicePatchResource:FhirServicePatchResource,IotConnector:IotConnector,IotConnectorCollection:IotConnectorCollection,IotConnectorPatchResource:IotConnectorPatchResource,IotDestinationProperties:IotDestinationProperties,IotEventHubIngestionEndpointConfiguration:IotEventHubIngestionEndpointConfiguration,IotFhirDestination:IotFhirDestination,IotFhirDestinationCollection:IotFhirDestinationCollection,IotFhirDestinationProperties:IotFhirDestinationProperties,IotMappingProperties:IotMappingProperties,ListOperations:ListOperations,LocationBasedResource:LocationBasedResource,LogSpecification:LogSpecification,MetricDimension:MetricDimension,MetricSpecification:MetricSpecification,OperationDetail:OperationDetail,OperationDisplay:OperationDisplay,OperationProperties:OperationProperties,OperationResultsDescription:OperationResultsDescription,PrivateEndpoint:PrivateEndpoint,PrivateEndpointConnection:PrivateEndpointConnection,PrivateEndpointConnectionDescription:PrivateEndpointConnectionDescription,PrivateEndpointConnectionListResult:PrivateEndpointConnectionListResult,PrivateEndpointConnectionListResultDescription:PrivateEndpointConnectionListResultDescription,PrivateLinkResource:PrivateLinkResource,PrivateLinkResourceDescription:PrivateLinkResourceDescription,PrivateLinkResourceListResultDescription:PrivateLinkResourceListResultDescription,PrivateLinkServiceConnectionState:PrivateLinkServiceConnectionState,Resource:Resource,ResourceCore:ResourceCore,ResourceTags:ResourceTags,ResourceVersionPolicyConfiguration:ResourceVersionPolicyConfiguration,ServiceAccessPolicyEntry:ServiceAccessPolicyEntry,ServiceAcrConfigurationInfo:ServiceAcrConfigurationInfo,ServiceAuthenticationConfigurationInfo:ServiceAuthenticationConfigurationInfo,ServiceCorsConfigurationInfo:ServiceCorsConfigurationInfo,ServiceCosmosDbConfigurationInfo:ServiceCosmosDbConfigurationInfo,ServiceExportConfigurationInfo:ServiceExportConfigurationInfo,ServiceManagedIdentity:ServiceManagedIdentity,ServiceManagedIdentityIdentity:ServiceManagedIdentityIdentity,ServiceOciArtifactEntry:ServiceOciArtifactEntry,ServiceSpecification:ServiceSpecification,ServicesDescription:ServicesDescription,ServicesDescriptionListResult:ServicesDescriptionListResult,ServicesNameAvailabilityInfo:ServicesNameAvailabilityInfo,ServicesPatchDescription:ServicesPatchDescription,ServicesProperties:ServicesProperties,ServicesResource:ServicesResource,ServicesResourceIdentity:ServicesResourceIdentity,SystemData:SystemData,TaggedResource:TaggedResource,UserAssignedIdentity:UserAssignedIdentity,Workspace:Workspace,WorkspaceList:WorkspaceList,WorkspacePatchResource:WorkspacePatchResource,WorkspaceProperties:WorkspaceProperties});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,i,r,t=r.path,a=r.httpMethod){this.sendOperationFn=e,this.args=i,this.spec=r,this.requestPath=t,this.requestMethod=a}sendInitialRequest(){return tslib.__awaiter(this,void 0,void 0,function*(){return this.sendOperationFn(this.args,this.spec)})}sendPollRequest(i){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:i,httpMethod:"GET"}))})}}class ServicesImpl{constructor(e){this.client=e}list(i){const e=this.listPagingAll(i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(i,e)}}}listPagingPage(a,o){return tslib.__asyncGenerator(this,arguments,function*(){let e,i=null==o?void 0:o.continuationToken;var r;for(i||(setContinuationToken(r=(e=yield tslib.__await(this._list(a))).value||[],i=e.nextLink),yield yield tslib.__await(r));i;){e=yield tslib.__await(this._listNext(i,a)),i=e.nextLink;var t=e.value||[];setContinuationToken(t,i),yield yield tslib.__await(t)}})}listPagingAll(n){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r,t;try{for(var a,o=!0,s=tslib.__asyncValues(this.listPagingPage(n));!(e=(a=yield tslib.__await(s.next())).done);){t=a.value,o=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(t)))}finally{o=!0}}}catch(e){i={error:e}}finally{try{o||e||!(r=s.return)||(yield tslib.__await(r.call(s)))}finally{if(i)throw i.error}}})}listByResourceGroup(i,r){const e=this.listByResourceGroupPagingAll(i,r);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByResourceGroupPagingPage(i,r,e)}}}listByResourceGroupPagingPage(a,o,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,i=null==s?void 0:s.continuationToken;var r;for(i||(setContinuationToken(r=(e=yield tslib.__await(this._listByResourceGroup(a,o))).value||[],i=e.nextLink),yield yield tslib.__await(r));i;){e=yield tslib.__await(this._listByResourceGroupNext(a,i,o)),i=e.nextLink;var t=e.value||[];setContinuationToken(t,i),yield yield tslib.__await(t)}})}listByResourceGroupPagingAll(n,p){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r,t;try{for(var a,o=!0,s=tslib.__asyncValues(this.listByResourceGroupPagingPage(n,p));!(e=(a=yield tslib.__await(s.next())).done);){t=a.value,o=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(t)))}finally{o=!0}}}catch(e){i={error:e}}finally{try{o||e||!(r=s.return)||(yield tslib.__await(r.call(s)))}finally{if(i)throw i.error}}})}get(e,i,r){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,options:r},getOperationSpec$a)}beginCreateOrUpdate(i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,resourceName:r,serviceDescription:t,options:a},createOrUpdateOperationSpec$7),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,i,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,i,r,t)).pollUntilDone()})}beginUpdate(i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,resourceName:r,servicePatchDescription:t,options:a},updateOperationSpec$4),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,i,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,i,r,t)).pollUntilDone()})}beginDelete(i,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,resourceName:r,options:t},deleteOperationSpec$7),e=new coreLro.LroEngine(e,{resumeFrom:null==t?void 0:t.resumeFrom,intervalInMs:null==t?void 0:t.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,i,r){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,i,r)).pollUntilDone()})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$1)}_listByResourceGroup(e,i){return this.client.sendOperationRequest({resourceGroupName:e,options:i},listByResourceGroupOperationSpec$1)}checkNameAvailability(e,i){return this.client.sendOperationRequest({checkNameAvailabilityInputs:e,options:i},checkNameAvailabilityOperationSpec)}_listNext(e,i){return this.client.sendOperationRequest({nextLink:e,options:i},listNextOperationSpec$1)}_listByResourceGroupNext(e,i,r){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:i,options:r},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(i,r,t){const e=this.listByServicePagingAll(i,r,t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByServicePagingPage(i,r,t,e)}}}listByServicePagingPage(i,r,t,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByService(i,r,t));yield yield tslib.__await(e.value||[])})}listByServicePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r,t;try{for(var a,o=!0,s=tslib.__asyncValues(this.listByServicePagingPage(n,p,c));!(e=(a=yield tslib.__await(s.next())).done);){t=a.value,o=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(t)))}finally{o=!0}}}catch(e){i={error:e}}finally{try{o||e||!(r=s.return)||(yield tslib.__await(r.call(s)))}finally{if(i)throw i.error}}})}_listByService(e,i,r){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,options:r},listByServiceOperationSpec$1)}get(e,i,r,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,privateEndpointConnectionName:r,options:t},getOperationSpec$9)}beginCreateOrUpdate(i,r,t,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,resourceName:r,privateEndpointConnectionName:t,properties:a,options:s},createOrUpdateOperationSpec$6),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,i,r,t,a)).pollUntilDone()})}beginDelete(i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,resourceName:r,privateEndpointConnectionName:t,options:a},deleteOperationSpec$6),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,i,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,i,r,t)).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,i,r){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,options:r},listByServiceOperationSpec)}get(e,i,r,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,groupName:r,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(i){const e=this.listBySubscriptionPagingAll(i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listBySubscriptionPagingPage(i,e)}}}listBySubscriptionPagingPage(a,o){return tslib.__asyncGenerator(this,arguments,function*(){let e,i=null==o?void 0:o.continuationToken;var r;for(i||(setContinuationToken(r=(e=yield tslib.__await(this._listBySubscription(a))).value||[],i=e.nextLink),yield yield tslib.__await(r));i;){e=yield tslib.__await(this._listBySubscriptionNext(i,a)),i=e.nextLink;var t=e.value||[];setContinuationToken(t,i),yield yield tslib.__await(t)}})}listBySubscriptionPagingAll(n){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r,t;try{for(var a,o=!0,s=tslib.__asyncValues(this.listBySubscriptionPagingPage(n));!(e=(a=yield tslib.__await(s.next())).done);){t=a.value,o=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(t)))}finally{o=!0}}}catch(e){i={error:e}}finally{try{o||e||!(r=s.return)||(yield tslib.__await(r.call(s)))}finally{if(i)throw i.error}}})}listByResourceGroup(i,r){const e=this.listByResourceGroupPagingAll(i,r);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByResourceGroupPagingPage(i,r,e)}}}listByResourceGroupPagingPage(a,o,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,i=null==s?void 0:s.continuationToken;var r;for(i||(setContinuationToken(r=(e=yield tslib.__await(this._listByResourceGroup(a,o))).value||[],i=e.nextLink),yield yield tslib.__await(r));i;){e=yield tslib.__await(this._listByResourceGroupNext(a,i,o)),i=e.nextLink;var t=e.value||[];setContinuationToken(t,i),yield yield tslib.__await(t)}})}listByResourceGroupPagingAll(n,p){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r,t;try{for(var a,o=!0,s=tslib.__asyncValues(this.listByResourceGroupPagingPage(n,p));!(e=(a=yield tslib.__await(s.next())).done);){t=a.value,o=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(t)))}finally{o=!0}}}catch(e){i={error:e}}finally{try{o||e||!(r=s.return)||(yield tslib.__await(r.call(s)))}finally{if(i)throw i.error}}})}_listBySubscription(e){return this.client.sendOperationRequest({options:e},listBySubscriptionOperationSpec)}_listByResourceGroup(e,i){return this.client.sendOperationRequest({resourceGroupName:e,options:i},listByResourceGroupOperationSpec)}get(e,i,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,options:r},getOperationSpec$7)}beginCreateOrUpdate(i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:r,workspace:t,options:a},createOrUpdateOperationSpec$5),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,i,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,i,r,t)).pollUntilDone()})}beginUpdate(i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:r,workspacePatchResource:t,options:a},updateOperationSpec$3),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,i,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,i,r,t)).pollUntilDone()})}beginDelete(i,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:r,options:t},deleteOperationSpec$5),e=new coreLro.LroEngine(e,{resumeFrom:null==t?void 0:t.resumeFrom,intervalInMs:null==t?void 0:t.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,i,r){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,i,r)).pollUntilDone()})}_listBySubscriptionNext(e,i){return this.client.sendOperationRequest({nextLink:e,options:i},listBySubscriptionNextOperationSpec)}_listByResourceGroupNext(e,i,r){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:i,options:r},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(i,r,t){const e=this.listByWorkspacePagingAll(i,r,t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByWorkspacePagingPage(i,r,t,e)}}}listByWorkspacePagingPage(a,o,s,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,i=null==n?void 0:n.continuationToken;var r;for(i||(setContinuationToken(r=(e=yield tslib.__await(this._listByWorkspace(a,o,s))).value||[],i=e.nextLink),yield yield tslib.__await(r));i;){e=yield tslib.__await(this._listByWorkspaceNext(a,o,i,s)),i=e.nextLink;var t=e.value||[];setContinuationToken(t,i),yield yield tslib.__await(t)}})}listByWorkspacePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r,t;try{for(var a,o=!0,s=tslib.__asyncValues(this.listByWorkspacePagingPage(n,p,c));!(e=(a=yield tslib.__await(s.next())).done);){t=a.value,o=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(t)))}finally{o=!0}}}catch(e){i={error:e}}finally{try{o||e||!(r=s.return)||(yield tslib.__await(r.call(s)))}finally{if(i)throw i.error}}})}_listByWorkspace(e,i,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,options:r},listByWorkspaceOperationSpec$4)}get(e,i,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,dicomServiceName:r,options:t},getOperationSpec$6)}beginCreateOrUpdate(i,r,t,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:r,dicomServiceName:t,dicomservice:a,options:s},createOrUpdateOperationSpec$4),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,i,r,t,a)).pollUntilDone()})}beginUpdate(i,r,t,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,dicomServiceName:r,workspaceName:t,dicomservicePatchResource:a,options:s},updateOperationSpec$2),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,i,r,t,a)).pollUntilDone()})}beginDelete(i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,dicomServiceName:r,workspaceName:t,options:a},deleteOperationSpec$4),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,i,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,i,r,t)).pollUntilDone()})}_listByWorkspaceNext(e,i,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,nextLink:r,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(i,r,t){const e=this.listByWorkspacePagingAll(i,r,t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByWorkspacePagingPage(i,r,t,e)}}}listByWorkspacePagingPage(a,o,s,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,i=null==n?void 0:n.continuationToken;var r;for(i||(setContinuationToken(r=(e=yield tslib.__await(this._listByWorkspace(a,o,s))).value||[],i=e.nextLink),yield yield tslib.__await(r));i;){e=yield tslib.__await(this._listByWorkspaceNext(a,o,i,s)),i=e.nextLink;var t=e.value||[];setContinuationToken(t,i),yield yield tslib.__await(t)}})}listByWorkspacePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r,t;try{for(var a,o=!0,s=tslib.__asyncValues(this.listByWorkspacePagingPage(n,p,c));!(e=(a=yield tslib.__await(s.next())).done);){t=a.value,o=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(t)))}finally{o=!0}}}catch(e){i={error:e}}finally{try{o||e||!(r=s.return)||(yield tslib.__await(r.call(s)))}finally{if(i)throw i.error}}})}_listByWorkspace(e,i,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,options:r},listByWorkspaceOperationSpec$3)}get(e,i,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,iotConnectorName:r,options:t},getOperationSpec$5)}beginCreateOrUpdate(i,r,t,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:r,iotConnectorName:t,iotConnector:a,options:s},createOrUpdateOperationSpec$3),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,i,r,t,a)).pollUntilDone()})}beginUpdate(i,r,t,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,iotConnectorName:r,workspaceName:t,iotConnectorPatchResource:a,options:s},updateOperationSpec$1),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,i,r,t,a)).pollUntilDone()})}beginDelete(i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,iotConnectorName:r,workspaceName:t,options:a},deleteOperationSpec$3),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,i,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,i,r,t)).pollUntilDone()})}_listByWorkspaceNext(e,i,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,nextLink:r,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(i,r,t,a){const e=this.listByIotConnectorPagingAll(i,r,t,a);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByIotConnectorPagingPage(i,r,t,a,e)}}}listByIotConnectorPagingPage(a,o,s,n,p){return tslib.__asyncGenerator(this,arguments,function*(){let e,i=null==p?void 0:p.continuationToken;var r;for(i||(setContinuationToken(r=(e=yield tslib.__await(this._listByIotConnector(a,o,s,n))).value||[],i=e.nextLink),yield yield tslib.__await(r));i;){e=yield tslib.__await(this._listByIotConnectorNext(a,o,s,i,n)),i=e.nextLink;var t=e.value||[];setContinuationToken(t,i),yield yield tslib.__await(t)}})}listByIotConnectorPagingAll(n,p,c,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r,t;try{for(var a,o=!0,s=tslib.__asyncValues(this.listByIotConnectorPagingPage(n,p,c,l));!(e=(a=yield tslib.__await(s.next())).done);){t=a.value,o=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(t)))}finally{o=!0}}}catch(e){i={error:e}}finally{try{o||e||!(r=s.return)||(yield tslib.__await(r.call(s)))}finally{if(i)throw i.error}}})}_listByIotConnector(e,i,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,iotConnectorName:r,options:t},listByIotConnectorOperationSpec)}_listByIotConnectorNext(e,i,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,iotConnectorName:r,nextLink:t,options:a},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,i,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,iotConnectorName:r,fhirDestinationName:t,options:a},getOperationSpec$4)}beginCreateOrUpdate(i,r,t,a,s,n){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:r,iotConnectorName:t,fhirDestinationName:a,iotFhirDestination:s,options:n},createOrUpdateOperationSpec$2),e=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,i,r,t,a,o){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,i,r,t,a,o)).pollUntilDone()})}beginDelete(i,r,t,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:r,iotConnectorName:t,fhirDestinationName:a,options:s},deleteOperationSpec$2),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,i,r,t,a)).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(i,r,t){const e=this.listByWorkspacePagingAll(i,r,t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByWorkspacePagingPage(i,r,t,e)}}}listByWorkspacePagingPage(a,o,s,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,i=null==n?void 0:n.continuationToken;var r;for(i||(setContinuationToken(r=(e=yield tslib.__await(this._listByWorkspace(a,o,s))).value||[],i=e.nextLink),yield yield tslib.__await(r));i;){e=yield tslib.__await(this._listByWorkspaceNext(a,o,i,s)),i=e.nextLink;var t=e.value||[];setContinuationToken(t,i),yield yield tslib.__await(t)}})}listByWorkspacePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r,t;try{for(var a,o=!0,s=tslib.__asyncValues(this.listByWorkspacePagingPage(n,p,c));!(e=(a=yield tslib.__await(s.next())).done);){t=a.value,o=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(t)))}finally{o=!0}}}catch(e){i={error:e}}finally{try{o||e||!(r=s.return)||(yield tslib.__await(r.call(s)))}finally{if(i)throw i.error}}})}_listByWorkspace(e,i,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,options:r},listByWorkspaceOperationSpec$2)}get(e,i,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,fhirServiceName:r,options:t},getOperationSpec$3)}beginCreateOrUpdate(i,r,t,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:r,fhirServiceName:t,fhirservice:a,options:s},createOrUpdateOperationSpec$1),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,i,r,t,a)).pollUntilDone()})}beginUpdate(i,r,t,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,fhirServiceName:r,workspaceName:t,fhirservicePatchResource:a,options:s},updateOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,i,r,t,a)).pollUntilDone()})}beginDelete(i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,fhirServiceName:r,workspaceName:t,options:a},deleteOperationSpec$1),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,i,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,i,r,t)).pollUntilDone()})}_listByWorkspaceNext(e,i,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,nextLink:r,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(i,r,t){const e=this.listByWorkspacePagingAll(i,r,t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByWorkspacePagingPage(i,r,t,e)}}}listByWorkspacePagingPage(i,r,t,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(i,r,t));yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r,t;try{for(var a,o=!0,s=tslib.__asyncValues(this.listByWorkspacePagingPage(n,p,c));!(e=(a=yield tslib.__await(s.next())).done);){t=a.value,o=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(t)))}finally{o=!0}}}catch(e){i={error:e}}finally{try{o||e||!(r=s.return)||(yield tslib.__await(r.call(s)))}finally{if(i)throw i.error}}})}_listByWorkspace(e,i,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,options:r},listByWorkspaceOperationSpec$1)}get(e,i,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,privateEndpointConnectionName:r,options:t},getOperationSpec$2)}beginCreateOrUpdate(i,r,t,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:r,privateEndpointConnectionName:t,properties:a,options:s},createOrUpdateOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,i,r,t,a)).pollUntilDone()})}beginDelete(i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:r,privateEndpointConnectionName:t,options:a},deleteOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,i,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,i,r,t)).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(i,r,t){const e=this.listByWorkspacePagingAll(i,r,t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByWorkspacePagingPage(i,r,t,e)}}}listByWorkspacePagingPage(i,r,t,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(i,r,t));yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r,t;try{for(var a,o=!0,s=tslib.__asyncValues(this.listByWorkspacePagingPage(n,p,c));!(e=(a=yield tslib.__await(s.next())).done);){t=a.value,o=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(t)))}finally{o=!0}}}catch(e){i={error:e}}finally{try{o||e||!(r=s.return)||(yield tslib.__await(r.call(s)))}finally{if(i)throw i.error}}})}_listByWorkspace(e,i,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,options:r},listByWorkspaceOperationSpec)}get(e,i,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,groupName:r,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(i){const e=this.listPagingAll(i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(i,e)}}}listPagingPage(a,o){return tslib.__asyncGenerator(this,arguments,function*(){let e,i=null==o?void 0:o.continuationToken;var r;for(i||(setContinuationToken(r=(e=yield tslib.__await(this._list(a))).value||[],i=e.nextLink),yield yield tslib.__await(r));i;){e=yield tslib.__await(this._listNext(i,a)),i=e.nextLink;var t=e.value||[];setContinuationToken(t,i),yield yield tslib.__await(t)}})}listPagingAll(n){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r,t;try{for(var a,o=!0,s=tslib.__asyncValues(this.listPagingPage(n));!(e=(a=yield tslib.__await(s.next())).done);){t=a.value,o=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(t)))}finally{o=!0}}}catch(e){i={error:e}}finally{try{o||e||!(r=s.return)||(yield tslib.__await(r.call(s)))}finally{if(i)throw i.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listNext(e,i){return this.client.sendOperationRequest({nextLink:e,options:i},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,i,r){return this.client.sendOperationRequest({locationName:e,operationResultId:i,options:r},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,i,r){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===i)throw new Error("'subscriptionId' cannot be null");var t,a="azsdk-js-arm-healthcareapis/2.2.1",a=(r=r||{}).userAgentOptions&&r.userAgentOptions.userAgentPrefix?r.userAgentOptions.userAgentPrefix+" "+a:a,a=Object.assign(Object.assign(Object.assign({},{requestContentType:"application/json; charset=utf-8",credential:e}),r),{userAgentOptions:{userAgentPrefix:a},endpoint:null!=(a=null!=(a=r.endpoint)?a:r.baseUri)?a:"https://management.azure.com"});super(a);let o=!1;null!=r&&r.pipeline&&0<r.pipeline.getOrderedPolicies().length&&(t=r.pipeline.getOrderedPolicies(),o=t.some(e=>e.name===coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName)),r&&r.pipeline&&0!=r.pipeline.getOrderedPolicies().length&&o||(this.pipeline.removePolicy({name:coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName}),this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({credential:e,scopes:null!=(t=a.credentialScopes)?t:a.endpoint+"/.default",challengeCallbacks:{authorizeRequestOnChallenge:coreClient__namespace.authorizeRequestOnClaimChallenge}}))),this.subscriptionId=i,this.$host=r.$host||"https://management.azure.com",this.apiVersion=r.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),this.addCustomApiVersionPolicy(r.apiVersion)}addCustomApiVersionPolicy(a){a&&this.pipeline.addPolicy({name:"CustomApiVersionPolicy",sendRequest(r,t){return tslib.__awaiter(this,void 0,void 0,function*(){var e,i=r.url.split("?");return 1<i.length&&(e=i[1].split("&").map(e=>-1<e.indexOf("api-version")?"api-version="+a:e),r.url=i[0]+"?"+e.join("&")),t(r)})}})}}exports.HealthcareApisManagementClient=HealthcareApisManagementClient,exports.getContinuationToken=getContinuationToken;
1
+ "use strict";var tslib=require("tslib"),coreClient=require("@azure/core-client"),coreRestPipeline=require("@azure/core-rest-pipeline"),coreLro=require("@azure/core-lro");function _interopNamespaceDefault(r){var t=Object.create(null);return r&&Object.keys(r).forEach(function(e){var i;"default"!==e&&(i=Object.getOwnPropertyDescriptor(r,e),Object.defineProperty(t,e,i.get?i:{enumerable:!0,get:function(){return r[e]}}))}),t.default=r,Object.freeze(t)}var coreClient__namespace=_interopNamespaceDefault(coreClient),coreRestPipeline__namespace=_interopNamespaceDefault(coreRestPipeline);const pageMap=new WeakMap;function getContinuationToken(e){return"object"!=typeof e||null===e||null==(e=pageMap.get(e))?void 0:e.continuationToken}function setContinuationToken(e,i){var r;"object"==typeof e&&null!==e&&i&&((r=null!=(r=pageMap.get(e))?r:{}).continuationToken=i,pageMap.set(e,r))}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:{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,CheckNameAvailabilityParameters:CheckNameAvailabilityParameters,DicomService:DicomService,DicomServiceAuthenticationConfiguration:DicomServiceAuthenticationConfiguration,DicomServiceCollection:DicomServiceCollection,DicomServicePatchResource:DicomServicePatchResource,ErrorDetails:ErrorDetails,ErrorDetailsInternal:ErrorDetailsInternal,ErrorModel:ErrorModel,FhirService:FhirService,FhirServiceAccessPolicyEntry:FhirServiceAccessPolicyEntry,FhirServiceAcrConfiguration:FhirServiceAcrConfiguration,FhirServiceAuthenticationConfiguration:FhirServiceAuthenticationConfiguration,FhirServiceCollection:FhirServiceCollection,FhirServiceCorsConfiguration:FhirServiceCorsConfiguration,FhirServiceExportConfiguration:FhirServiceExportConfiguration,FhirServicePatchResource:FhirServicePatchResource,IotConnector:IotConnector,IotConnectorCollection:IotConnectorCollection,IotConnectorPatchResource:IotConnectorPatchResource,IotDestinationProperties:IotDestinationProperties,IotEventHubIngestionEndpointConfiguration:IotEventHubIngestionEndpointConfiguration,IotFhirDestination:IotFhirDestination,IotFhirDestinationCollection:IotFhirDestinationCollection,IotFhirDestinationProperties:IotFhirDestinationProperties,IotMappingProperties:IotMappingProperties,ListOperations:ListOperations,LocationBasedResource:LocationBasedResource,LogSpecification:LogSpecification,MetricDimension:MetricDimension,MetricSpecification:MetricSpecification,OperationDetail:OperationDetail,OperationDisplay:OperationDisplay,OperationProperties:OperationProperties,OperationResultsDescription:OperationResultsDescription,PrivateEndpoint:PrivateEndpoint,PrivateEndpointConnection:PrivateEndpointConnection,PrivateEndpointConnectionDescription:PrivateEndpointConnectionDescription,PrivateEndpointConnectionListResult:PrivateEndpointConnectionListResult,PrivateEndpointConnectionListResultDescription:PrivateEndpointConnectionListResultDescription,PrivateLinkResource:PrivateLinkResource,PrivateLinkResourceDescription:PrivateLinkResourceDescription,PrivateLinkResourceListResultDescription:PrivateLinkResourceListResultDescription,PrivateLinkServiceConnectionState:PrivateLinkServiceConnectionState,Resource:Resource,ResourceCore:ResourceCore,ResourceTags:ResourceTags,ResourceVersionPolicyConfiguration:ResourceVersionPolicyConfiguration,ServiceAccessPolicyEntry:ServiceAccessPolicyEntry,ServiceAcrConfigurationInfo:ServiceAcrConfigurationInfo,ServiceAuthenticationConfigurationInfo:ServiceAuthenticationConfigurationInfo,ServiceCorsConfigurationInfo:ServiceCorsConfigurationInfo,ServiceCosmosDbConfigurationInfo:ServiceCosmosDbConfigurationInfo,ServiceExportConfigurationInfo:ServiceExportConfigurationInfo,ServiceManagedIdentity:ServiceManagedIdentity,ServiceManagedIdentityIdentity:ServiceManagedIdentityIdentity,ServiceOciArtifactEntry:ServiceOciArtifactEntry,ServiceSpecification:ServiceSpecification,ServicesDescription:ServicesDescription,ServicesDescriptionListResult:ServicesDescriptionListResult,ServicesNameAvailabilityInfo:ServicesNameAvailabilityInfo,ServicesPatchDescription:ServicesPatchDescription,ServicesProperties:ServicesProperties,ServicesResource:ServicesResource,ServicesResourceIdentity:ServicesResourceIdentity,SystemData:SystemData,TaggedResource:TaggedResource,UserAssignedIdentity:UserAssignedIdentity,Workspace:Workspace,WorkspaceList:WorkspaceList,WorkspacePatchResource:WorkspacePatchResource,WorkspaceProperties:WorkspaceProperties});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,i,r,t=r.path,a=r.httpMethod){this.sendOperationFn=e,this.args=i,this.spec=r,this.requestPath=t,this.requestMethod=a}sendInitialRequest(){return tslib.__awaiter(this,void 0,void 0,function*(){return this.sendOperationFn(this.args,this.spec)})}sendPollRequest(i){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:i,httpMethod:"GET"}))})}}class ServicesImpl{constructor(e){this.client=e}list(i){const e=this.listPagingAll(i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(i,e)}}}listPagingPage(a,o){return tslib.__asyncGenerator(this,arguments,function*(){let e,i=null==o?void 0:o.continuationToken;var r;for(i||(setContinuationToken(r=(e=yield tslib.__await(this._list(a))).value||[],i=e.nextLink),yield yield tslib.__await(r));i;){e=yield tslib.__await(this._listNext(i,a)),i=e.nextLink;var t=e.value||[];setContinuationToken(t,i),yield yield tslib.__await(t)}})}listPagingAll(n){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r;try{for(var t,a=!0,o=tslib.__asyncValues(this.listPagingPage(n));!(e=(t=yield tslib.__await(o.next())).done);a=!0){var s=t.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){i={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(i)throw i.error}}})}listByResourceGroup(i,r){const e=this.listByResourceGroupPagingAll(i,r);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByResourceGroupPagingPage(i,r,e)}}}listByResourceGroupPagingPage(a,o,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,i=null==s?void 0:s.continuationToken;var r;for(i||(setContinuationToken(r=(e=yield tslib.__await(this._listByResourceGroup(a,o))).value||[],i=e.nextLink),yield yield tslib.__await(r));i;){e=yield tslib.__await(this._listByResourceGroupNext(a,i,o)),i=e.nextLink;var t=e.value||[];setContinuationToken(t,i),yield yield tslib.__await(t)}})}listByResourceGroupPagingAll(n,p){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r;try{for(var t,a=!0,o=tslib.__asyncValues(this.listByResourceGroupPagingPage(n,p));!(e=(t=yield tslib.__await(o.next())).done);a=!0){var s=t.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){i={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(i)throw i.error}}})}get(e,i,r){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,options:r},getOperationSpec$a)}beginCreateOrUpdate(i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,resourceName:r,serviceDescription:t,options:a},createOrUpdateOperationSpec$7),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,i,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,i,r,t)).pollUntilDone()})}beginUpdate(i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,resourceName:r,servicePatchDescription:t,options:a},updateOperationSpec$4),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,i,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,i,r,t)).pollUntilDone()})}beginDelete(i,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,resourceName:r,options:t},deleteOperationSpec$7),e=new coreLro.LroEngine(e,{resumeFrom:null==t?void 0:t.resumeFrom,intervalInMs:null==t?void 0:t.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,i,r){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,i,r)).pollUntilDone()})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$1)}_listByResourceGroup(e,i){return this.client.sendOperationRequest({resourceGroupName:e,options:i},listByResourceGroupOperationSpec$1)}checkNameAvailability(e,i){return this.client.sendOperationRequest({checkNameAvailabilityInputs:e,options:i},checkNameAvailabilityOperationSpec)}_listNext(e,i){return this.client.sendOperationRequest({nextLink:e,options:i},listNextOperationSpec$1)}_listByResourceGroupNext(e,i,r){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:i,options:r},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(i,r,t){const e=this.listByServicePagingAll(i,r,t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByServicePagingPage(i,r,t,e)}}}listByServicePagingPage(i,r,t,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByService(i,r,t));yield yield tslib.__await(e.value||[])})}listByServicePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r;try{for(var t,a=!0,o=tslib.__asyncValues(this.listByServicePagingPage(n,p,c));!(e=(t=yield tslib.__await(o.next())).done);a=!0){var s=t.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){i={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(i)throw i.error}}})}_listByService(e,i,r){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,options:r},listByServiceOperationSpec$1)}get(e,i,r,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,privateEndpointConnectionName:r,options:t},getOperationSpec$9)}beginCreateOrUpdate(i,r,t,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,resourceName:r,privateEndpointConnectionName:t,properties:a,options:s},createOrUpdateOperationSpec$6),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,i,r,t,a)).pollUntilDone()})}beginDelete(i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,resourceName:r,privateEndpointConnectionName:t,options:a},deleteOperationSpec$6),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,i,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,i,r,t)).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,i,r){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,options:r},listByServiceOperationSpec)}get(e,i,r,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,groupName:r,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(i){const e=this.listBySubscriptionPagingAll(i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listBySubscriptionPagingPage(i,e)}}}listBySubscriptionPagingPage(a,o){return tslib.__asyncGenerator(this,arguments,function*(){let e,i=null==o?void 0:o.continuationToken;var r;for(i||(setContinuationToken(r=(e=yield tslib.__await(this._listBySubscription(a))).value||[],i=e.nextLink),yield yield tslib.__await(r));i;){e=yield tslib.__await(this._listBySubscriptionNext(i,a)),i=e.nextLink;var t=e.value||[];setContinuationToken(t,i),yield yield tslib.__await(t)}})}listBySubscriptionPagingAll(n){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r;try{for(var t,a=!0,o=tslib.__asyncValues(this.listBySubscriptionPagingPage(n));!(e=(t=yield tslib.__await(o.next())).done);a=!0){var s=t.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){i={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(i)throw i.error}}})}listByResourceGroup(i,r){const e=this.listByResourceGroupPagingAll(i,r);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByResourceGroupPagingPage(i,r,e)}}}listByResourceGroupPagingPage(a,o,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,i=null==s?void 0:s.continuationToken;var r;for(i||(setContinuationToken(r=(e=yield tslib.__await(this._listByResourceGroup(a,o))).value||[],i=e.nextLink),yield yield tslib.__await(r));i;){e=yield tslib.__await(this._listByResourceGroupNext(a,i,o)),i=e.nextLink;var t=e.value||[];setContinuationToken(t,i),yield yield tslib.__await(t)}})}listByResourceGroupPagingAll(n,p){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r;try{for(var t,a=!0,o=tslib.__asyncValues(this.listByResourceGroupPagingPage(n,p));!(e=(t=yield tslib.__await(o.next())).done);a=!0){var s=t.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){i={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(i)throw i.error}}})}_listBySubscription(e){return this.client.sendOperationRequest({options:e},listBySubscriptionOperationSpec)}_listByResourceGroup(e,i){return this.client.sendOperationRequest({resourceGroupName:e,options:i},listByResourceGroupOperationSpec)}get(e,i,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,options:r},getOperationSpec$7)}beginCreateOrUpdate(i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:r,workspace:t,options:a},createOrUpdateOperationSpec$5),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,i,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,i,r,t)).pollUntilDone()})}beginUpdate(i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:r,workspacePatchResource:t,options:a},updateOperationSpec$3),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,i,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,i,r,t)).pollUntilDone()})}beginDelete(i,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:r,options:t},deleteOperationSpec$5),e=new coreLro.LroEngine(e,{resumeFrom:null==t?void 0:t.resumeFrom,intervalInMs:null==t?void 0:t.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,i,r){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,i,r)).pollUntilDone()})}_listBySubscriptionNext(e,i){return this.client.sendOperationRequest({nextLink:e,options:i},listBySubscriptionNextOperationSpec)}_listByResourceGroupNext(e,i,r){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:i,options:r},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(i,r,t){const e=this.listByWorkspacePagingAll(i,r,t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByWorkspacePagingPage(i,r,t,e)}}}listByWorkspacePagingPage(a,o,s,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,i=null==n?void 0:n.continuationToken;var r;for(i||(setContinuationToken(r=(e=yield tslib.__await(this._listByWorkspace(a,o,s))).value||[],i=e.nextLink),yield yield tslib.__await(r));i;){e=yield tslib.__await(this._listByWorkspaceNext(a,o,i,s)),i=e.nextLink;var t=e.value||[];setContinuationToken(t,i),yield yield tslib.__await(t)}})}listByWorkspacePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r;try{for(var t,a=!0,o=tslib.__asyncValues(this.listByWorkspacePagingPage(n,p,c));!(e=(t=yield tslib.__await(o.next())).done);a=!0){var s=t.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){i={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(i)throw i.error}}})}_listByWorkspace(e,i,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,options:r},listByWorkspaceOperationSpec$4)}get(e,i,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,dicomServiceName:r,options:t},getOperationSpec$6)}beginCreateOrUpdate(i,r,t,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:r,dicomServiceName:t,dicomservice:a,options:s},createOrUpdateOperationSpec$4),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,i,r,t,a)).pollUntilDone()})}beginUpdate(i,r,t,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,dicomServiceName:r,workspaceName:t,dicomservicePatchResource:a,options:s},updateOperationSpec$2),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,i,r,t,a)).pollUntilDone()})}beginDelete(i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,dicomServiceName:r,workspaceName:t,options:a},deleteOperationSpec$4),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,i,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,i,r,t)).pollUntilDone()})}_listByWorkspaceNext(e,i,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,nextLink:r,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(i,r,t){const e=this.listByWorkspacePagingAll(i,r,t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByWorkspacePagingPage(i,r,t,e)}}}listByWorkspacePagingPage(a,o,s,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,i=null==n?void 0:n.continuationToken;var r;for(i||(setContinuationToken(r=(e=yield tslib.__await(this._listByWorkspace(a,o,s))).value||[],i=e.nextLink),yield yield tslib.__await(r));i;){e=yield tslib.__await(this._listByWorkspaceNext(a,o,i,s)),i=e.nextLink;var t=e.value||[];setContinuationToken(t,i),yield yield tslib.__await(t)}})}listByWorkspacePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r;try{for(var t,a=!0,o=tslib.__asyncValues(this.listByWorkspacePagingPage(n,p,c));!(e=(t=yield tslib.__await(o.next())).done);a=!0){var s=t.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){i={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(i)throw i.error}}})}_listByWorkspace(e,i,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,options:r},listByWorkspaceOperationSpec$3)}get(e,i,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,iotConnectorName:r,options:t},getOperationSpec$5)}beginCreateOrUpdate(i,r,t,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:r,iotConnectorName:t,iotConnector:a,options:s},createOrUpdateOperationSpec$3),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,i,r,t,a)).pollUntilDone()})}beginUpdate(i,r,t,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,iotConnectorName:r,workspaceName:t,iotConnectorPatchResource:a,options:s},updateOperationSpec$1),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,i,r,t,a)).pollUntilDone()})}beginDelete(i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,iotConnectorName:r,workspaceName:t,options:a},deleteOperationSpec$3),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,i,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,i,r,t)).pollUntilDone()})}_listByWorkspaceNext(e,i,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,nextLink:r,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(i,r,t,a){const e=this.listByIotConnectorPagingAll(i,r,t,a);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByIotConnectorPagingPage(i,r,t,a,e)}}}listByIotConnectorPagingPage(a,o,s,n,p){return tslib.__asyncGenerator(this,arguments,function*(){let e,i=null==p?void 0:p.continuationToken;var r;for(i||(setContinuationToken(r=(e=yield tslib.__await(this._listByIotConnector(a,o,s,n))).value||[],i=e.nextLink),yield yield tslib.__await(r));i;){e=yield tslib.__await(this._listByIotConnectorNext(a,o,s,i,n)),i=e.nextLink;var t=e.value||[];setContinuationToken(t,i),yield yield tslib.__await(t)}})}listByIotConnectorPagingAll(n,p,c,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r;try{for(var t,a=!0,o=tslib.__asyncValues(this.listByIotConnectorPagingPage(n,p,c,l));!(e=(t=yield tslib.__await(o.next())).done);a=!0){var s=t.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){i={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(i)throw i.error}}})}_listByIotConnector(e,i,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,iotConnectorName:r,options:t},listByIotConnectorOperationSpec)}_listByIotConnectorNext(e,i,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,iotConnectorName:r,nextLink:t,options:a},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,i,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,iotConnectorName:r,fhirDestinationName:t,options:a},getOperationSpec$4)}beginCreateOrUpdate(i,r,t,a,s,n){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:r,iotConnectorName:t,fhirDestinationName:a,iotFhirDestination:s,options:n},createOrUpdateOperationSpec$2),e=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,i,r,t,a,o){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,i,r,t,a,o)).pollUntilDone()})}beginDelete(i,r,t,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:r,iotConnectorName:t,fhirDestinationName:a,options:s},deleteOperationSpec$2),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,i,r,t,a)).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(i,r,t){const e=this.listByWorkspacePagingAll(i,r,t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByWorkspacePagingPage(i,r,t,e)}}}listByWorkspacePagingPage(a,o,s,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,i=null==n?void 0:n.continuationToken;var r;for(i||(setContinuationToken(r=(e=yield tslib.__await(this._listByWorkspace(a,o,s))).value||[],i=e.nextLink),yield yield tslib.__await(r));i;){e=yield tslib.__await(this._listByWorkspaceNext(a,o,i,s)),i=e.nextLink;var t=e.value||[];setContinuationToken(t,i),yield yield tslib.__await(t)}})}listByWorkspacePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r;try{for(var t,a=!0,o=tslib.__asyncValues(this.listByWorkspacePagingPage(n,p,c));!(e=(t=yield tslib.__await(o.next())).done);a=!0){var s=t.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){i={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(i)throw i.error}}})}_listByWorkspace(e,i,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,options:r},listByWorkspaceOperationSpec$2)}get(e,i,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,fhirServiceName:r,options:t},getOperationSpec$3)}beginCreateOrUpdate(i,r,t,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:r,fhirServiceName:t,fhirservice:a,options:s},createOrUpdateOperationSpec$1),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,i,r,t,a)).pollUntilDone()})}beginUpdate(i,r,t,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,fhirServiceName:r,workspaceName:t,fhirservicePatchResource:a,options:s},updateOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,i,r,t,a)).pollUntilDone()})}beginDelete(i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,fhirServiceName:r,workspaceName:t,options:a},deleteOperationSpec$1),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,i,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,i,r,t)).pollUntilDone()})}_listByWorkspaceNext(e,i,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,nextLink:r,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(i,r,t){const e=this.listByWorkspacePagingAll(i,r,t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByWorkspacePagingPage(i,r,t,e)}}}listByWorkspacePagingPage(i,r,t,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(i,r,t));yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r;try{for(var t,a=!0,o=tslib.__asyncValues(this.listByWorkspacePagingPage(n,p,c));!(e=(t=yield tslib.__await(o.next())).done);a=!0){var s=t.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){i={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(i)throw i.error}}})}_listByWorkspace(e,i,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,options:r},listByWorkspaceOperationSpec$1)}get(e,i,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,privateEndpointConnectionName:r,options:t},getOperationSpec$2)}beginCreateOrUpdate(i,r,t,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:r,privateEndpointConnectionName:t,properties:a,options:s},createOrUpdateOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,i,r,t,a)).pollUntilDone()})}beginDelete(i,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const t=null==(e=i.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{r=e,null!==t&&void 0!==t&&t(e,i)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:r,privateEndpointConnectionName:t,options:a},deleteOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,i,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,i,r,t)).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(i,r,t){const e=this.listByWorkspacePagingAll(i,r,t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByWorkspacePagingPage(i,r,t,e)}}}listByWorkspacePagingPage(i,r,t,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(i,r,t));yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r;try{for(var t,a=!0,o=tslib.__asyncValues(this.listByWorkspacePagingPage(n,p,c));!(e=(t=yield tslib.__await(o.next())).done);a=!0){var s=t.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){i={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(i)throw i.error}}})}_listByWorkspace(e,i,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,options:r},listByWorkspaceOperationSpec)}get(e,i,r,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:i,groupName:r,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(i){const e=this.listPagingAll(i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(i,e)}}}listPagingPage(a,o){return tslib.__asyncGenerator(this,arguments,function*(){let e,i=null==o?void 0:o.continuationToken;var r;for(i||(setContinuationToken(r=(e=yield tslib.__await(this._list(a))).value||[],i=e.nextLink),yield yield tslib.__await(r));i;){e=yield tslib.__await(this._listNext(i,a)),i=e.nextLink;var t=e.value||[];setContinuationToken(t,i),yield yield tslib.__await(t)}})}listPagingAll(n){return tslib.__asyncGenerator(this,arguments,function*(){var e,i,r;try{for(var t,a=!0,o=tslib.__asyncValues(this.listPagingPage(n));!(e=(t=yield tslib.__await(o.next())).done);a=!0){var s=t.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){i={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(i)throw i.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listNext(e,i){return this.client.sendOperationRequest({nextLink:e,options:i},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,i,r){return this.client.sendOperationRequest({locationName:e,operationResultId:i,options:r},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,i,r){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===i)throw new Error("'subscriptionId' cannot be null");var t,a="azsdk-js-arm-healthcareapis/2.2.1",a=(r=r||{}).userAgentOptions&&r.userAgentOptions.userAgentPrefix?r.userAgentOptions.userAgentPrefix+" "+a:a,a=Object.assign(Object.assign(Object.assign({},{requestContentType:"application/json; charset=utf-8",credential:e}),r),{userAgentOptions:{userAgentPrefix:a},endpoint:null!=(a=null!=(a=r.endpoint)?a:r.baseUri)?a:"https://management.azure.com"});super(a);let o=!1;null!=r&&r.pipeline&&0<r.pipeline.getOrderedPolicies().length&&(t=r.pipeline.getOrderedPolicies(),o=t.some(e=>e.name===coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName)),r&&r.pipeline&&0!=r.pipeline.getOrderedPolicies().length&&o||(this.pipeline.removePolicy({name:coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName}),this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({credential:e,scopes:null!=(t=a.credentialScopes)?t:a.endpoint+"/.default",challengeCallbacks:{authorizeRequestOnChallenge:coreClient__namespace.authorizeRequestOnClaimChallenge}}))),this.subscriptionId=i,this.$host=r.$host||"https://management.azure.com",this.apiVersion=r.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),this.addCustomApiVersionPolicy(r.apiVersion)}addCustomApiVersionPolicy(a){a&&this.pipeline.addPolicy({name:"CustomApiVersionPolicy",sendRequest(r,t){return tslib.__awaiter(this,void 0,void 0,function*(){var e,i=r.url.split("?");return 1<i.length&&(e=i[1].split("&").map(e=>-1<e.indexOf("api-version")?"api-version="+a:e),r.url=i[0]+"?"+e.join("&")),t(r)})}})}}exports.HealthcareApisManagementClient=HealthcareApisManagementClient,exports.getContinuationToken=getContinuationToken;