@azure/arm-healthcareapis 3.0.0-alpha.20231222.1 → 3.0.1-alpha.20231227.2

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release History
2
-
2
+
3
+ ## 3.0.1 (Unreleased)
4
+
5
+ ### Features Added
6
+
7
+ ### Breaking Changes
8
+
9
+ ### Bugs Fixed
10
+
11
+ ### Other Changes
12
+
3
13
  ## 3.0.0 (2023-12-07)
4
14
 
5
15
  **Features**
package/dist/index.js CHANGED
@@ -6748,7 +6748,7 @@ class HealthcareApisManagementClient extends coreClient__namespace.ServiceClient
6748
6748
  requestContentType: "application/json; charset=utf-8",
6749
6749
  credential: credentials
6750
6750
  };
6751
- const packageDetails = `azsdk-js-arm-healthcareapis/3.0.0`;
6751
+ const packageDetails = `azsdk-js-arm-healthcareapis/3.0.1`;
6752
6752
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
6753
6753
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
6754
6754
  : `${packageDetails}`;
package/dist/index.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var tslib=require("tslib"),coreClient=require("@azure/core-client"),coreRestPipeline=require("@azure/core-rest-pipeline"),coreLro=require("@azure/core-lro");function _interopNamespaceDefault(r){var i=Object.create(null);return r&&Object.keys(r).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(r,e),Object.defineProperty(i,e,t.get?t:{enumerable:!0,get:function(){return r[e]}}))}),i.default=r,Object.freeze(i)}var coreClient__namespace=_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,t){var r;"object"==typeof e&&null!==e&&t&&((r=null!=(r=pageMap.get(e))?r:{}).continuationToken=t,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.KnownServiceEventState=void 0,function(e){e.Disabled="Disabled",e.Enabled="Enabled",e.Updating="Updating"}(exports.KnownServiceEventState||(exports.KnownServiceEventState={})),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.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"}},importConfiguration:{serializedName:"importConfiguration",type:{name:"Composite",className:"ServiceImportConfigurationInfo"}}}}},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"}},crossTenantCmkApplicationId:{constraints:{Pattern:new RegExp("^(([0-9A-Fa-f]{8}[-]?(?:[0-9A-Fa-f]{4}[-]?){3}[0-9A-Fa-f]{12}){1})+$")},serializedName:"crossTenantCmkApplicationId",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"}}}}},ServiceImportConfigurationInfo={type:{name:"Composite",className:"ServiceImportConfigurationInfo",modelProperties:{integrationDataStore:{serializedName:"integrationDataStore",type:{name:"String"}},initialImportMode:{serializedName:"initialImportMode",type:{name:"Boolean"}},enabled:{serializedName:"enabled",type:{name:"Boolean"}}}}},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"}}}}}}},CorsConfiguration={type:{name:"Composite",className:"CorsConfiguration",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"}}}}},Encryption={type:{name:"Composite",className:"Encryption",modelProperties:{customerManagedKeyEncryption:{serializedName:"customerManagedKeyEncryption",type:{name:"Composite",className:"EncryptionCustomerManagedKeyEncryption"}}}}},EncryptionCustomerManagedKeyEncryption={type:{name:"Composite",className:"EncryptionCustomerManagedKeyEncryption",modelProperties:{keyEncryptionKeyUrl:{serializedName:"keyEncryptionKeyUrl",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"}}}}}}},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"}}}}}}},FhirServiceImportConfiguration={type:{name:"Composite",className:"FhirServiceImportConfiguration",modelProperties:{integrationDataStore:{serializedName:"integrationDataStore",type:{name:"String"}},initialImportMode:{serializedName:"initialImportMode",type:{name:"Boolean"}},enabled:{serializedName:"enabled",type:{name:"Boolean"}}}}},ImplementationGuidesConfiguration={type:{name:"Composite",className:"ImplementationGuidesConfiguration",modelProperties:{usCoreMissingData:{serializedName:"usCoreMissingData",type:{name:"Boolean"}}}}},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"}},metricFilterPattern:{serializedName:"metricFilterPattern",type:{name:"String"}},dimensions:{serializedName:"dimensions",type:{name:"Sequence",element:{type:{name:"Composite",className:"MetricDimension"}}}},isInternal:{serializedName:"isInternal",type:{name:"Boolean"}},sourceMdmAccount:{serializedName:"sourceMdmAccount",type:{name:"String"}},sourceMdmNamespace:{serializedName:"sourceMdmNamespace",type:{name:"String"}},enableRegionalMdmAccount:{serializedName:"enableRegionalMdmAccount",type:{name:"Boolean"}},resourceIdDimensionNameOverride:{serializedName:"resourceIdDimensionNameOverride",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"}},corsConfiguration:{serializedName:"properties.corsConfiguration",type:{name:"Composite",className:"CorsConfiguration"}},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"}},eventState:{serializedName:"properties.eventState",readOnly:!0,type:{name:"String"}},encryption:{serializedName:"properties.encryption",type:{name:"Composite",className:"Encryption"}}})}},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"}},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"}},importConfiguration:{serializedName:"properties.importConfiguration",type:{name:"Composite",className:"FhirServiceImportConfiguration"}},implementationGuidesConfiguration:{serializedName:"properties.implementationGuidesConfiguration",type:{name:"Composite",className:"ImplementationGuidesConfiguration"}},encryption:{serializedName:"properties.encryption",type:{name:"Composite",className:"Encryption"}}})}},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,CorsConfiguration:CorsConfiguration,DicomService:DicomService,DicomServiceAuthenticationConfiguration:DicomServiceAuthenticationConfiguration,DicomServiceCollection:DicomServiceCollection,DicomServicePatchResource:DicomServicePatchResource,Encryption:Encryption,EncryptionCustomerManagedKeyEncryption:EncryptionCustomerManagedKeyEncryption,ErrorDetails:ErrorDetails,ErrorDetailsInternal:ErrorDetailsInternal,ErrorModel:ErrorModel,FhirService:FhirService,FhirServiceAcrConfiguration:FhirServiceAcrConfiguration,FhirServiceAuthenticationConfiguration:FhirServiceAuthenticationConfiguration,FhirServiceCollection:FhirServiceCollection,FhirServiceCorsConfiguration:FhirServiceCorsConfiguration,FhirServiceExportConfiguration:FhirServiceExportConfiguration,FhirServiceImportConfiguration:FhirServiceImportConfiguration,FhirServicePatchResource:FhirServicePatchResource,ImplementationGuidesConfiguration:ImplementationGuidesConfiguration,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,ServiceImportConfigurationInfo:ServiceImportConfigurationInfo,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:"2023-11-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{constraints:{MinLength:1},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"}}};function createLroSpec(e){const{args:i,spec:a,sendOperationFn:o}=e;return{requestMethod:a.httpMethod,requestPath:a.path,sendInitialRequest:()=>o(i,a),sendPollRequest:(e,t)=>{var r=tslib.__rest(a,["requestBody"]);return o(i,Object.assign(Object.assign({},r),{httpMethod:"GET",path:e,abortSignal:null==t?void 0:t.abortSignal}))}}}class ServicesImpl{constructor(e){this.client=e}list(t){const e=this.listPagingAll(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.listPagingPage(t,e)}}}listPagingPage(a,o){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==o?void 0:o.continuationToken;var r;for(t||(setContinuationToken(r=(e=yield tslib.__await(this._list(a))).value||[],t=e.nextLink),yield yield tslib.__await(r));t;){e=yield tslib.__await(this._listNext(t,a)),t=e.nextLink;var i=e.value||[];setContinuationToken(i,t),yield yield tslib.__await(i)}})}listPagingAll(n){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listPagingPage(n));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}listByResourceGroup(t,r){const e=this.listByResourceGroupPagingAll(t,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(t,r,e)}}}listByResourceGroupPagingPage(a,o,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==s?void 0:s.continuationToken;var r;for(t||(setContinuationToken(r=(e=yield tslib.__await(this._listByResourceGroup(a,o))).value||[],t=e.nextLink),yield yield tslib.__await(r));t;){e=yield tslib.__await(this._listByResourceGroupNext(a,t,o)),t=e.nextLink;var i=e.value||[];setContinuationToken(i,t),yield yield tslib.__await(i)}})}listByResourceGroupPagingAll(n,p){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listByResourceGroupPagingPage(n,p));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}get(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:t,options:r},getOperationSpec$a)}beginCreateOrUpdate(t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,resourceName:r,serviceDescription:i,options:a},spec:createOrUpdateOperationSpec$7}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,t,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,t,r,i)).pollUntilDone()})}beginUpdate(t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,resourceName:r,servicePatchDescription:i,options:a},spec:updateOperationSpec$4}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,t,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,t,r,i)).pollUntilDone()})}beginDelete(t,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,resourceName:r,options:i},spec:deleteOperationSpec$7}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==i?void 0:i.resumeFrom,intervalInMs:null==i?void 0:i.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,t,r){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,t,r)).pollUntilDone()})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$1)}_listByResourceGroup(e,t){return this.client.sendOperationRequest({resourceGroupName:e,options:t},listByResourceGroupOperationSpec$1)}checkNameAvailability(e,t){return this.client.sendOperationRequest({checkNameAvailabilityInputs:e,options:t},checkNameAvailabilityOperationSpec)}_listNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listNextOperationSpec$1)}_listByResourceGroupNext(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:t,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}},urlParameters:[$host,subscriptionId,nextLink],headerParameters:[accept],serializer:serializer$c},listByResourceGroupNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ServicesDescriptionListResult},default:{bodyMapper:ErrorDetails}},urlParameters:[$host,subscriptionId,resourceGroupName,nextLink],headerParameters:[accept],serializer:serializer$c};class PrivateEndpointConnectionsImpl{constructor(e){this.client=e}listByService(t,r,i){const e=this.listByServicePagingAll(t,r,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.listByServicePagingPage(t,r,i,e)}}}listByServicePagingPage(t,r,i,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByService(t,r,i));yield yield tslib.__await(e.value||[])})}listByServicePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listByServicePagingPage(n,p,c));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}_listByService(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:t,options:r},listByServiceOperationSpec$1)}get(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:t,privateEndpointConnectionName:r,options:i},getOperationSpec$9)}beginCreateOrUpdate(t,r,i,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,resourceName:r,privateEndpointConnectionName:i,properties:a,options:s},spec:createOrUpdateOperationSpec$6}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,t,r,i,a)).pollUntilDone()})}beginDelete(t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,resourceName:r,privateEndpointConnectionName:i,options:a},spec:deleteOperationSpec$6}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,t,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,t,r,i)).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,t,r){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:t,options:r},listByServiceOperationSpec)}get(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:t,groupName:r,options:i},getOperationSpec$8)}}const serializer$a=coreClient__namespace.createSerializer(Mappers,!1),listByServiceOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceListResultDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer$a},getOperationSpec$8={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources/{groupName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,groupName],headerParameters:[accept],serializer:serializer$a};class WorkspacesImpl{constructor(e){this.client=e}listBySubscription(t){const e=this.listBySubscriptionPagingAll(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.listBySubscriptionPagingPage(t,e)}}}listBySubscriptionPagingPage(a,o){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==o?void 0:o.continuationToken;var r;for(t||(setContinuationToken(r=(e=yield tslib.__await(this._listBySubscription(a))).value||[],t=e.nextLink),yield yield tslib.__await(r));t;){e=yield tslib.__await(this._listBySubscriptionNext(t,a)),t=e.nextLink;var i=e.value||[];setContinuationToken(i,t),yield yield tslib.__await(i)}})}listBySubscriptionPagingAll(n){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listBySubscriptionPagingPage(n));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}listByResourceGroup(t,r){const e=this.listByResourceGroupPagingAll(t,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(t,r,e)}}}listByResourceGroupPagingPage(a,o,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==s?void 0:s.continuationToken;var r;for(t||(setContinuationToken(r=(e=yield tslib.__await(this._listByResourceGroup(a,o))).value||[],t=e.nextLink),yield yield tslib.__await(r));t;){e=yield tslib.__await(this._listByResourceGroupNext(a,t,o)),t=e.nextLink;var i=e.value||[];setContinuationToken(i,t),yield yield tslib.__await(i)}})}listByResourceGroupPagingAll(n,p){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listByResourceGroupPagingPage(n,p));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}_listBySubscription(e){return this.client.sendOperationRequest({options:e},listBySubscriptionOperationSpec)}_listByResourceGroup(e,t){return this.client.sendOperationRequest({resourceGroupName:e,options:t},listByResourceGroupOperationSpec)}get(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,options:r},getOperationSpec$7)}beginCreateOrUpdate(t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,workspaceName:r,workspace:i,options:a},spec:createOrUpdateOperationSpec$5}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,t,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,t,r,i)).pollUntilDone()})}beginUpdate(t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,workspaceName:r,workspacePatchResource:i,options:a},spec:updateOperationSpec$3}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,t,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,t,r,i)).pollUntilDone()})}beginDelete(t,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,workspaceName:r,options:i},spec:deleteOperationSpec$5}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==i?void 0:i.resumeFrom,intervalInMs:null==i?void 0:i.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,t,r){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,t,r)).pollUntilDone()})}_listBySubscriptionNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listBySubscriptionNextOperationSpec)}_listByResourceGroupNext(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:t,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}},urlParameters:[$host,subscriptionId,nextLink],headerParameters:[accept],serializer:serializer$9},listByResourceGroupNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:WorkspaceList},default:{bodyMapper:ErrorDetails}},urlParameters:[$host,subscriptionId,resourceGroupName,nextLink],headerParameters:[accept],serializer:serializer$9};class DicomServicesImpl{constructor(e){this.client=e}listByWorkspace(t,r,i){const e=this.listByWorkspacePagingAll(t,r,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.listByWorkspacePagingPage(t,r,i,e)}}}listByWorkspacePagingPage(a,o,s,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==n?void 0:n.continuationToken;var r;for(t||(setContinuationToken(r=(e=yield tslib.__await(this._listByWorkspace(a,o,s))).value||[],t=e.nextLink),yield yield tslib.__await(r));t;){e=yield tslib.__await(this._listByWorkspaceNext(a,o,t,s)),t=e.nextLink;var i=e.value||[];setContinuationToken(i,t),yield yield tslib.__await(i)}})}listByWorkspacePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listByWorkspacePagingPage(n,p,c));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}_listByWorkspace(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,options:r},listByWorkspaceOperationSpec$4)}get(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,dicomServiceName:r,options:i},getOperationSpec$6)}beginCreateOrUpdate(t,r,i,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,workspaceName:r,dicomServiceName:i,dicomservice:a,options:s},spec:createOrUpdateOperationSpec$4}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,t,r,i,a)).pollUntilDone()})}beginUpdate(t,r,i,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,dicomServiceName:r,workspaceName:i,dicomservicePatchResource:a,options:s},spec:updateOperationSpec$2}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,t,r,i,a)).pollUntilDone()})}beginDelete(t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,dicomServiceName:r,workspaceName:i,options:a},spec:deleteOperationSpec$4}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,t,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,t,r,i)).pollUntilDone()})}_listByWorkspaceNext(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,nextLink:r,options:i},listByWorkspaceNextOperationSpec$2)}}const serializer$8=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices",httpMethod:"GET",responses:{200:{bodyMapper:DicomServiceCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$8},getOperationSpec$6={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",httpMethod:"GET",responses:{200:{bodyMapper:DicomService},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,dicomServiceName],headerParameters:[accept],serializer:serializer$8},createOrUpdateOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",httpMethod:"PUT",responses:{200:{bodyMapper:DicomService},201:{bodyMapper:DicomService},202:{bodyMapper:DicomService},204:{bodyMapper:DicomService},default:{bodyMapper:ErrorDetails}},requestBody:dicomservice,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,dicomServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$8},updateOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",httpMethod:"PATCH",responses:{200:{bodyMapper:DicomService},201:{bodyMapper:DicomService},202:{bodyMapper:DicomService},204:{bodyMapper:DicomService},default:{bodyMapper:ErrorDetails}},requestBody:dicomservicePatchResource,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,dicomServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$8},deleteOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,dicomServiceName],headerParameters:[accept],serializer:serializer$8},listByWorkspaceNextOperationSpec$2={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:DicomServiceCollection},default:{bodyMapper:ErrorDetails}},urlParameters:[$host,subscriptionId,resourceGroupName,nextLink,workspaceName],headerParameters:[accept],serializer:serializer$8};class IotConnectorsImpl{constructor(e){this.client=e}listByWorkspace(t,r,i){const e=this.listByWorkspacePagingAll(t,r,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.listByWorkspacePagingPage(t,r,i,e)}}}listByWorkspacePagingPage(a,o,s,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==n?void 0:n.continuationToken;var r;for(t||(setContinuationToken(r=(e=yield tslib.__await(this._listByWorkspace(a,o,s))).value||[],t=e.nextLink),yield yield tslib.__await(r));t;){e=yield tslib.__await(this._listByWorkspaceNext(a,o,t,s)),t=e.nextLink;var i=e.value||[];setContinuationToken(i,t),yield yield tslib.__await(i)}})}listByWorkspacePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listByWorkspacePagingPage(n,p,c));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}_listByWorkspace(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,options:r},listByWorkspaceOperationSpec$3)}get(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,iotConnectorName:r,options:i},getOperationSpec$5)}beginCreateOrUpdate(t,r,i,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,workspaceName:r,iotConnectorName:i,iotConnector:a,options:s},spec:createOrUpdateOperationSpec$3}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,t,r,i,a)).pollUntilDone()})}beginUpdate(t,r,i,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,iotConnectorName:r,workspaceName:i,iotConnectorPatchResource:a,options:s},spec:updateOperationSpec$1}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,t,r,i,a)).pollUntilDone()})}beginDelete(t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,iotConnectorName:r,workspaceName:i,options:a},spec:deleteOperationSpec$3}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,t,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,t,r,i)).pollUntilDone()})}_listByWorkspaceNext(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,nextLink:r,options:i},listByWorkspaceNextOperationSpec$1)}}const serializer$7=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors",httpMethod:"GET",responses:{200:{bodyMapper:IotConnectorCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$7},getOperationSpec$5={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}",httpMethod:"GET",responses:{200:{bodyMapper:IotConnector},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept],serializer:serializer$7},createOrUpdateOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}",httpMethod:"PUT",responses:{200:{bodyMapper:IotConnector},201:{bodyMapper:IotConnector},202:{bodyMapper:IotConnector},204:{bodyMapper:IotConnector},default:{bodyMapper:ErrorDetails}},requestBody:iotConnector,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$7},updateOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}",httpMethod:"PATCH",responses:{200:{bodyMapper:IotConnector},201:{bodyMapper:IotConnector},202:{bodyMapper:IotConnector},204:{bodyMapper:IotConnector},default:{bodyMapper:ErrorDetails}},requestBody:iotConnectorPatchResource,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$7},deleteOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept],serializer:serializer$7},listByWorkspaceNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:IotConnectorCollection},default:{bodyMapper:ErrorDetails}},urlParameters:[$host,subscriptionId,resourceGroupName,nextLink,workspaceName],headerParameters:[accept],serializer:serializer$7};class FhirDestinationsImpl{constructor(e){this.client=e}listByIotConnector(t,r,i,a){const e=this.listByIotConnectorPagingAll(t,r,i,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(t,r,i,a,e)}}}listByIotConnectorPagingPage(a,o,s,n,p){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==p?void 0:p.continuationToken;var r;for(t||(setContinuationToken(r=(e=yield tslib.__await(this._listByIotConnector(a,o,s,n))).value||[],t=e.nextLink),yield yield tslib.__await(r));t;){e=yield tslib.__await(this._listByIotConnectorNext(a,o,s,t,n)),t=e.nextLink;var i=e.value||[];setContinuationToken(i,t),yield yield tslib.__await(i)}})}listByIotConnectorPagingAll(n,p,c,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listByIotConnectorPagingPage(n,p,c,l));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}_listByIotConnector(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,iotConnectorName:r,options:i},listByIotConnectorOperationSpec)}_listByIotConnectorNext(e,t,r,i,a){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,iotConnectorName:r,nextLink:i,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}},urlParameters:[$host,subscriptionId,resourceGroupName,nextLink,workspaceName,iotConnectorName],headerParameters:[accept],serializer:serializer$6};class IotConnectorFhirDestinationImpl{constructor(e){this.client=e}get(e,t,r,i,a){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,iotConnectorName:r,fhirDestinationName:i,options:a},getOperationSpec$4)}beginCreateOrUpdate(t,r,i,a,s,n){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,workspaceName:r,iotConnectorName:i,fhirDestinationName:a,iotFhirDestination:s,options:n},spec:createOrUpdateOperationSpec$2}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,t,r,i,a,o){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,t,r,i,a,o)).pollUntilDone()})}beginDelete(t,r,i,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,workspaceName:r,iotConnectorName:i,fhirDestinationName:a,options:s},spec:deleteOperationSpec$2}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,t,r,i,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(t,r,i){const e=this.listByWorkspacePagingAll(t,r,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.listByWorkspacePagingPage(t,r,i,e)}}}listByWorkspacePagingPage(a,o,s,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==n?void 0:n.continuationToken;var r;for(t||(setContinuationToken(r=(e=yield tslib.__await(this._listByWorkspace(a,o,s))).value||[],t=e.nextLink),yield yield tslib.__await(r));t;){e=yield tslib.__await(this._listByWorkspaceNext(a,o,t,s)),t=e.nextLink;var i=e.value||[];setContinuationToken(i,t),yield yield tslib.__await(i)}})}listByWorkspacePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listByWorkspacePagingPage(n,p,c));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}_listByWorkspace(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,options:r},listByWorkspaceOperationSpec$2)}get(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,fhirServiceName:r,options:i},getOperationSpec$3)}beginCreateOrUpdate(t,r,i,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,workspaceName:r,fhirServiceName:i,fhirservice:a,options:s},spec:createOrUpdateOperationSpec$1}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,t,r,i,a)).pollUntilDone()})}beginUpdate(t,r,i,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,fhirServiceName:r,workspaceName:i,fhirservicePatchResource:a,options:s},spec:updateOperationSpec}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,t,r,i,a)).pollUntilDone()})}beginDelete(t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,fhirServiceName:r,workspaceName:i,options:a},spec:deleteOperationSpec$1}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,t,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,t,r,i)).pollUntilDone()})}_listByWorkspaceNext(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,nextLink:r,options:i},listByWorkspaceNextOperationSpec)}}const serializer$4=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices",httpMethod:"GET",responses:{200:{bodyMapper:FhirServiceCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$4},getOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}",httpMethod:"GET",responses:{200:{bodyMapper:FhirService},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,fhirServiceName],headerParameters:[accept],serializer:serializer$4},createOrUpdateOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}",httpMethod:"PUT",responses:{200:{bodyMapper:FhirService},201:{bodyMapper:FhirService},202:{bodyMapper:FhirService},204:{bodyMapper:FhirService},default:{bodyMapper:ErrorDetails}},requestBody:fhirservice,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,fhirServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$4},updateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}",httpMethod:"PATCH",responses:{200:{bodyMapper:FhirService},201:{bodyMapper:FhirService},202:{bodyMapper:FhirService},204:{bodyMapper:FhirService},default:{bodyMapper:ErrorDetails}},requestBody:fhirservicePatchResource,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,fhirServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$4},deleteOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,fhirServiceName],headerParameters:[accept],serializer:serializer$4},listByWorkspaceNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:FhirServiceCollection},default:{bodyMapper:ErrorDetails}},urlParameters:[$host,subscriptionId,resourceGroupName,nextLink,workspaceName],headerParameters:[accept],serializer:serializer$4};class WorkspacePrivateEndpointConnectionsImpl{constructor(e){this.client=e}listByWorkspace(t,r,i){const e=this.listByWorkspacePagingAll(t,r,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.listByWorkspacePagingPage(t,r,i,e)}}}listByWorkspacePagingPage(t,r,i,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(t,r,i));yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listByWorkspacePagingPage(n,p,c));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}_listByWorkspace(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,options:r},listByWorkspaceOperationSpec$1)}get(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,privateEndpointConnectionName:r,options:i},getOperationSpec$2)}beginCreateOrUpdate(t,r,i,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,workspaceName:r,privateEndpointConnectionName:i,properties:a,options:s},spec:createOrUpdateOperationSpec}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,t,r,i,a)).pollUntilDone()})}beginDelete(t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,workspaceName:r,privateEndpointConnectionName:i,options:a},spec:deleteOperationSpec}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,t,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,t,r,i)).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(t,r,i){const e=this.listByWorkspacePagingAll(t,r,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.listByWorkspacePagingPage(t,r,i,e)}}}listByWorkspacePagingPage(t,r,i,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(t,r,i));yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listByWorkspacePagingPage(n,p,c));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}_listByWorkspace(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,options:r},listByWorkspaceOperationSpec)}get(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,groupName:r,options:i},getOperationSpec$1)}}const serializer$2=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateLinkResources",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceListResultDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$2},getOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateLinkResources/{groupName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,groupName,workspaceName],headerParameters:[accept],serializer:serializer$2};class OperationsImpl{constructor(e){this.client=e}list(t){const e=this.listPagingAll(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.listPagingPage(t,e)}}}listPagingPage(a,o){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==o?void 0:o.continuationToken;var r;for(t||(setContinuationToken(r=(e=yield tslib.__await(this._list(a))).value||[],t=e.nextLink),yield yield tslib.__await(r));t;){e=yield tslib.__await(this._listNext(t,a)),t=e.nextLink;var i=e.value||[];setContinuationToken(i,t),yield yield tslib.__await(i)}})}listPagingAll(n){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listPagingPage(n));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listNextOperationSpec)}}const serializer$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}},urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$1};class OperationResultsImpl{constructor(e){this.client=e}get(e,t,r){return this.client.sendOperationRequest({locationName:e,operationResultId:t,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,t,r){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===t)throw new Error("'subscriptionId' cannot be null");var i,a="azsdk-js-arm-healthcareapis/3.0.0",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&&(i=r.pipeline.getOrderedPolicies(),o=i.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!=(i=a.credentialScopes)?i:a.endpoint+"/.default",challengeCallbacks:{authorizeRequestOnChallenge:coreClient__namespace.authorizeRequestOnClaimChallenge}}))),this.subscriptionId=t,this.$host=r.$host||"https://management.azure.com",this.apiVersion=r.apiVersion||"2023-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,i){return tslib.__awaiter(this,void 0,void 0,function*(){var e,t=r.url.split("?");return 1<t.length&&(e=t[1].split("&").map(e=>-1<e.indexOf("api-version")?"api-version="+a:e),r.url=t[0]+"?"+e.join("&")),i(r)})}})}}exports.HealthcareApisManagementClient=HealthcareApisManagementClient,exports.getContinuationToken=getContinuationToken;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var tslib=require("tslib"),coreClient=require("@azure/core-client"),coreRestPipeline=require("@azure/core-rest-pipeline"),coreLro=require("@azure/core-lro");function _interopNamespaceDefault(r){var i=Object.create(null);return r&&Object.keys(r).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(r,e),Object.defineProperty(i,e,t.get?t:{enumerable:!0,get:function(){return r[e]}}))}),i.default=r,Object.freeze(i)}var coreClient__namespace=_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,t){var r;"object"==typeof e&&null!==e&&t&&((r=null!=(r=pageMap.get(e))?r:{}).continuationToken=t,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.KnownServiceEventState=void 0,function(e){e.Disabled="Disabled",e.Enabled="Enabled",e.Updating="Updating"}(exports.KnownServiceEventState||(exports.KnownServiceEventState={})),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.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"}},importConfiguration:{serializedName:"importConfiguration",type:{name:"Composite",className:"ServiceImportConfigurationInfo"}}}}},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"}},crossTenantCmkApplicationId:{constraints:{Pattern:new RegExp("^(([0-9A-Fa-f]{8}[-]?(?:[0-9A-Fa-f]{4}[-]?){3}[0-9A-Fa-f]{12}){1})+$")},serializedName:"crossTenantCmkApplicationId",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"}}}}},ServiceImportConfigurationInfo={type:{name:"Composite",className:"ServiceImportConfigurationInfo",modelProperties:{integrationDataStore:{serializedName:"integrationDataStore",type:{name:"String"}},initialImportMode:{serializedName:"initialImportMode",type:{name:"Boolean"}},enabled:{serializedName:"enabled",type:{name:"Boolean"}}}}},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"}}}}}}},CorsConfiguration={type:{name:"Composite",className:"CorsConfiguration",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"}}}}},Encryption={type:{name:"Composite",className:"Encryption",modelProperties:{customerManagedKeyEncryption:{serializedName:"customerManagedKeyEncryption",type:{name:"Composite",className:"EncryptionCustomerManagedKeyEncryption"}}}}},EncryptionCustomerManagedKeyEncryption={type:{name:"Composite",className:"EncryptionCustomerManagedKeyEncryption",modelProperties:{keyEncryptionKeyUrl:{serializedName:"keyEncryptionKeyUrl",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"}}}}}}},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"}}}}}}},FhirServiceImportConfiguration={type:{name:"Composite",className:"FhirServiceImportConfiguration",modelProperties:{integrationDataStore:{serializedName:"integrationDataStore",type:{name:"String"}},initialImportMode:{serializedName:"initialImportMode",type:{name:"Boolean"}},enabled:{serializedName:"enabled",type:{name:"Boolean"}}}}},ImplementationGuidesConfiguration={type:{name:"Composite",className:"ImplementationGuidesConfiguration",modelProperties:{usCoreMissingData:{serializedName:"usCoreMissingData",type:{name:"Boolean"}}}}},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"}},metricFilterPattern:{serializedName:"metricFilterPattern",type:{name:"String"}},dimensions:{serializedName:"dimensions",type:{name:"Sequence",element:{type:{name:"Composite",className:"MetricDimension"}}}},isInternal:{serializedName:"isInternal",type:{name:"Boolean"}},sourceMdmAccount:{serializedName:"sourceMdmAccount",type:{name:"String"}},sourceMdmNamespace:{serializedName:"sourceMdmNamespace",type:{name:"String"}},enableRegionalMdmAccount:{serializedName:"enableRegionalMdmAccount",type:{name:"Boolean"}},resourceIdDimensionNameOverride:{serializedName:"resourceIdDimensionNameOverride",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"}},corsConfiguration:{serializedName:"properties.corsConfiguration",type:{name:"Composite",className:"CorsConfiguration"}},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"}},eventState:{serializedName:"properties.eventState",readOnly:!0,type:{name:"String"}},encryption:{serializedName:"properties.encryption",type:{name:"Composite",className:"Encryption"}}})}},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"}},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"}},importConfiguration:{serializedName:"properties.importConfiguration",type:{name:"Composite",className:"FhirServiceImportConfiguration"}},implementationGuidesConfiguration:{serializedName:"properties.implementationGuidesConfiguration",type:{name:"Composite",className:"ImplementationGuidesConfiguration"}},encryption:{serializedName:"properties.encryption",type:{name:"Composite",className:"Encryption"}}})}},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,CorsConfiguration:CorsConfiguration,DicomService:DicomService,DicomServiceAuthenticationConfiguration:DicomServiceAuthenticationConfiguration,DicomServiceCollection:DicomServiceCollection,DicomServicePatchResource:DicomServicePatchResource,Encryption:Encryption,EncryptionCustomerManagedKeyEncryption:EncryptionCustomerManagedKeyEncryption,ErrorDetails:ErrorDetails,ErrorDetailsInternal:ErrorDetailsInternal,ErrorModel:ErrorModel,FhirService:FhirService,FhirServiceAcrConfiguration:FhirServiceAcrConfiguration,FhirServiceAuthenticationConfiguration:FhirServiceAuthenticationConfiguration,FhirServiceCollection:FhirServiceCollection,FhirServiceCorsConfiguration:FhirServiceCorsConfiguration,FhirServiceExportConfiguration:FhirServiceExportConfiguration,FhirServiceImportConfiguration:FhirServiceImportConfiguration,FhirServicePatchResource:FhirServicePatchResource,ImplementationGuidesConfiguration:ImplementationGuidesConfiguration,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,ServiceImportConfigurationInfo:ServiceImportConfigurationInfo,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:"2023-11-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{constraints:{MinLength:1},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"}}};function createLroSpec(e){const{args:i,spec:a,sendOperationFn:o}=e;return{requestMethod:a.httpMethod,requestPath:a.path,sendInitialRequest:()=>o(i,a),sendPollRequest:(e,t)=>{var r=tslib.__rest(a,["requestBody"]);return o(i,Object.assign(Object.assign({},r),{httpMethod:"GET",path:e,abortSignal:null==t?void 0:t.abortSignal}))}}}class ServicesImpl{constructor(e){this.client=e}list(t){const e=this.listPagingAll(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.listPagingPage(t,e)}}}listPagingPage(a,o){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==o?void 0:o.continuationToken;var r;for(t||(setContinuationToken(r=(e=yield tslib.__await(this._list(a))).value||[],t=e.nextLink),yield yield tslib.__await(r));t;){e=yield tslib.__await(this._listNext(t,a)),t=e.nextLink;var i=e.value||[];setContinuationToken(i,t),yield yield tslib.__await(i)}})}listPagingAll(n){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listPagingPage(n));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}listByResourceGroup(t,r){const e=this.listByResourceGroupPagingAll(t,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(t,r,e)}}}listByResourceGroupPagingPage(a,o,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==s?void 0:s.continuationToken;var r;for(t||(setContinuationToken(r=(e=yield tslib.__await(this._listByResourceGroup(a,o))).value||[],t=e.nextLink),yield yield tslib.__await(r));t;){e=yield tslib.__await(this._listByResourceGroupNext(a,t,o)),t=e.nextLink;var i=e.value||[];setContinuationToken(i,t),yield yield tslib.__await(i)}})}listByResourceGroupPagingAll(n,p){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listByResourceGroupPagingPage(n,p));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}get(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:t,options:r},getOperationSpec$a)}beginCreateOrUpdate(t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,resourceName:r,serviceDescription:i,options:a},spec:createOrUpdateOperationSpec$7}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,t,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,t,r,i)).pollUntilDone()})}beginUpdate(t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,resourceName:r,servicePatchDescription:i,options:a},spec:updateOperationSpec$4}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,t,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,t,r,i)).pollUntilDone()})}beginDelete(t,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,resourceName:r,options:i},spec:deleteOperationSpec$7}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==i?void 0:i.resumeFrom,intervalInMs:null==i?void 0:i.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,t,r){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,t,r)).pollUntilDone()})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$1)}_listByResourceGroup(e,t){return this.client.sendOperationRequest({resourceGroupName:e,options:t},listByResourceGroupOperationSpec$1)}checkNameAvailability(e,t){return this.client.sendOperationRequest({checkNameAvailabilityInputs:e,options:t},checkNameAvailabilityOperationSpec)}_listNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listNextOperationSpec$1)}_listByResourceGroupNext(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:t,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}},urlParameters:[$host,subscriptionId,nextLink],headerParameters:[accept],serializer:serializer$c},listByResourceGroupNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ServicesDescriptionListResult},default:{bodyMapper:ErrorDetails}},urlParameters:[$host,subscriptionId,resourceGroupName,nextLink],headerParameters:[accept],serializer:serializer$c};class PrivateEndpointConnectionsImpl{constructor(e){this.client=e}listByService(t,r,i){const e=this.listByServicePagingAll(t,r,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.listByServicePagingPage(t,r,i,e)}}}listByServicePagingPage(t,r,i,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByService(t,r,i));yield yield tslib.__await(e.value||[])})}listByServicePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listByServicePagingPage(n,p,c));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}_listByService(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:t,options:r},listByServiceOperationSpec$1)}get(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:t,privateEndpointConnectionName:r,options:i},getOperationSpec$9)}beginCreateOrUpdate(t,r,i,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,resourceName:r,privateEndpointConnectionName:i,properties:a,options:s},spec:createOrUpdateOperationSpec$6}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,t,r,i,a)).pollUntilDone()})}beginDelete(t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,resourceName:r,privateEndpointConnectionName:i,options:a},spec:deleteOperationSpec$6}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,t,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,t,r,i)).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,t,r){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:t,options:r},listByServiceOperationSpec)}get(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:t,groupName:r,options:i},getOperationSpec$8)}}const serializer$a=coreClient__namespace.createSerializer(Mappers,!1),listByServiceOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceListResultDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer$a},getOperationSpec$8={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources/{groupName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,groupName],headerParameters:[accept],serializer:serializer$a};class WorkspacesImpl{constructor(e){this.client=e}listBySubscription(t){const e=this.listBySubscriptionPagingAll(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.listBySubscriptionPagingPage(t,e)}}}listBySubscriptionPagingPage(a,o){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==o?void 0:o.continuationToken;var r;for(t||(setContinuationToken(r=(e=yield tslib.__await(this._listBySubscription(a))).value||[],t=e.nextLink),yield yield tslib.__await(r));t;){e=yield tslib.__await(this._listBySubscriptionNext(t,a)),t=e.nextLink;var i=e.value||[];setContinuationToken(i,t),yield yield tslib.__await(i)}})}listBySubscriptionPagingAll(n){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listBySubscriptionPagingPage(n));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}listByResourceGroup(t,r){const e=this.listByResourceGroupPagingAll(t,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(t,r,e)}}}listByResourceGroupPagingPage(a,o,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==s?void 0:s.continuationToken;var r;for(t||(setContinuationToken(r=(e=yield tslib.__await(this._listByResourceGroup(a,o))).value||[],t=e.nextLink),yield yield tslib.__await(r));t;){e=yield tslib.__await(this._listByResourceGroupNext(a,t,o)),t=e.nextLink;var i=e.value||[];setContinuationToken(i,t),yield yield tslib.__await(i)}})}listByResourceGroupPagingAll(n,p){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listByResourceGroupPagingPage(n,p));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}_listBySubscription(e){return this.client.sendOperationRequest({options:e},listBySubscriptionOperationSpec)}_listByResourceGroup(e,t){return this.client.sendOperationRequest({resourceGroupName:e,options:t},listByResourceGroupOperationSpec)}get(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,options:r},getOperationSpec$7)}beginCreateOrUpdate(t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,workspaceName:r,workspace:i,options:a},spec:createOrUpdateOperationSpec$5}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,t,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,t,r,i)).pollUntilDone()})}beginUpdate(t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,workspaceName:r,workspacePatchResource:i,options:a},spec:updateOperationSpec$3}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,t,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,t,r,i)).pollUntilDone()})}beginDelete(t,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,workspaceName:r,options:i},spec:deleteOperationSpec$5}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==i?void 0:i.resumeFrom,intervalInMs:null==i?void 0:i.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,t,r){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,t,r)).pollUntilDone()})}_listBySubscriptionNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listBySubscriptionNextOperationSpec)}_listByResourceGroupNext(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:t,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}},urlParameters:[$host,subscriptionId,nextLink],headerParameters:[accept],serializer:serializer$9},listByResourceGroupNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:WorkspaceList},default:{bodyMapper:ErrorDetails}},urlParameters:[$host,subscriptionId,resourceGroupName,nextLink],headerParameters:[accept],serializer:serializer$9};class DicomServicesImpl{constructor(e){this.client=e}listByWorkspace(t,r,i){const e=this.listByWorkspacePagingAll(t,r,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.listByWorkspacePagingPage(t,r,i,e)}}}listByWorkspacePagingPage(a,o,s,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==n?void 0:n.continuationToken;var r;for(t||(setContinuationToken(r=(e=yield tslib.__await(this._listByWorkspace(a,o,s))).value||[],t=e.nextLink),yield yield tslib.__await(r));t;){e=yield tslib.__await(this._listByWorkspaceNext(a,o,t,s)),t=e.nextLink;var i=e.value||[];setContinuationToken(i,t),yield yield tslib.__await(i)}})}listByWorkspacePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listByWorkspacePagingPage(n,p,c));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}_listByWorkspace(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,options:r},listByWorkspaceOperationSpec$4)}get(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,dicomServiceName:r,options:i},getOperationSpec$6)}beginCreateOrUpdate(t,r,i,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,workspaceName:r,dicomServiceName:i,dicomservice:a,options:s},spec:createOrUpdateOperationSpec$4}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,t,r,i,a)).pollUntilDone()})}beginUpdate(t,r,i,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,dicomServiceName:r,workspaceName:i,dicomservicePatchResource:a,options:s},spec:updateOperationSpec$2}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,t,r,i,a)).pollUntilDone()})}beginDelete(t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,dicomServiceName:r,workspaceName:i,options:a},spec:deleteOperationSpec$4}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,t,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,t,r,i)).pollUntilDone()})}_listByWorkspaceNext(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,nextLink:r,options:i},listByWorkspaceNextOperationSpec$2)}}const serializer$8=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices",httpMethod:"GET",responses:{200:{bodyMapper:DicomServiceCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$8},getOperationSpec$6={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",httpMethod:"GET",responses:{200:{bodyMapper:DicomService},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,dicomServiceName],headerParameters:[accept],serializer:serializer$8},createOrUpdateOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",httpMethod:"PUT",responses:{200:{bodyMapper:DicomService},201:{bodyMapper:DicomService},202:{bodyMapper:DicomService},204:{bodyMapper:DicomService},default:{bodyMapper:ErrorDetails}},requestBody:dicomservice,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,dicomServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$8},updateOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",httpMethod:"PATCH",responses:{200:{bodyMapper:DicomService},201:{bodyMapper:DicomService},202:{bodyMapper:DicomService},204:{bodyMapper:DicomService},default:{bodyMapper:ErrorDetails}},requestBody:dicomservicePatchResource,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,dicomServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$8},deleteOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,dicomServiceName],headerParameters:[accept],serializer:serializer$8},listByWorkspaceNextOperationSpec$2={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:DicomServiceCollection},default:{bodyMapper:ErrorDetails}},urlParameters:[$host,subscriptionId,resourceGroupName,nextLink,workspaceName],headerParameters:[accept],serializer:serializer$8};class IotConnectorsImpl{constructor(e){this.client=e}listByWorkspace(t,r,i){const e=this.listByWorkspacePagingAll(t,r,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.listByWorkspacePagingPage(t,r,i,e)}}}listByWorkspacePagingPage(a,o,s,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==n?void 0:n.continuationToken;var r;for(t||(setContinuationToken(r=(e=yield tslib.__await(this._listByWorkspace(a,o,s))).value||[],t=e.nextLink),yield yield tslib.__await(r));t;){e=yield tslib.__await(this._listByWorkspaceNext(a,o,t,s)),t=e.nextLink;var i=e.value||[];setContinuationToken(i,t),yield yield tslib.__await(i)}})}listByWorkspacePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listByWorkspacePagingPage(n,p,c));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}_listByWorkspace(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,options:r},listByWorkspaceOperationSpec$3)}get(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,iotConnectorName:r,options:i},getOperationSpec$5)}beginCreateOrUpdate(t,r,i,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,workspaceName:r,iotConnectorName:i,iotConnector:a,options:s},spec:createOrUpdateOperationSpec$3}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,t,r,i,a)).pollUntilDone()})}beginUpdate(t,r,i,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,iotConnectorName:r,workspaceName:i,iotConnectorPatchResource:a,options:s},spec:updateOperationSpec$1}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,t,r,i,a)).pollUntilDone()})}beginDelete(t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,iotConnectorName:r,workspaceName:i,options:a},spec:deleteOperationSpec$3}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,t,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,t,r,i)).pollUntilDone()})}_listByWorkspaceNext(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,nextLink:r,options:i},listByWorkspaceNextOperationSpec$1)}}const serializer$7=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors",httpMethod:"GET",responses:{200:{bodyMapper:IotConnectorCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$7},getOperationSpec$5={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}",httpMethod:"GET",responses:{200:{bodyMapper:IotConnector},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept],serializer:serializer$7},createOrUpdateOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}",httpMethod:"PUT",responses:{200:{bodyMapper:IotConnector},201:{bodyMapper:IotConnector},202:{bodyMapper:IotConnector},204:{bodyMapper:IotConnector},default:{bodyMapper:ErrorDetails}},requestBody:iotConnector,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$7},updateOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}",httpMethod:"PATCH",responses:{200:{bodyMapper:IotConnector},201:{bodyMapper:IotConnector},202:{bodyMapper:IotConnector},204:{bodyMapper:IotConnector},default:{bodyMapper:ErrorDetails}},requestBody:iotConnectorPatchResource,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$7},deleteOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept],serializer:serializer$7},listByWorkspaceNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:IotConnectorCollection},default:{bodyMapper:ErrorDetails}},urlParameters:[$host,subscriptionId,resourceGroupName,nextLink,workspaceName],headerParameters:[accept],serializer:serializer$7};class FhirDestinationsImpl{constructor(e){this.client=e}listByIotConnector(t,r,i,a){const e=this.listByIotConnectorPagingAll(t,r,i,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(t,r,i,a,e)}}}listByIotConnectorPagingPage(a,o,s,n,p){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==p?void 0:p.continuationToken;var r;for(t||(setContinuationToken(r=(e=yield tslib.__await(this._listByIotConnector(a,o,s,n))).value||[],t=e.nextLink),yield yield tslib.__await(r));t;){e=yield tslib.__await(this._listByIotConnectorNext(a,o,s,t,n)),t=e.nextLink;var i=e.value||[];setContinuationToken(i,t),yield yield tslib.__await(i)}})}listByIotConnectorPagingAll(n,p,c,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listByIotConnectorPagingPage(n,p,c,l));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}_listByIotConnector(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,iotConnectorName:r,options:i},listByIotConnectorOperationSpec)}_listByIotConnectorNext(e,t,r,i,a){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,iotConnectorName:r,nextLink:i,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}},urlParameters:[$host,subscriptionId,resourceGroupName,nextLink,workspaceName,iotConnectorName],headerParameters:[accept],serializer:serializer$6};class IotConnectorFhirDestinationImpl{constructor(e){this.client=e}get(e,t,r,i,a){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,iotConnectorName:r,fhirDestinationName:i,options:a},getOperationSpec$4)}beginCreateOrUpdate(t,r,i,a,s,n){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,workspaceName:r,iotConnectorName:i,fhirDestinationName:a,iotFhirDestination:s,options:n},spec:createOrUpdateOperationSpec$2}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,t,r,i,a,o){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,t,r,i,a,o)).pollUntilDone()})}beginDelete(t,r,i,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,workspaceName:r,iotConnectorName:i,fhirDestinationName:a,options:s},spec:deleteOperationSpec$2}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,t,r,i,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(t,r,i){const e=this.listByWorkspacePagingAll(t,r,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.listByWorkspacePagingPage(t,r,i,e)}}}listByWorkspacePagingPage(a,o,s,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==n?void 0:n.continuationToken;var r;for(t||(setContinuationToken(r=(e=yield tslib.__await(this._listByWorkspace(a,o,s))).value||[],t=e.nextLink),yield yield tslib.__await(r));t;){e=yield tslib.__await(this._listByWorkspaceNext(a,o,t,s)),t=e.nextLink;var i=e.value||[];setContinuationToken(i,t),yield yield tslib.__await(i)}})}listByWorkspacePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listByWorkspacePagingPage(n,p,c));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}_listByWorkspace(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,options:r},listByWorkspaceOperationSpec$2)}get(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,fhirServiceName:r,options:i},getOperationSpec$3)}beginCreateOrUpdate(t,r,i,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,workspaceName:r,fhirServiceName:i,fhirservice:a,options:s},spec:createOrUpdateOperationSpec$1}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,t,r,i,a)).pollUntilDone()})}beginUpdate(t,r,i,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,fhirServiceName:r,workspaceName:i,fhirservicePatchResource:a,options:s},spec:updateOperationSpec}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,t,r,i,a)).pollUntilDone()})}beginDelete(t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,fhirServiceName:r,workspaceName:i,options:a},spec:deleteOperationSpec$1}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,t,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,t,r,i)).pollUntilDone()})}_listByWorkspaceNext(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,nextLink:r,options:i},listByWorkspaceNextOperationSpec)}}const serializer$4=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices",httpMethod:"GET",responses:{200:{bodyMapper:FhirServiceCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$4},getOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}",httpMethod:"GET",responses:{200:{bodyMapper:FhirService},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,fhirServiceName],headerParameters:[accept],serializer:serializer$4},createOrUpdateOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}",httpMethod:"PUT",responses:{200:{bodyMapper:FhirService},201:{bodyMapper:FhirService},202:{bodyMapper:FhirService},204:{bodyMapper:FhirService},default:{bodyMapper:ErrorDetails}},requestBody:fhirservice,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,fhirServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$4},updateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}",httpMethod:"PATCH",responses:{200:{bodyMapper:FhirService},201:{bodyMapper:FhirService},202:{bodyMapper:FhirService},204:{bodyMapper:FhirService},default:{bodyMapper:ErrorDetails}},requestBody:fhirservicePatchResource,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,fhirServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$4},deleteOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,fhirServiceName],headerParameters:[accept],serializer:serializer$4},listByWorkspaceNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:FhirServiceCollection},default:{bodyMapper:ErrorDetails}},urlParameters:[$host,subscriptionId,resourceGroupName,nextLink,workspaceName],headerParameters:[accept],serializer:serializer$4};class WorkspacePrivateEndpointConnectionsImpl{constructor(e){this.client=e}listByWorkspace(t,r,i){const e=this.listByWorkspacePagingAll(t,r,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.listByWorkspacePagingPage(t,r,i,e)}}}listByWorkspacePagingPage(t,r,i,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(t,r,i));yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listByWorkspacePagingPage(n,p,c));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}_listByWorkspace(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,options:r},listByWorkspaceOperationSpec$1)}get(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,privateEndpointConnectionName:r,options:i},getOperationSpec$2)}beginCreateOrUpdate(t,r,i,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,workspaceName:r,privateEndpointConnectionName:i,properties:a,options:s},spec:createOrUpdateOperationSpec}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,t,r,i,a)).pollUntilDone()})}beginDelete(t,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const o=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=createLroSpec({sendOperationFn:(t,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let r=void 0;const i=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{r=e,null!==i&&void 0!==i&&i(e,t)}})});return{flatResponse:yield o(e,a),rawResponse:{statusCode:r.status,body:r.parsedBody,headers:r.headers.toJSON()}}}),args:{resourceGroupName:t,workspaceName:r,privateEndpointConnectionName:i,options:a},spec:deleteOperationSpec}),e=yield coreLro.createHttpPoller(e,{restoreFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,t,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,t,r,i)).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(t,r,i){const e=this.listByWorkspacePagingAll(t,r,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.listByWorkspacePagingPage(t,r,i,e)}}}listByWorkspacePagingPage(t,r,i,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(t,r,i));yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(n,p,c){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listByWorkspacePagingPage(n,p,c));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}_listByWorkspace(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,options:r},listByWorkspaceOperationSpec)}get(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:t,groupName:r,options:i},getOperationSpec$1)}}const serializer$2=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateLinkResources",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceListResultDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$2},getOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateLinkResources/{groupName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,groupName,workspaceName],headerParameters:[accept],serializer:serializer$2};class OperationsImpl{constructor(e){this.client=e}list(t){const e=this.listPagingAll(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.listPagingPage(t,e)}}}listPagingPage(a,o){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==o?void 0:o.continuationToken;var r;for(t||(setContinuationToken(r=(e=yield tslib.__await(this._list(a))).value||[],t=e.nextLink),yield yield tslib.__await(r));t;){e=yield tslib.__await(this._listNext(t,a)),t=e.nextLink;var i=e.value||[];setContinuationToken(i,t),yield yield tslib.__await(i)}})}listPagingAll(n){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,r;try{for(var i,a=!0,o=tslib.__asyncValues(this.listPagingPage(n));!(e=(i=yield tslib.__await(o.next())).done);a=!0){var s=i.value,a=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){t={error:e}}finally{try{a||e||!(r=o.return)||(yield tslib.__await(r.call(o)))}finally{if(t)throw t.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listNextOperationSpec)}}const serializer$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}},urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$1};class OperationResultsImpl{constructor(e){this.client=e}get(e,t,r){return this.client.sendOperationRequest({locationName:e,operationResultId:t,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,t,r){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===t)throw new Error("'subscriptionId' cannot be null");var i,a="azsdk-js-arm-healthcareapis/3.0.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&&(i=r.pipeline.getOrderedPolicies(),o=i.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!=(i=a.credentialScopes)?i:a.endpoint+"/.default",challengeCallbacks:{authorizeRequestOnChallenge:coreClient__namespace.authorizeRequestOnClaimChallenge}}))),this.subscriptionId=t,this.$host=r.$host||"https://management.azure.com",this.apiVersion=r.apiVersion||"2023-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,i){return tslib.__awaiter(this,void 0,void 0,function*(){var e,t=r.url.split("?");return 1<t.length&&(e=t[1].split("&").map(e=>-1<e.indexOf("api-version")?"api-version="+a:e),r.url=t[0]+"?"+e.join("&")),i(r)})}})}}exports.HealthcareApisManagementClient=HealthcareApisManagementClient,exports.getContinuationToken=getContinuationToken;
@@ -32,7 +32,7 @@ export class HealthcareApisManagementClient extends coreClient.ServiceClient {
32
32
  requestContentType: "application/json; charset=utf-8",
33
33
  credential: credentials
34
34
  };
35
- const packageDetails = `azsdk-js-arm-healthcareapis/3.0.0`;
35
+ const packageDetails = `azsdk-js-arm-healthcareapis/3.0.1`;
36
36
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
37
37
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
38
38
  : `${packageDetails}`;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for HealthcareApisManagementClient.",
6
- "version": "3.0.0-alpha.20231222.1",
6
+ "version": "3.0.1-alpha.20231227.2",
7
7
  "engines": {
8
8
  "node": ">=18.0.0"
9
9
  },
@@ -78,7 +78,7 @@ export class HealthcareApisManagementClient extends coreClient.ServiceClient {
78
78
  credential: credentials
79
79
  };
80
80
 
81
- const packageDetails = `azsdk-js-arm-healthcareapis/3.0.0`;
81
+ const packageDetails = `azsdk-js-arm-healthcareapis/3.0.1`;
82
82
  const userAgentPrefix =
83
83
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
84
84
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`