diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index c0273a5d41d0..78052c3e2e1a 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1870,6 +1870,22 @@ packages: engines: {node: '>=14'} dev: false + /@rollup/plugin-commonjs/21.1.0_rollup@2.79.1: + resolution: {integrity: sha512-6ZtHx3VHIp2ReNNDxHjuUml6ur+WcQ28N1yHgCQwsbNkQg2suhxGMDQGJOn/KuDxKtd1xuZP5xSTwBA4GQ8hbA==} + engines: {node: '>= 8.0.0'} + peerDependencies: + rollup: ^2.38.3 + dependencies: + '@rollup/pluginutils': 3.1.0_rollup@2.79.1 + commondir: 1.0.1 + estree-walker: 2.0.2 + glob: 7.2.3 + is-reference: 1.2.1 + magic-string: 0.25.9 + resolve: 1.22.1 + rollup: 2.79.1 + dev: false + /@rollup/plugin-commonjs/24.0.1_rollup@2.79.1: resolution: {integrity: sha512-15LsiWRZk4eOGqvrJyu3z3DaBu5BhXIMeWnijSRvd8irrrg9SHpQ1pH+BUK4H6Z9wL9yOxZJMTLU+Au86XHxow==} engines: {node: '>=14.0.0'} @@ -1903,6 +1919,15 @@ packages: rollup: 2.79.1 dev: false + /@rollup/plugin-json/4.1.0_rollup@2.79.1: + resolution: {integrity: sha512-yfLbTdNS6amI/2OpmbiBoW12vngr5NW2jCJVZSBEz+H5KfUJZ2M7sDjk0U6GOOdCWFVScShte29o9NezJ53TPw==} + peerDependencies: + rollup: ^1.20.0 || ^2.0.0 + dependencies: + '@rollup/pluginutils': 3.1.0_rollup@2.79.1 + rollup: 2.79.1 + dev: false + /@rollup/plugin-json/6.0.0_rollup@2.79.1: resolution: {integrity: sha512-i/4C5Jrdr1XUarRhVu27EEwjt4GObltD7c+MkCIpO2QIbojw8MUs+CCTqOphQi3Qtg1FLmYt+l+6YeoIf51J7w==} engines: {node: '>=14.0.0'} @@ -1916,6 +1941,17 @@ packages: rollup: 2.79.1 dev: false + /@rollup/plugin-multi-entry/4.1.0_rollup@2.79.1: + resolution: {integrity: sha512-nellK5pr50W0JA2+bDJbG8F79GBP802J40YRoC0wyfpTAeAn5mJ4eaFiB/MN+YoX9hgb/6RJoZl9leDjZnUFKw==} + engines: {node: '>=10.0.0'} + peerDependencies: + rollup: ^1.20.0 || ^2.0.0 + dependencies: + '@rollup/plugin-virtual': 2.1.0_rollup@2.79.1 + matched: 5.0.1 + rollup: 2.79.1 + dev: false + /@rollup/plugin-multi-entry/6.0.0_rollup@2.79.1: resolution: {integrity: sha512-msBgVncGQwh/ahxeP/rc8MXVZNBOjoVCsBuDk6uqyFzDv/SZN7jksfAsu6DJ2w4r5PaBX3/OXOjVPeCxya2waA==} engines: {node: '>=14.0.0'} @@ -1979,6 +2015,15 @@ packages: typescript: 4.8.4 dev: false + /@rollup/plugin-virtual/2.1.0_rollup@2.79.1: + resolution: {integrity: sha512-CPPAtlKT53HFqC8jFHb/V5WErpU8Hrq2TyCR0A7kPQMlF2wNUf0o1xuAc+Qxj8NCZM0Z3Yvl+FbUXfJjVWqDwA==} + engines: {node: '>=8.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0 + dependencies: + rollup: 2.79.1 + dev: false + /@rollup/plugin-virtual/3.0.1_rollup@2.79.1: resolution: {integrity: sha512-fK8O0IL5+q+GrsMLuACVNk2x21g3yaw+sG2qn16SnUd3IlBsQyvWxLMGHmCmXRMecPjGRSZ/1LmZB4rjQm68og==} engines: {node: '>=14.0.0'} @@ -6245,6 +6290,12 @@ packages: lodash: 4.17.21 dev: false + /magic-string/0.25.9: + resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==} + dependencies: + sourcemap-codec: 1.4.8 + dev: false + /magic-string/0.27.0: resolution: {integrity: sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==} engines: {node: '>=12'} @@ -7993,6 +8044,11 @@ packages: engines: {node: '>= 8'} dev: false + /sourcemap-codec/1.4.8: + resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==} + deprecated: Please use @jridgewell/sourcemap-codec instead + dev: false + /spawn-command/0.0.2-1: resolution: {integrity: sha512-n98l9E2RMSJ9ON1AKisHzz7V42VDiBQGY6PB1BwRglz99wpVsSuGzQ+jOi6lFXBGVTCrRpltvjm+/XA+tpeJrg==} dev: false @@ -12146,15 +12202,16 @@ packages: dev: false file:projects/arm-healthcareapis.tgz: - resolution: {integrity: sha512-qGgIuppePpBO7mAeYYRLODbpUOr76AcIj9dhZT1XbjHULO8wxEpokKxzXx1eX9S/PipIgzapTysqvdSG/54L3Q==, tarball: file:projects/arm-healthcareapis.tgz} + resolution: {integrity: sha512-E3Vz0PtRxYihBLGhuE8iyclCuDS/oqY1S6JBpseN/r7sF3K52FsVkdsggVXyJS73CrN6U3xDTleGIhLyHv2ipA==, tarball: file:projects/arm-healthcareapis.tgz} name: '@rush-temp/arm-healthcareapis' version: 0.0.0 dependencies: + '@azure-tools/test-recorder': 2.0.0 '@azure/identity': 2.1.0 '@microsoft/api-extractor': 7.34.4_@types+node@14.18.36 - '@rollup/plugin-commonjs': 24.0.1_rollup@2.79.1 - '@rollup/plugin-json': 6.0.0_rollup@2.79.1 - '@rollup/plugin-multi-entry': 6.0.0_rollup@2.79.1 + '@rollup/plugin-commonjs': 21.1.0_rollup@2.79.1 + '@rollup/plugin-json': 4.1.0_rollup@2.79.1 + '@rollup/plugin-multi-entry': 4.1.0_rollup@2.79.1 '@rollup/plugin-node-resolve': 13.3.0_rollup@2.79.1 '@types/chai': 4.3.4 '@types/node': 14.18.36 @@ -12169,6 +12226,7 @@ packages: typescript: 4.8.4 uglify-js: 3.17.4 transitivePeerDependencies: + - encoding - supports-color dev: false diff --git a/sdk/healthcareapis/arm-healthcareapis/CHANGELOG.md b/sdk/healthcareapis/arm-healthcareapis/CHANGELOG.md index 8dbc990984b8..17f32d511474 100644 --- a/sdk/healthcareapis/arm-healthcareapis/CHANGELOG.md +++ b/sdk/healthcareapis/arm-healthcareapis/CHANGELOG.md @@ -1,15 +1,26 @@ # Release History + +## 2.3.0 (2023-03-04) + +**Features** -## 2.2.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added Interface CorsConfiguration + - Added Interface FhirServiceImportConfiguration + - Added Interface ImplementationGuidesConfiguration + - Added Interface ServiceImportConfigurationInfo + - Interface DicomService has a new optional parameter corsConfiguration + - Interface DicomService has a new optional parameter eventState + - Interface FhirService has a new optional parameter implementationGuidesConfiguration + - Interface FhirService has a new optional parameter importConfiguration + - Interface MetricSpecification has a new optional parameter enableRegionalMdmAccount + - Interface MetricSpecification has a new optional parameter isInternal + - Interface MetricSpecification has a new optional parameter metricFilterPattern + - Interface MetricSpecification has a new optional parameter resourceIdDimensionNameOverride + - Interface MetricSpecification has a new optional parameter sourceMdmAccount + - Interface ServiceCosmosDbConfigurationInfo has a new optional parameter crossTenantCmkApplicationId + - Interface ServicesProperties has a new optional parameter importConfiguration + + ## 2.2.0 (2022-11-25) **Features** diff --git a/sdk/healthcareapis/arm-healthcareapis/LICENSE b/sdk/healthcareapis/arm-healthcareapis/LICENSE index 5d1d36e0af80..3a1d9b6f24f7 100644 --- a/sdk/healthcareapis/arm-healthcareapis/LICENSE +++ b/sdk/healthcareapis/arm-healthcareapis/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 Microsoft +Copyright (c) 2023 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/healthcareapis/arm-healthcareapis/_meta.json b/sdk/healthcareapis/arm-healthcareapis/_meta.json index a03927738859..df465dae01db 100644 --- a/sdk/healthcareapis/arm-healthcareapis/_meta.json +++ b/sdk/healthcareapis/arm-healthcareapis/_meta.json @@ -1,8 +1,8 @@ { - "commit": "c583b05741fadfdca116be3b9ccb1c4be8a73258", + "commit": "af62393b90d4e344fc6844dfcc21b24d79d3db54", "readme": "specification/healthcareapis/resource-manager/readme.md", - "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\healthcareapis\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/healthcareapis/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.5", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", - "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", + "use": "@autorest/typescript@6.0.0-rc.5" } \ No newline at end of file diff --git a/sdk/healthcareapis/arm-healthcareapis/package.json b/sdk/healthcareapis/arm-healthcareapis/package.json index 538af0a507d7..3d5a46f47406 100644 --- a/sdk/healthcareapis/arm-healthcareapis/package.json +++ b/sdk/healthcareapis/arm-healthcareapis/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for HealthcareApisManagementClient.", - "version": "2.2.1", + "version": "2.3.0", "engines": { "node": ">=14.0.0" }, @@ -29,9 +29,9 @@ "types": "./types/arm-healthcareapis.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.31.1", - "@rollup/plugin-commonjs": "^24.0.0", - "@rollup/plugin-json": "^6.0.0", - "@rollup/plugin-multi-entry": "^6.0.0", + "@rollup/plugin-commonjs": "^21.0.1", + "@rollup/plugin-json": "^4.1.0", + "@rollup/plugin-multi-entry": "^4.1.0", "@rollup/plugin-node-resolve": "^13.1.3", "mkdirp": "^1.0.4", "rollup": "^2.66.1", @@ -40,7 +40,7 @@ "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", - "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-recorder": "^2.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", "@types/chai": "^4.2.8", @@ -110,13 +110,5 @@ } ] }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-healthcareapis?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/healthcareapis/arm-healthcareapis/review/arm-healthcareapis.api.md b/sdk/healthcareapis/arm-healthcareapis/review/arm-healthcareapis.api.md index 2c2e6499644d..d28335aeaa30 100644 --- a/sdk/healthcareapis/arm-healthcareapis/review/arm-healthcareapis.api.md +++ b/sdk/healthcareapis/arm-healthcareapis/review/arm-healthcareapis.api.md @@ -19,12 +19,23 @@ export interface CheckNameAvailabilityParameters { type: string; } +// @public +export interface CorsConfiguration { + allowCredentials?: boolean; + headers?: string[]; + maxAge?: number; + methods?: string[]; + origins?: string[]; +} + // @public export type CreatedByType = string; // @public export interface DicomService extends TaggedResource, ServiceManagedIdentity { authenticationConfiguration?: DicomServiceAuthenticationConfiguration; + corsConfiguration?: CorsConfiguration; + readonly eventState?: ServiceEventState; readonly privateEndpointConnections?: PrivateEndpointConnection[]; readonly provisioningState?: ProvisioningState; publicNetworkAccess?: PublicNetworkAccess; @@ -152,6 +163,8 @@ export interface FhirService extends TaggedResource, ServiceManagedIdentity { corsConfiguration?: FhirServiceCorsConfiguration; readonly eventState?: ServiceEventState; exportConfiguration?: FhirServiceExportConfiguration; + implementationGuidesConfiguration?: ImplementationGuidesConfiguration; + importConfiguration?: FhirServiceImportConfiguration; kind?: FhirServiceKind; readonly privateEndpointConnections?: PrivateEndpointConnection[]; readonly provisioningState?: ProvisioningState; @@ -198,6 +211,13 @@ export interface FhirServiceExportConfiguration { storageAccountName?: string; } +// @public +export interface FhirServiceImportConfiguration { + enabled?: boolean; + initialImportMode?: boolean; + integrationDataStore?: string; +} + // @public export type FhirServiceKind = string; @@ -309,6 +329,11 @@ export interface HealthcareApisManagementClientOptionalParams extends coreClient endpoint?: string; } +// @public +export interface ImplementationGuidesConfiguration { + usCoreMissingData?: boolean; +} + // @public export interface IotConnector extends TaggedResource, ServiceManagedIdentity { deviceMapping?: IotMappingProperties; @@ -595,8 +620,13 @@ export interface MetricSpecification { dimensions?: MetricDimension[]; displayDescription?: string; displayName?: string; + enableRegionalMdmAccount?: boolean; fillGapWithZero?: boolean; + isInternal?: boolean; + metricFilterPattern?: string; name?: string; + resourceIdDimensionNameOverride?: string; + sourceMdmAccount?: string; sourceMdmNamespace?: string; supportedAggregationTypes?: string[]; supportedTimeGrainTypes?: string[]; @@ -851,6 +881,7 @@ export interface ServiceCorsConfigurationInfo { // @public export interface ServiceCosmosDbConfigurationInfo { + crossTenantCmkApplicationId?: string; keyVaultKeyUri?: string; offerThroughput?: number; } @@ -863,6 +894,13 @@ export interface ServiceExportConfigurationInfo { storageAccountName?: string; } +// @public +export interface ServiceImportConfigurationInfo { + enabled?: boolean; + initialImportMode?: boolean; + integrationDataStore?: string; +} + // @public export interface ServiceManagedIdentity { identity?: ServiceManagedIdentityIdentity; @@ -1003,6 +1041,7 @@ export interface ServicesProperties { corsConfiguration?: ServiceCorsConfigurationInfo; cosmosDbConfiguration?: ServiceCosmosDbConfigurationInfo; exportConfiguration?: ServiceExportConfigurationInfo; + importConfiguration?: ServiceImportConfigurationInfo; privateEndpointConnections?: PrivateEndpointConnection[]; readonly provisioningState?: ProvisioningState; publicNetworkAccess?: PublicNetworkAccess; diff --git a/sdk/healthcareapis/arm-healthcareapis/src/healthcareApisManagementClient.ts b/sdk/healthcareapis/arm-healthcareapis/src/healthcareApisManagementClient.ts index bb4d3344229e..582c0b1ddddc 100644 --- a/sdk/healthcareapis/arm-healthcareapis/src/healthcareApisManagementClient.ts +++ b/sdk/healthcareapis/arm-healthcareapis/src/healthcareApisManagementClient.ts @@ -54,7 +54,7 @@ export class HealthcareApisManagementClient extends coreClient.ServiceClient { /** * Initializes a new instance of the HealthcareApisManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The subscription identifier. + * @param subscriptionId The ID of the target subscription. * @param options The parameter options */ constructor( @@ -78,7 +78,7 @@ export class HealthcareApisManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-healthcareapis/2.2.1`; + const packageDetails = `azsdk-js-arm-healthcareapis/2.3.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -131,7 +131,7 @@ export class HealthcareApisManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-11-01"; + this.apiVersion = options.apiVersion || "2023-02-28"; this.services = new ServicesImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); diff --git a/sdk/healthcareapis/arm-healthcareapis/src/models/index.ts b/sdk/healthcareapis/arm-healthcareapis/src/models/index.ts index ad5104818263..a524e260d34a 100644 --- a/sdk/healthcareapis/arm-healthcareapis/src/models/index.ts +++ b/sdk/healthcareapis/arm-healthcareapis/src/models/index.ts @@ -31,6 +31,8 @@ export interface ServicesProperties { publicNetworkAccess?: PublicNetworkAccess; /** The azure container registry settings used for convert data operation of the service instance. */ acrConfiguration?: ServiceAcrConfigurationInfo; + /** The settings for the import operation of the service instance. */ + importConfiguration?: ServiceImportConfigurationInfo; } /** An access policy entry. */ @@ -45,6 +47,8 @@ export interface ServiceCosmosDbConfigurationInfo { offerThroughput?: number; /** The URI of the customer-managed key for the backing database. */ keyVaultKeyUri?: string; + /** The multi-tenant application id used to enable CMK access for services in a data sovereign region. */ + crossTenantCmkApplicationId?: string; } /** Authentication configuration information */ @@ -133,6 +137,16 @@ export interface ServiceOciArtifactEntry { digest?: string; } +/** Import operation configuration information */ +export interface ServiceImportConfigurationInfo { + /** The name of the default integration storage account. */ + integrationDataStore?: string; + /** If the FHIR service is in InitialImportMode. */ + initialImportMode?: boolean; + /** If the import operation is enabled. */ + enabled?: boolean; +} + /** Metadata pertaining to creation and last modification of the resource. */ export interface SystemData { /** The identity that created the resource. */ @@ -350,6 +364,20 @@ export interface DicomServiceAuthenticationConfiguration { readonly audiences?: string[]; } +/** The settings for the CORS configuration of the service instance. */ +export interface CorsConfiguration { + /** The origins to be allowed via CORS. */ + origins?: string[]; + /** The headers to be allowed via CORS. */ + headers?: string[]; + /** The methods to be allowed via CORS. */ + methods?: string[]; + /** The max age to be allowed via CORS. */ + maxAge?: number; + /** If credentials are allowed via CORS. */ + allowCredentials?: boolean; +} + /** Managed service identity (system assigned and/or user assigned identities) */ export interface ServiceManagedIdentity { /** Setting indicating whether the service has a managed identity associated with it. */ @@ -489,6 +517,22 @@ export interface ResourceVersionPolicyConfiguration { resourceTypeOverrides?: { [propertyName: string]: FhirResourceVersionPolicy }; } +/** Import operation configuration information */ +export interface FhirServiceImportConfiguration { + /** The name of the default integration storage account. */ + integrationDataStore?: string; + /** If the FHIR service is in InitialImportMode. */ + initialImportMode?: boolean; + /** If the import operation is enabled. */ + enabled?: boolean; +} + +/** The settings for Implementation Guides - defining capabilities for national standards, vendor consortiums, clinical societies, etc. */ +export interface ImplementationGuidesConfiguration { + /** If US Core Missing Data requirement is enabled. */ + usCoreMissingData?: boolean; +} + /** Available operations of the service */ export interface ListOperations { /** @@ -599,10 +643,20 @@ export interface MetricSpecification { supportedTimeGrainTypes?: string[]; /** Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published. */ fillGapWithZero?: boolean; + /** Pattern for the filter of the metric. */ + metricFilterPattern?: string; /** Dimensions of the metric */ dimensions?: MetricDimension[]; - /** Name of the MDM namespace. Optional. */ + /** Whether the metric is internal. */ + isInternal?: boolean; + /** The source MDM account. */ + sourceMdmAccount?: string; + /** The source MDM namespace. */ sourceMdmNamespace?: string; + /** Whether regional MDM account enabled. */ + enableRegionalMdmAccount?: boolean; + /** The resource Id dimension name override. */ + resourceIdDimensionNameOverride?: string; } /** Specifications of the Dimension of metrics */ @@ -733,6 +787,8 @@ export interface DicomService extends TaggedResource, ServiceManagedIdentity { readonly provisioningState?: ProvisioningState; /** Dicom Service authentication configuration. */ authenticationConfiguration?: DicomServiceAuthenticationConfiguration; + /** Dicom Service Cors configuration. */ + corsConfiguration?: CorsConfiguration; /** * The url of the Dicom Services. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -745,6 +801,11 @@ export interface DicomService extends TaggedResource, ServiceManagedIdentity { readonly privateEndpointConnections?: PrivateEndpointConnection[]; /** Control permission for data plane traffic coming from public networks while private endpoint is enabled. */ publicNetworkAccess?: PublicNetworkAccess; + /** + * DICOM Service event support status. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly eventState?: ServiceEventState; } /** IoT Connector definition. */ @@ -803,6 +864,10 @@ export interface FhirService extends TaggedResource, ServiceManagedIdentity { readonly eventState?: ServiceEventState; /** Determines tracking of history for resources. */ resourceVersionPolicyConfiguration?: ResourceVersionPolicyConfiguration; + /** Fhir Service import configuration. */ + importConfiguration?: FhirServiceImportConfiguration; + /** Implementation Guides configuration. */ + implementationGuidesConfiguration?: ImplementationGuidesConfiguration; } /** IoT Connector destination properties for an Azure FHIR service. */ @@ -1021,6 +1086,27 @@ export enum KnownManagedServiceIdentityType { */ export type ManagedServiceIdentityType = string; +/** Known values of {@link ServiceEventState} that the service accepts. */ +export enum KnownServiceEventState { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled", + /** Updating */ + Updating = "Updating" +} + +/** + * Defines values for ServiceEventState. \ + * {@link KnownServiceEventState} can be used interchangeably with ServiceEventState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** \ + * **Updating** + */ +export type ServiceEventState = string; + /** Known values of {@link ServiceManagedIdentityType} that the service accepts. */ export enum KnownServiceManagedIdentityType { /** None */ @@ -1081,27 +1167,6 @@ export enum KnownFhirServiceKind { */ export type FhirServiceKind = string; -/** Known values of {@link ServiceEventState} that the service accepts. */ -export enum KnownServiceEventState { - /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled", - /** Updating */ - Updating = "Updating" -} - -/** - * Defines values for ServiceEventState. \ - * {@link KnownServiceEventState} can be used interchangeably with ServiceEventState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Disabled** \ - * **Enabled** \ - * **Updating** - */ -export type ServiceEventState = string; - /** Known values of {@link FhirResourceVersionPolicy} that the service accepts. */ export enum KnownFhirResourceVersionPolicy { /** NoVersion */ diff --git a/sdk/healthcareapis/arm-healthcareapis/src/models/mappers.ts b/sdk/healthcareapis/arm-healthcareapis/src/models/mappers.ts index 4766cbd62843..0853514a8c8e 100644 --- a/sdk/healthcareapis/arm-healthcareapis/src/models/mappers.ts +++ b/sdk/healthcareapis/arm-healthcareapis/src/models/mappers.ts @@ -84,6 +84,13 @@ export const ServicesProperties: coreClient.CompositeMapper = { name: "Composite", className: "ServiceAcrConfigurationInfo" } + }, + importConfiguration: { + serializedName: "importConfiguration", + type: { + name: "Composite", + className: "ServiceImportConfigurationInfo" + } } } } @@ -129,6 +136,17 @@ export const ServiceCosmosDbConfigurationInfo: coreClient.CompositeMapper = { 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" + } } } } @@ -371,6 +389,33 @@ export const ServiceOciArtifactEntry: coreClient.CompositeMapper = { } }; +export const ServiceImportConfigurationInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceImportConfigurationInfo", + modelProperties: { + integrationDataStore: { + serializedName: "integrationDataStore", + type: { + name: "String" + } + }, + initialImportMode: { + serializedName: "initialImportMode", + type: { + name: "Boolean" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + } + } + } +}; + export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", @@ -891,6 +936,69 @@ export const DicomServiceAuthenticationConfiguration: coreClient.CompositeMapper } }; +export const CorsConfiguration: coreClient.CompositeMapper = { + 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" + } + } + } + } +}; + export const ServiceManagedIdentity: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1289,6 +1397,48 @@ export const ResourceVersionPolicyConfiguration: coreClient.CompositeMapper = { } }; +export const FhirServiceImportConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FhirServiceImportConfiguration", + modelProperties: { + integrationDataStore: { + serializedName: "integrationDataStore", + type: { + name: "String" + } + }, + initialImportMode: { + serializedName: "initialImportMode", + type: { + name: "Boolean" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ImplementationGuidesConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImplementationGuidesConfiguration", + modelProperties: { + usCoreMissingData: { + serializedName: "usCoreMissingData", + type: { + name: "Boolean" + } + } + } + } +}; + export const ListOperations: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1550,6 +1700,12 @@ export const MetricSpecification: coreClient.CompositeMapper = { name: "Boolean" } }, + metricFilterPattern: { + serializedName: "metricFilterPattern", + type: { + name: "String" + } + }, dimensions: { serializedName: "dimensions", type: { @@ -1562,11 +1718,35 @@ export const MetricSpecification: coreClient.CompositeMapper = { } } }, + 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" + } } } } @@ -1864,6 +2044,13 @@ export const DicomService: coreClient.CompositeMapper = { className: "DicomServiceAuthenticationConfiguration" } }, + corsConfiguration: { + serializedName: "properties.corsConfiguration", + type: { + name: "Composite", + className: "CorsConfiguration" + } + }, serviceUrl: { serializedName: "properties.serviceUrl", readOnly: true, @@ -1889,6 +2076,13 @@ export const DicomService: coreClient.CompositeMapper = { type: { name: "String" } + }, + eventState: { + serializedName: "properties.eventState", + readOnly: true, + type: { + name: "String" + } } } } @@ -2032,6 +2226,20 @@ export const FhirService: coreClient.CompositeMapper = { name: "Composite", className: "ResourceVersionPolicyConfiguration" } + }, + importConfiguration: { + serializedName: "properties.importConfiguration", + type: { + name: "Composite", + className: "FhirServiceImportConfiguration" + } + }, + implementationGuidesConfiguration: { + serializedName: "properties.implementationGuidesConfiguration", + type: { + name: "Composite", + className: "ImplementationGuidesConfiguration" + } } } } diff --git a/sdk/healthcareapis/arm-healthcareapis/src/models/parameters.ts b/sdk/healthcareapis/arm-healthcareapis/src/models/parameters.ts index a4cc731cb932..3aff807854c1 100644 --- a/sdk/healthcareapis/arm-healthcareapis/src/models/parameters.ts +++ b/sdk/healthcareapis/arm-healthcareapis/src/models/parameters.ts @@ -55,7 +55,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-11-01", + defaultValue: "2023-02-28", isConstant: true, serializedName: "api-version", type: { @@ -67,6 +67,9 @@ export const apiVersion: OperationQueryParameter = { export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { + constraints: { + MinLength: 1 + }, serializedName: "subscriptionId", required: true, type: { diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operations/dicomServices.ts b/sdk/healthcareapis/arm-healthcareapis/src/operations/dicomServices.ts index dec26f51d1c3..90af56542c61 100644 --- a/sdk/healthcareapis/arm-healthcareapis/src/operations/dicomServices.ts +++ b/sdk/healthcareapis/arm-healthcareapis/src/operations/dicomServices.ts @@ -627,7 +627,6 @@ const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorDetails } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operations/fhirDestinations.ts b/sdk/healthcareapis/arm-healthcareapis/src/operations/fhirDestinations.ts index 63c0b5e0fb82..aa8d90d41675 100644 --- a/sdk/healthcareapis/arm-healthcareapis/src/operations/fhirDestinations.ts +++ b/sdk/healthcareapis/arm-healthcareapis/src/operations/fhirDestinations.ts @@ -204,7 +204,6 @@ const listByIotConnectorNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorDetails } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operations/fhirServices.ts b/sdk/healthcareapis/arm-healthcareapis/src/operations/fhirServices.ts index 7eff04ee0291..f4c53d70a028 100644 --- a/sdk/healthcareapis/arm-healthcareapis/src/operations/fhirServices.ts +++ b/sdk/healthcareapis/arm-healthcareapis/src/operations/fhirServices.ts @@ -627,7 +627,6 @@ const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorDetails } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operations/iotConnectors.ts b/sdk/healthcareapis/arm-healthcareapis/src/operations/iotConnectors.ts index 0b8892cda774..fb0c4d7c8ba8 100644 --- a/sdk/healthcareapis/arm-healthcareapis/src/operations/iotConnectors.ts +++ b/sdk/healthcareapis/arm-healthcareapis/src/operations/iotConnectors.ts @@ -627,7 +627,6 @@ const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorDetails } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operations/operations.ts b/sdk/healthcareapis/arm-healthcareapis/src/operations/operations.ts index 34179c53088d..79db4cda9a7f 100644 --- a/sdk/healthcareapis/arm-healthcareapis/src/operations/operations.ts +++ b/sdk/healthcareapis/arm-healthcareapis/src/operations/operations.ts @@ -143,7 +143,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorDetails } }, - queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], serializer diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operations/services.ts b/sdk/healthcareapis/arm-healthcareapis/src/operations/services.ts index 8e7c16f195ad..fb786bd63d97 100644 --- a/sdk/healthcareapis/arm-healthcareapis/src/operations/services.ts +++ b/sdk/healthcareapis/arm-healthcareapis/src/operations/services.ts @@ -712,7 +712,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorDetails } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -732,7 +731,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorDetails } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operations/workspaces.ts b/sdk/healthcareapis/arm-healthcareapis/src/operations/workspaces.ts index 3047fa1bcd3c..9092e6c9d548 100644 --- a/sdk/healthcareapis/arm-healthcareapis/src/operations/workspaces.ts +++ b/sdk/healthcareapis/arm-healthcareapis/src/operations/workspaces.ts @@ -677,7 +677,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorDetails } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -697,7 +696,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorDetails } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/healthcareapis/arm-healthcareapis/src/pagingHelper.ts b/sdk/healthcareapis/arm-healthcareapis/src/pagingHelper.ts index d85fc13bce1e..269a2b9814b5 100644 --- a/sdk/healthcareapis/arm-healthcareapis/src/pagingHelper.ts +++ b/sdk/healthcareapis/arm-healthcareapis/src/pagingHelper.ts @@ -13,11 +13,11 @@ export interface PageInfo { const pageMap = new WeakMap(); /** - * Given a result page from a pageable operation, returns a - * continuation token that can be used to begin paging from + * Given the last `.value` produced by the `byPage` iterator, + * returns a continuation token that can be used to begin paging from * that point later. - * @param page A result object from calling .byPage() on a paged operation. - * @returns The continuation token that can be passed into byPage(). + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @returns The continuation token that can be passed into byPage() during future calls. */ export function getContinuationToken(page: unknown): string | undefined { if (typeof page !== "object" || page === null) { diff --git a/sdk/healthcareapis/arm-healthcareapis/tsconfig.json b/sdk/healthcareapis/arm-healthcareapis/tsconfig.json index c8e6903ace68..3e6ae96443f3 100644 --- a/sdk/healthcareapis/arm-healthcareapis/tsconfig.json +++ b/sdk/healthcareapis/arm-healthcareapis/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-healthcareapis": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"