From e48e3c292bc688d51ea9c53421b7e18eeafc8855 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 24 Feb 2022 06:12:39 +0000 Subject: [PATCH] CodeGen from PR 17983 in Azure/azure-rest-api-specs Merge db4b909d2fab61cefe80200a50adb7559ab3ea5e into 9967109a9ef7b27be87d72482788a3a5649f5bec --- .../arm-healthcareapis/CHANGELOG.md | 119 ++ .../arm-healthcareapis/README.md | 2 +- .../arm-healthcareapis/_meta.json | 8 +- .../arm-healthcareapis/api-extractor.json | 25 +- .../arm-healthcareapis/package.json | 36 +- .../review/arm-healthcareapis.api.md | 559 ++++++++- .../src/healthcareApisManagementClient.ts | 50 +- .../arm-healthcareapis/src/models/index.ts | 771 ++++++++++-- .../arm-healthcareapis/src/models/mappers.ts | 1118 ++++++++++++++--- .../src/models/parameters.ts | 163 ++- .../src/operations/dicomServices.ts | 620 +++++++++ .../src/operations/fhirDestinations.ts | 204 +++ .../src/operations/fhirServices.ts | 620 +++++++++ .../src/operations/index.ts | 10 +- .../operations/iotConnectorFhirDestination.ts | 356 ++++++ .../src/operations/iotConnectors.ts | 620 +++++++++ .../src/operations/operationResults.ts | 3 - .../src/operations/operations.ts | 16 +- .../src/operations/workspaces.ts | 674 ++++++++++ .../src/operationsInterfaces/dicomServices.ts | 147 +++ .../operationsInterfaces/fhirDestinations.ts | 31 + .../src/operationsInterfaces/fhirServices.ts | 147 +++ .../src/operationsInterfaces/index.ts | 10 +- .../iotConnectorFhirDestination.ts | 107 ++ .../src/operationsInterfaces/iotConnectors.ts | 147 +++ .../src/operationsInterfaces/operations.ts | 6 +- .../src/operationsInterfaces/workspaces.ts | 139 ++ .../arm-healthcareapis/tsconfig.json | 19 +- 28 files changed, 6406 insertions(+), 321 deletions(-) create mode 100644 sdk/healthcareapis/arm-healthcareapis/src/operations/dicomServices.ts create mode 100644 sdk/healthcareapis/arm-healthcareapis/src/operations/fhirDestinations.ts create mode 100644 sdk/healthcareapis/arm-healthcareapis/src/operations/fhirServices.ts create mode 100644 sdk/healthcareapis/arm-healthcareapis/src/operations/iotConnectorFhirDestination.ts create mode 100644 sdk/healthcareapis/arm-healthcareapis/src/operations/iotConnectors.ts create mode 100644 sdk/healthcareapis/arm-healthcareapis/src/operations/workspaces.ts create mode 100644 sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/dicomServices.ts create mode 100644 sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/fhirDestinations.ts create mode 100644 sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/fhirServices.ts create mode 100644 sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/iotConnectorFhirDestination.ts create mode 100644 sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/iotConnectors.ts create mode 100644 sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/workspaces.ts diff --git a/sdk/healthcareapis/arm-healthcareapis/CHANGELOG.md b/sdk/healthcareapis/arm-healthcareapis/CHANGELOG.md index 1ca704a13074..5ee7f8773721 100644 --- a/sdk/healthcareapis/arm-healthcareapis/CHANGELOG.md +++ b/sdk/healthcareapis/arm-healthcareapis/CHANGELOG.md @@ -1,5 +1,124 @@ # Release History +## 2.1.0-beta.1 (2022-02-24) + +**Features** + + - Added operation group DicomServices + - Added operation group FhirDestinations + - Added operation group FhirServices + - Added operation group IotConnectorFhirDestination + - Added operation group IotConnectors + - Added operation group Workspaces + - Added Interface DicomServiceAuthenticationConfiguration + - Added Interface DicomServiceCollection + - Added Interface DicomServicesCreateOrUpdateOptionalParams + - Added Interface DicomServicesDeleteOptionalParams + - Added Interface DicomServicesGetOptionalParams + - Added Interface DicomServicesListByWorkspaceNextOptionalParams + - Added Interface DicomServicesListByWorkspaceOptionalParams + - Added Interface DicomServicesUpdateOptionalParams + - Added Interface ErrorModel + - Added Interface FhirDestinationsListByIotConnectorNextOptionalParams + - Added Interface FhirDestinationsListByIotConnectorOptionalParams + - Added Interface FhirServiceAccessPolicyEntry + - Added Interface FhirServiceAcrConfiguration + - Added Interface FhirServiceAuthenticationConfiguration + - Added Interface FhirServiceCollection + - Added Interface FhirServiceCorsConfiguration + - Added Interface FhirServiceExportConfiguration + - Added Interface FhirServicesCreateOrUpdateOptionalParams + - Added Interface FhirServicesDeleteOptionalParams + - Added Interface FhirServicesGetOptionalParams + - Added Interface FhirServicesListByWorkspaceNextOptionalParams + - Added Interface FhirServicesListByWorkspaceOptionalParams + - Added Interface FhirServicesUpdateOptionalParams + - Added Interface IotConnectorCollection + - Added Interface IotConnectorFhirDestinationCreateOrUpdateOptionalParams + - Added Interface IotConnectorFhirDestinationDeleteOptionalParams + - Added Interface IotConnectorFhirDestinationGetOptionalParams + - Added Interface IotConnectorsCreateOrUpdateOptionalParams + - Added Interface IotConnectorsDeleteOptionalParams + - Added Interface IotConnectorsGetOptionalParams + - Added Interface IotConnectorsListByWorkspaceNextOptionalParams + - Added Interface IotConnectorsListByWorkspaceOptionalParams + - Added Interface IotConnectorsUpdateOptionalParams + - Added Interface IotDestinationProperties + - Added Interface IotEventHubIngestionEndpointConfiguration + - Added Interface IotFhirDestinationCollection + - Added Interface IotMappingProperties + - Added Interface ListOperations + - Added Interface OperationDetail + - Added Interface ResourceCore + - Added Interface ResourceTags + - Added Interface ServiceManagedIdentity + - Added Interface ServiceManagedIdentityIdentity + - Added Interface WorkspaceList + - Added Interface WorkspaceProperties + - Added Interface WorkspacesCreateOrUpdateOptionalParams + - Added Interface WorkspacesDeleteOptionalParams + - Added Interface WorkspacesGetOptionalParams + - Added Interface WorkspacesListByResourceGroupNextOptionalParams + - Added Interface WorkspacesListByResourceGroupOptionalParams + - Added Interface WorkspacesListBySubscriptionNextOptionalParams + - Added Interface WorkspacesListBySubscriptionOptionalParams + - Added Interface WorkspacesUpdateOptionalParams + - Added Type Alias ActionType + - Added Type Alias DicomService + - Added Type Alias DicomServicePatchResource + - Added Type Alias DicomServicesCreateOrUpdateResponse + - Added Type Alias DicomServicesGetResponse + - Added Type Alias DicomServicesListByWorkspaceNextResponse + - Added Type Alias DicomServicesListByWorkspaceResponse + - Added Type Alias DicomServicesUpdateResponse + - Added Type Alias FhirDestinationsListByIotConnectorNextResponse + - Added Type Alias FhirDestinationsListByIotConnectorResponse + - Added Type Alias FhirService + - Added Type Alias FhirServiceKind + - Added Type Alias FhirServicePatchResource + - Added Type Alias FhirServicesCreateOrUpdateResponse + - Added Type Alias FhirServicesGetResponse + - Added Type Alias FhirServicesListByWorkspaceNextResponse + - Added Type Alias FhirServicesListByWorkspaceResponse + - Added Type Alias FhirServicesUpdateResponse + - Added Type Alias IotConnector + - Added Type Alias IotConnectorFhirDestinationCreateOrUpdateResponse + - Added Type Alias IotConnectorFhirDestinationGetResponse + - Added Type Alias IotConnectorPatchResource + - Added Type Alias IotConnectorsCreateOrUpdateResponse + - Added Type Alias IotConnectorsGetResponse + - Added Type Alias IotConnectorsListByWorkspaceNextResponse + - Added Type Alias IotConnectorsListByWorkspaceResponse + - Added Type Alias IotConnectorsUpdateResponse + - Added Type Alias IotFhirDestination + - Added Type Alias IotFhirDestinationProperties + - Added Type Alias IotIdentityResolutionType + - Added Type Alias LocationBasedResource + - Added Type Alias TaggedResource + - Added Type Alias Workspace + - Added Type Alias WorkspacePatchResource + - Added Type Alias WorkspacesCreateOrUpdateResponse + - Added Type Alias WorkspacesGetResponse + - Added Type Alias WorkspacesListByResourceGroupNextResponse + - Added Type Alias WorkspacesListByResourceGroupResponse + - Added Type Alias WorkspacesListBySubscriptionNextResponse + - Added Type Alias WorkspacesListBySubscriptionResponse + - Added Type Alias WorkspacesUpdateResponse + - Class HealthcareApisManagementClient has a new parameter dicomServices + - Class HealthcareApisManagementClient has a new parameter fhirDestinations + - Class HealthcareApisManagementClient has a new parameter fhirServices + - Class HealthcareApisManagementClient has a new parameter iotConnectorFhirDestination + - Class HealthcareApisManagementClient has a new parameter iotConnectors + - Class HealthcareApisManagementClient has a new parameter workspaces + - Added Enum KnownActionType + - Added Enum KnownFhirServiceKind + - Added Enum KnownIotIdentityResolutionType + - Enum KnownProvisioningState has a new value Moving + - Enum KnownProvisioningState has a new value Suspended + - Enum KnownProvisioningState has a new value SystemMaintenance + - Enum KnownProvisioningState has a new value Warned + + ## 2.0.0 (2022-01-18) The package of @azure/arm-healthcareapis is using our next generation design principles since version 2.0.0, which contains breaking changes. diff --git a/sdk/healthcareapis/arm-healthcareapis/README.md b/sdk/healthcareapis/arm-healthcareapis/README.md index c72469d8d6ab..250f4278898b 100644 --- a/sdk/healthcareapis/arm-healthcareapis/README.md +++ b/sdk/healthcareapis/arm-healthcareapis/README.md @@ -6,7 +6,7 @@ Azure Healthcare APIs Client [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthcareapis/arm-healthcareapis) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-healthcareapis) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-healthcareapis) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-healthcareapis?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/healthcareapis/arm-healthcareapis/_meta.json b/sdk/healthcareapis/arm-healthcareapis/_meta.json index f3f809f770f8..6982db762c54 100644 --- a/sdk/healthcareapis/arm-healthcareapis/_meta.json +++ b/sdk/healthcareapis/arm-healthcareapis/_meta.json @@ -1,7 +1,7 @@ { - "commit": "d29e6eb4894005c52e67cb4b5ac3faf031113e7d", + "commit": "3938dfc7d00b8e5bbcc1ead3f5c226326313dead", "readme": "specification/healthcareapis/resource-manager/readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/hybridcompute/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220114.1 --generate-sample=true", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/healthcareapis/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20220114.1" -} + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" +} \ No newline at end of file diff --git a/sdk/healthcareapis/arm-healthcareapis/api-extractor.json b/sdk/healthcareapis/arm-healthcareapis/api-extractor.json index bac3eef0b350..abaa1aac3288 100644 --- a/sdk/healthcareapis/arm-healthcareapis/api-extractor.json +++ b/sdk/healthcareapis/arm-healthcareapis/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", "publicTrimmedFilePath": "./types/arm-healthcareapis.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } -} +} \ No newline at end of file diff --git a/sdk/healthcareapis/arm-healthcareapis/package.json b/sdk/healthcareapis/arm-healthcareapis/package.json index 3a1f07b26038..7d7f4bcb84a5 100644 --- a/sdk/healthcareapis/arm-healthcareapis/package.json +++ b/sdk/healthcareapis/arm-healthcareapis/package.json @@ -3,8 +3,10 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for HealthcareApisManagementClient.", - "version": "2.0.0", - "engines": { "node": ">=12.0.0" }, + "version": "1.0.0-beta.1", + "engines": { + "node": ">=12.0.0" + }, "dependencies": { "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", @@ -14,7 +16,13 @@ "@azure/core-rest-pipeline": "^1.1.0", "tslib": "^2.2.0" }, - "keywords": ["node", "azure", "typescript", "browser", "isomorphic"], + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], "license": "MIT", "main": "./dist/index.js", "module": "./dist-esm/src/index.js", @@ -41,7 +49,9 @@ "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" }, - "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, "files": [ "dist/**/*.js", "dist/**/*.js.map", @@ -88,19 +98,5 @@ "docs": "echo skipped" }, "sideEffects": false, - "//metadata": { - "constantPaths": [ - { - "path": "src/HealthcareApisManagementClient.ts", - "prefix": "packageDetails" - } - ] - }, - "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 f21fa2d0371e..6a44f4574dbd 100644 --- a/sdk/healthcareapis/arm-healthcareapis/review/arm-healthcareapis.api.md +++ b/sdk/healthcareapis/arm-healthcareapis/review/arm-healthcareapis.api.md @@ -10,6 +10,9 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { PollerLike } from '@azure/core-lro'; import { PollOperationState } from '@azure/core-lro'; +// @public +export type ActionType = string; + // @public export interface CheckNameAvailabilityParameters { name: string; @@ -19,6 +22,86 @@ export interface CheckNameAvailabilityParameters { // @public export type CreatedByType = string; +// @public +export type DicomService = TaggedResource & { + readonly systemData?: SystemData; + provisioningState?: ProvisioningState; + authenticationConfiguration?: DicomServiceAuthenticationConfiguration; + readonly serviceUrl?: string; +}; + +// @public +export interface DicomServiceAuthenticationConfiguration { + readonly audiences?: string[]; + readonly authority?: string; +} + +// @public +export interface DicomServiceCollection { + nextLink?: string; + value?: DicomService[]; +} + +// @public +export type DicomServicePatchResource = ResourceTags & {}; + +// @public +export interface DicomServices { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, dicomServiceName: string, dicomservice: DicomService, options?: DicomServicesCreateOrUpdateOptionalParams): Promise, DicomServicesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, dicomServiceName: string, dicomservice: DicomService, options?: DicomServicesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, dicomServiceName: string, workspaceName: string, options?: DicomServicesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, dicomServiceName: string, workspaceName: string, options?: DicomServicesDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, dicomServiceName: string, workspaceName: string, dicomservicePatchResource: DicomServicePatchResource, options?: DicomServicesUpdateOptionalParams): Promise, DicomServicesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, dicomServiceName: string, workspaceName: string, dicomservicePatchResource: DicomServicePatchResource, options?: DicomServicesUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, dicomServiceName: string, options?: DicomServicesGetOptionalParams): Promise; + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: DicomServicesListByWorkspaceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface DicomServicesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DicomServicesCreateOrUpdateResponse = DicomService; + +// @public +export interface DicomServicesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface DicomServicesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DicomServicesGetResponse = DicomService; + +// @public +export interface DicomServicesListByWorkspaceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DicomServicesListByWorkspaceNextResponse = DicomServiceCollection; + +// @public +export interface DicomServicesListByWorkspaceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DicomServicesListByWorkspaceResponse = DicomServiceCollection; + +// @public +export interface DicomServicesUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DicomServicesUpdateResponse = DicomService; + // @public export interface ErrorDetails { error?: ErrorDetailsInternal; @@ -31,6 +114,142 @@ export interface ErrorDetailsInternal { readonly target?: string; } +// @public +export interface ErrorModel { + error?: ErrorDetailsInternal; +} + +// @public +export interface FhirDestinations { + listByIotConnector(resourceGroupName: string, workspaceName: string, iotConnectorName: string, options?: FhirDestinationsListByIotConnectorOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface FhirDestinationsListByIotConnectorNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type FhirDestinationsListByIotConnectorNextResponse = IotFhirDestinationCollection; + +// @public +export interface FhirDestinationsListByIotConnectorOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type FhirDestinationsListByIotConnectorResponse = IotFhirDestinationCollection; + +// @public +export type FhirService = TaggedResource & ServiceManagedIdentity & { + kind?: FhirServiceKind; + readonly systemData?: SystemData; + provisioningState?: ProvisioningState; + accessPolicies?: FhirServiceAccessPolicyEntry[]; + acrConfiguration?: FhirServiceAcrConfiguration; + authenticationConfiguration?: FhirServiceAuthenticationConfiguration; + corsConfiguration?: FhirServiceCorsConfiguration; + exportConfiguration?: FhirServiceExportConfiguration; +}; + +// @public +export interface FhirServiceAccessPolicyEntry { + objectId: string; +} + +// @public +export interface FhirServiceAcrConfiguration { + loginServers?: string[]; +} + +// @public +export interface FhirServiceAuthenticationConfiguration { + audience?: string; + authority?: string; + smartProxyEnabled?: boolean; +} + +// @public +export interface FhirServiceCollection { + nextLink?: string; + value?: FhirService[]; +} + +// @public +export interface FhirServiceCorsConfiguration { + allowCredentials?: boolean; + headers?: string[]; + maxAge?: number; + methods?: string[]; + origins?: string[]; +} + +// @public +export interface FhirServiceExportConfiguration { + storageAccountName?: string; +} + +// @public +export type FhirServiceKind = string; + +// @public +export type FhirServicePatchResource = ResourceTags & ServiceManagedIdentity & {}; + +// @public +export interface FhirServices { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, fhirServiceName: string, fhirservice: FhirService, options?: FhirServicesCreateOrUpdateOptionalParams): Promise, FhirServicesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, fhirServiceName: string, fhirservice: FhirService, options?: FhirServicesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, fhirServiceName: string, workspaceName: string, options?: FhirServicesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, fhirServiceName: string, workspaceName: string, options?: FhirServicesDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, fhirServiceName: string, workspaceName: string, fhirservicePatchResource: FhirServicePatchResource, options?: FhirServicesUpdateOptionalParams): Promise, FhirServicesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, fhirServiceName: string, workspaceName: string, fhirservicePatchResource: FhirServicePatchResource, options?: FhirServicesUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, fhirServiceName: string, options?: FhirServicesGetOptionalParams): Promise; + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: FhirServicesListByWorkspaceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface FhirServicesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type FhirServicesCreateOrUpdateResponse = FhirService; + +// @public +export interface FhirServicesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface FhirServicesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type FhirServicesGetResponse = FhirService; + +// @public +export interface FhirServicesListByWorkspaceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type FhirServicesListByWorkspaceNextResponse = FhirServiceCollection; + +// @public +export interface FhirServicesListByWorkspaceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type FhirServicesListByWorkspaceResponse = FhirServiceCollection; + +// @public +export interface FhirServicesUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type FhirServicesUpdateResponse = FhirService; + // @public (undocumented) export class HealthcareApisManagementClient extends coreClient.ServiceClient { // (undocumented) @@ -39,6 +258,16 @@ export class HealthcareApisManagementClient extends coreClient.ServiceClient { // (undocumented) apiVersion: string; // (undocumented) + dicomServices: DicomServices; + // (undocumented) + fhirDestinations: FhirDestinations; + // (undocumented) + fhirServices: FhirServices; + // (undocumented) + iotConnectorFhirDestination: IotConnectorFhirDestination; + // (undocumented) + iotConnectors: IotConnectors; + // (undocumented) operationResults: OperationResults; // (undocumented) operations: Operations; @@ -50,6 +279,8 @@ export class HealthcareApisManagementClient extends coreClient.ServiceClient { services: Services; // (undocumented) subscriptionId: string; + // (undocumented) + workspaces: Workspaces; } // @public @@ -59,9 +290,162 @@ export interface HealthcareApisManagementClientOptionalParams extends coreClient endpoint?: string; } +// @public +export type IotConnector = TaggedResource & ServiceManagedIdentity & { + readonly systemData?: SystemData; + provisioningState?: ProvisioningState; + ingestionEndpointConfiguration?: IotEventHubIngestionEndpointConfiguration; + deviceMapping?: IotMappingProperties; +}; + +// @public +export interface IotConnectorCollection { + nextLink?: string; + value?: IotConnector[]; +} + +// @public +export interface IotConnectorFhirDestination { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, iotConnectorName: string, fhirDestinationName: string, iotFhirDestination: IotFhirDestination, options?: IotConnectorFhirDestinationCreateOrUpdateOptionalParams): Promise, IotConnectorFhirDestinationCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, iotConnectorName: string, fhirDestinationName: string, iotFhirDestination: IotFhirDestination, options?: IotConnectorFhirDestinationCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, iotConnectorName: string, fhirDestinationName: string, options?: IotConnectorFhirDestinationDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, iotConnectorName: string, fhirDestinationName: string, options?: IotConnectorFhirDestinationDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, iotConnectorName: string, fhirDestinationName: string, options?: IotConnectorFhirDestinationGetOptionalParams): Promise; +} + +// @public +export interface IotConnectorFhirDestinationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type IotConnectorFhirDestinationCreateOrUpdateResponse = IotFhirDestination; + +// @public +export interface IotConnectorFhirDestinationDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface IotConnectorFhirDestinationGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IotConnectorFhirDestinationGetResponse = IotFhirDestination; + +// @public +export type IotConnectorPatchResource = ResourceTags & ServiceManagedIdentity & {}; + +// @public +export interface IotConnectors { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, iotConnectorName: string, iotConnector: IotConnector, options?: IotConnectorsCreateOrUpdateOptionalParams): Promise, IotConnectorsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, iotConnectorName: string, iotConnector: IotConnector, options?: IotConnectorsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, iotConnectorName: string, workspaceName: string, options?: IotConnectorsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, iotConnectorName: string, workspaceName: string, options?: IotConnectorsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, iotConnectorName: string, workspaceName: string, iotConnectorPatchResource: IotConnectorPatchResource, options?: IotConnectorsUpdateOptionalParams): Promise, IotConnectorsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, iotConnectorName: string, workspaceName: string, iotConnectorPatchResource: IotConnectorPatchResource, options?: IotConnectorsUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, iotConnectorName: string, options?: IotConnectorsGetOptionalParams): Promise; + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: IotConnectorsListByWorkspaceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface IotConnectorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type IotConnectorsCreateOrUpdateResponse = IotConnector; + +// @public +export interface IotConnectorsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface IotConnectorsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IotConnectorsGetResponse = IotConnector; + +// @public +export interface IotConnectorsListByWorkspaceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IotConnectorsListByWorkspaceNextResponse = IotConnectorCollection; + +// @public +export interface IotConnectorsListByWorkspaceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IotConnectorsListByWorkspaceResponse = IotConnectorCollection; + +// @public +export interface IotConnectorsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type IotConnectorsUpdateResponse = IotConnector; + +// @public +export interface IotDestinationProperties { + provisioningState?: ProvisioningState; +} + +// @public +export interface IotEventHubIngestionEndpointConfiguration { + consumerGroup?: string; + eventHubName?: string; + fullyQualifiedEventHubNamespace?: string; +} + +// @public +export type IotFhirDestination = LocationBasedResource & { + readonly systemData?: SystemData; + provisioningState?: ProvisioningState; + resourceIdentityResolutionType: IotIdentityResolutionType; + fhirServiceResourceId: string; + fhirMapping: IotMappingProperties; +}; + +// @public +export interface IotFhirDestinationCollection { + nextLink?: string; + value?: IotFhirDestination[]; +} + +// @public +export type IotFhirDestinationProperties = IotDestinationProperties & { + resourceIdentityResolutionType: IotIdentityResolutionType; + fhirServiceResourceId: string; + fhirMapping: IotMappingProperties; +}; + +// @public +export type IotIdentityResolutionType = string; + +// @public +export interface IotMappingProperties { + content?: Record; +} + // @public export type Kind = "fhir" | "fhir-Stu3" | "fhir-R4"; +// @public +export enum KnownActionType { + // (undocumented) + Internal = "Internal" +} + // @public export enum KnownCreatedByType { // (undocumented) @@ -74,6 +458,22 @@ export enum KnownCreatedByType { User = "User" } +// @public +export enum KnownFhirServiceKind { + // (undocumented) + FhirR4 = "fhir-R4", + // (undocumented) + FhirStu3 = "fhir-Stu3" +} + +// @public +export enum KnownIotIdentityResolutionType { + // (undocumented) + Create = "Create", + // (undocumented) + Lookup = "Lookup" +} + // @public export enum KnownManagedServiceIdentityType { // (undocumented) @@ -133,11 +533,19 @@ export enum KnownProvisioningState { // (undocumented) Failed = "Failed", // (undocumented) + Moving = "Moving", + // (undocumented) Succeeded = "Succeeded", // (undocumented) + Suspended = "Suspended", + // (undocumented) + SystemMaintenance = "SystemMaintenance", + // (undocumented) Updating = "Updating", // (undocumented) - Verifying = "Verifying" + Verifying = "Verifying", + // (undocumented) + Warned = "Warned" } // @public @@ -148,12 +556,25 @@ export enum KnownPublicNetworkAccess { Enabled = "Enabled" } +// @public +export interface ListOperations { + nextLink?: string; + readonly value?: OperationDetail[]; +} + +// @public +export type LocationBasedResource = ResourceCore & { + location?: string; +}; + // @public export type ManagedServiceIdentityType = string; // @public -export interface Operation { +export interface OperationDetail { + readonly actionType?: ActionType; display?: OperationDisplay; + readonly isDataAction?: boolean; readonly name?: string; readonly origin?: string; } @@ -166,12 +587,6 @@ export interface OperationDisplay { readonly resource?: string; } -// @public -export interface OperationListResult { - nextLink?: string; - readonly value?: Operation[]; -} - // @public export interface OperationResults { get(locationName: string, operationResultId: string, options?: OperationResultsGetOptionalParams): Promise; @@ -181,7 +596,7 @@ export interface OperationResults { export interface OperationResultsDescription { readonly id?: string; readonly name?: string; - properties?: any; + properties?: Record; readonly startTime?: string; readonly status?: OperationResultStatus; } @@ -198,7 +613,7 @@ export type OperationResultStatus = string; // @public export interface Operations { - list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; + list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -206,14 +621,14 @@ export interface OperationsListNextOptionalParams extends coreClient.OperationOp } // @public -export type OperationsListNextResponse = OperationListResult; +export type OperationsListNextResponse = ListOperations; // @public export interface OperationsListOptionalParams extends coreClient.OperationOptions { } // @public -export type OperationsListResponse = OperationListResult; +export type OperationsListResponse = ListOperations; // @public export interface PrivateEndpoint { @@ -339,6 +754,21 @@ export interface Resource { readonly type?: string; } +// @public +export interface ResourceCore { + etag?: string; + readonly id?: string; + readonly name?: string; + readonly type?: string; +} + +// @public +export interface ResourceTags { + tags?: { + [propertyName: string]: string; + }; +} + // @public export interface ServiceAccessPolicyEntry { objectId: string; @@ -376,6 +806,16 @@ export interface ServiceExportConfigurationInfo { storageAccountName?: string; } +// @public +export interface ServiceManagedIdentity { + identity?: ServiceManagedIdentityIdentity; +} + +// @public +export interface ServiceManagedIdentityIdentity { + type?: ManagedServiceIdentityType; +} + // @public export type ServiceNameUnavailabilityReason = "Invalid" | "AlreadyExists"; @@ -530,6 +970,101 @@ export interface SystemData { lastModifiedByType?: CreatedByType; } +// @public +export type TaggedResource = ResourceTags & LocationBasedResource & {}; + +// @public +export type Workspace = TaggedResource & { + properties?: WorkspaceProperties; + readonly systemData?: SystemData; +}; + +// @public +export interface WorkspaceList { + nextLink?: string; + value?: Workspace[]; +} + +// @public +export type WorkspacePatchResource = ResourceTags & {}; + +// @public +export interface WorkspaceProperties { + provisioningState?: ProvisioningState; +} + +// @public +export interface Workspaces { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, workspace: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise, WorkspacesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, workspace: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, workspacePatchResource: WorkspacePatchResource, options?: WorkspacesUpdateOptionalParams): Promise, WorkspacesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, workspacePatchResource: WorkspacePatchResource, options?: WorkspacesUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, options?: WorkspacesGetOptionalParams): Promise; + listByResourceGroup(resourceGroupName: string, options?: WorkspacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + listBySubscription(options?: WorkspacesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspacesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspacesCreateOrUpdateResponse = Workspace; + +// @public +export interface WorkspacesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface WorkspacesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesGetResponse = Workspace; + +// @public +export interface WorkspacesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesListByResourceGroupNextResponse = WorkspaceList; + +// @public +export interface WorkspacesListByResourceGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesListByResourceGroupResponse = WorkspaceList; + +// @public +export interface WorkspacesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesListBySubscriptionNextResponse = WorkspaceList; + +// @public +export interface WorkspacesListBySubscriptionOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesListBySubscriptionResponse = WorkspaceList; + +// @public +export interface WorkspacesUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspacesUpdateResponse = Workspace; + // (No @packageDocumentation comment for this package) ``` diff --git a/sdk/healthcareapis/arm-healthcareapis/src/healthcareApisManagementClient.ts b/sdk/healthcareapis/arm-healthcareapis/src/healthcareApisManagementClient.ts index 8ea983a58665..e8b58b517f89 100644 --- a/sdk/healthcareapis/arm-healthcareapis/src/healthcareApisManagementClient.ts +++ b/sdk/healthcareapis/arm-healthcareapis/src/healthcareApisManagementClient.ts @@ -10,17 +10,29 @@ import * as coreClient from "@azure/core-client"; import * as coreAuth from "@azure/core-auth"; import { ServicesImpl, - OperationsImpl, - OperationResultsImpl, PrivateEndpointConnectionsImpl, - PrivateLinkResourcesImpl + PrivateLinkResourcesImpl, + WorkspacesImpl, + DicomServicesImpl, + IotConnectorsImpl, + FhirDestinationsImpl, + IotConnectorFhirDestinationImpl, + FhirServicesImpl, + OperationsImpl, + OperationResultsImpl } from "./operations"; import { Services, - Operations, - OperationResults, PrivateEndpointConnections, - PrivateLinkResources + PrivateLinkResources, + Workspaces, + DicomServices, + IotConnectors, + FhirDestinations, + IotConnectorFhirDestination, + FhirServices, + Operations, + OperationResults } from "./operationsInterfaces"; import { HealthcareApisManagementClientOptionalParams } from "./models"; @@ -56,7 +68,7 @@ export class HealthcareApisManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-healthcareapis/2.0.0`; + const packageDetails = `azsdk-js-arm-healthcareapis/2.1.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -79,17 +91,31 @@ export class HealthcareApisManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-01-11"; + this.apiVersion = options.apiVersion || "2021-06-01-preview"; this.services = new ServicesImpl(this); - this.operations = new OperationsImpl(this); - this.operationResults = new OperationResultsImpl(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.operations = new OperationsImpl(this); + this.operationResults = new OperationResultsImpl(this); } services: Services; - operations: Operations; - operationResults: OperationResults; privateEndpointConnections: PrivateEndpointConnections; privateLinkResources: PrivateLinkResources; + workspaces: Workspaces; + dicomServices: DicomServices; + iotConnectors: IotConnectors; + fhirDestinations: FhirDestinations; + iotConnectorFhirDestination: IotConnectorFhirDestination; + fhirServices: FhirServices; + operations: Operations; + operationResults: OperationResults; } diff --git a/sdk/healthcareapis/arm-healthcareapis/src/models/index.ts b/sdk/healthcareapis/arm-healthcareapis/src/models/index.ts index 543592df7250..ba366b996ec0 100644 --- a/sdk/healthcareapis/arm-healthcareapis/src/models/index.ts +++ b/sdk/healthcareapis/arm-healthcareapis/src/models/index.ts @@ -184,7 +184,7 @@ export interface ServicesResourceIdentity { /** Error details. */ export interface ErrorDetails { - /** Object containing error details. */ + /** Error details */ error?: ErrorDetailsInternal; } @@ -223,31 +223,249 @@ export interface ServicesDescriptionListResult { value?: ServicesDescription[]; } -/** A list of service operations. It contains a list of operations and a URL link to get the next set of results. */ -export interface OperationListResult { - /** The link used to get the next page of service description objects. */ +/** Input values. */ +export interface CheckNameAvailabilityParameters { + /** The name of the service instance to check. */ + name: string; + /** The fully qualified resource type which includes provider namespace. */ + type: string; +} + +/** The properties indicating whether a given service name is available. */ +export interface ServicesNameAvailabilityInfo { + /** + * The value which indicates whether the provided name is available. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nameAvailable?: boolean; + /** + * The reason for unavailability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly reason?: ServiceNameUnavailabilityReason; + /** The detailed reason message. */ + message?: string; +} + +/** List of private endpoint connection associated with the specified storage account */ +export interface PrivateEndpointConnectionListResultDescription { + /** Array of private endpoint connections */ + value?: PrivateEndpointConnectionDescription[]; +} + +/** A list of private link resources */ +export interface PrivateLinkResourceListResultDescription { + /** Array of private link resources */ + value?: PrivateLinkResourceDescription[]; +} + +/** Collection of workspace object with a next link */ +export interface WorkspaceList { + /** The link used to get the next page. */ + nextLink?: string; + /** Collection of resources. */ + value?: Workspace[]; +} + +/** Workspaces resource specific properties. */ +export interface WorkspaceProperties { + /** The provisioning state. */ + provisioningState?: ProvisioningState; +} + +/** List of key value pairs that describe the resource. This will overwrite the existing tags. */ +export interface ResourceTags { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; +} + +/** The common properties for any resource, tracked or proxy. */ +export interface ResourceCore { + /** + * The resource identifier. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The resource name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** An etag associated with the resource, used for optimistic concurrency when editing it. */ + etag?: string; +} + +/** Error details. */ +export interface ErrorModel { + /** Error details */ + error?: ErrorDetailsInternal; +} + +/** The collection of Dicom Services. */ +export interface DicomServiceCollection { + /** The link used to get the next page of Dicom Services. */ nextLink?: string; + /** The list of Dicom Services. */ + value?: DicomService[]; +} + +/** Authentication configuration information */ +export interface DicomServiceAuthenticationConfiguration { + /** + * The authority url for the service + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly authority?: string; /** - * A list of service operations supported by the Microsoft.HealthcareApis resource provider. + * The audiences for the service * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Operation[]; + readonly audiences?: string[]; +} + +/** A collection of IoT Connectors. */ +export interface IotConnectorCollection { + /** The link used to get the next page of IoT Connectors. */ + nextLink?: string; + /** The list of IoT Connectors. */ + value?: IotConnector[]; +} + +/** Event Hub ingestion endpoint configuration */ +export interface IotEventHubIngestionEndpointConfiguration { + /** Event Hub name to connect to. */ + eventHubName?: string; + /** Consumer group of the event hub to connected to. */ + consumerGroup?: string; + /** Fully qualified namespace of the Event Hub to connect to. */ + fullyQualifiedEventHubNamespace?: string; +} + +/** The mapping content. */ +export interface IotMappingProperties { + /** The mapping. */ + content?: Record; +} + +/** The managed identity of a service. */ +export interface ServiceManagedIdentity { + /** Setting indicating whether the service has a managed identity associated with it. */ + identity?: ServiceManagedIdentityIdentity; +} + +/** Setting indicating whether the service has a managed identity associated with it. */ +export interface ServiceManagedIdentityIdentity { + /** Type of identity being specified, currently SystemAssigned and None are allowed. */ + type?: ManagedServiceIdentityType; +} + +/** A collection of IoT Connector FHIR destinations. */ +export interface IotFhirDestinationCollection { + /** The link used to get the next page of IoT FHIR destinations. */ + nextLink?: string; + /** The list of IoT Connector FHIR destinations. */ + value?: IotFhirDestination[]; +} + +/** Common IoT Connector destination properties. */ +export interface IotDestinationProperties { + /** The provisioning state. */ + provisioningState?: ProvisioningState; +} + +/** A collection of Fhir services. */ +export interface FhirServiceCollection { + /** The link used to get the next page of Fhir Services. */ + nextLink?: string; + /** The list of Fhir Services. */ + value?: FhirService[]; +} + +/** An access policy entry. */ +export interface FhirServiceAccessPolicyEntry { + /** An Azure AD object ID (User or Apps) that is allowed access to the FHIR service. */ + objectId: string; +} + +/** Azure container registry configuration information */ +export interface FhirServiceAcrConfiguration { + /** The list of the Azure container registry login servers. */ + loginServers?: string[]; +} + +/** Authentication configuration information */ +export interface FhirServiceAuthenticationConfiguration { + /** The authority url for the service */ + authority?: string; + /** The audience url for the service */ + audience?: string; + /** If the SMART on FHIR proxy is enabled */ + smartProxyEnabled?: boolean; +} + +/** The settings for the CORS configuration of the service instance. */ +export interface FhirServiceCorsConfiguration { + /** 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; +} + +/** Export operation configuration information */ +export interface FhirServiceExportConfiguration { + /** The name of the default export storage account. */ + storageAccountName?: string; +} + +/** Available operations of the service */ +export interface ListOperations { + /** + * Collection of available operation details + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: OperationDetail[]; + /** + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ + nextLink?: string; } /** Service REST API operation. */ -export interface Operation { +export interface OperationDetail { /** - * Operation name: {provider}/{resource}/{read | write | action | delete} + * Name of the operation * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; + /** + * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isDataAction?: boolean; + /** Display of the operation */ + display?: OperationDisplay; /** * Default value is 'user,system'. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly origin?: string; - /** The information displayed about the operation. */ - display?: OperationDisplay; + /** + * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actionType?: ActionType; } /** The object that represents the operation. */ @@ -274,30 +492,6 @@ export interface OperationDisplay { readonly description?: string; } -/** Input values. */ -export interface CheckNameAvailabilityParameters { - /** The name of the service instance to check. */ - name: string; - /** The fully qualified resource type which includes provider namespace. */ - type: string; -} - -/** The properties indicating whether a given service name is available. */ -export interface ServicesNameAvailabilityInfo { - /** - * The value which indicates whether the provided name is available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nameAvailable?: boolean; - /** - * The reason for unavailability. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly reason?: ServiceNameUnavailabilityReason; - /** The detailed reason message. */ - message?: string; -} - /** The properties indicating the operation result of an operation on a service. */ export interface OperationResultsDescription { /** @@ -321,19 +515,7 @@ export interface OperationResultsDescription { */ readonly startTime?: string; /** Additional properties of the operation result. */ - properties?: any; -} - -/** List of private endpoint connection associated with the specified storage account */ -export interface PrivateEndpointConnectionListResultDescription { - /** Array of private endpoint connections */ - value?: PrivateEndpointConnectionDescription[]; -} - -/** A list of private link resources */ -export interface PrivateLinkResourceListResultDescription { - /** Array of private link resources */ - value?: PrivateLinkResourceDescription[]; + properties?: Record; } /** The Private Endpoint Connection resource. */ @@ -376,10 +558,83 @@ export type ServicesDescription = ServicesResource & { readonly systemData?: SystemData; }; +/** The common properties of tracked resources in the service. */ +export type TaggedResource = ResourceTags & LocationBasedResource & {}; + +/** Workspace patch properties */ +export type WorkspacePatchResource = ResourceTags & {}; + +/** Dicom Service patch properties */ +export type DicomServicePatchResource = ResourceTags & {}; + +/** Iot Connector patch properties */ +export type IotConnectorPatchResource = ResourceTags & + ServiceManagedIdentity & {}; + +/** FhirService patch properties */ +export type FhirServicePatchResource = ResourceTags & + ServiceManagedIdentity & {}; + +/** The common properties for any location based resource, tracked or proxy. */ +export type LocationBasedResource = ResourceCore & { + /** The resource location. */ + location?: string; +}; + +/** IoT Connector definition. */ +export type IotConnector = TaggedResource & + ServiceManagedIdentity & { + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** The provisioning state. */ + provisioningState?: ProvisioningState; + /** Source configuration. */ + ingestionEndpointConfiguration?: IotEventHubIngestionEndpointConfiguration; + /** Device Mappings. */ + deviceMapping?: IotMappingProperties; + }; + +/** The description of Fhir Service */ +export type FhirService = TaggedResource & + ServiceManagedIdentity & { + /** The kind of the service. */ + kind?: FhirServiceKind; + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** The provisioning state. */ + provisioningState?: ProvisioningState; + /** Fhir Service access policies. */ + accessPolicies?: FhirServiceAccessPolicyEntry[]; + /** Fhir Service Azure container registry configuration. */ + acrConfiguration?: FhirServiceAcrConfiguration; + /** Fhir Service authentication configuration. */ + authenticationConfiguration?: FhirServiceAuthenticationConfiguration; + /** Fhir Service Cors configuration. */ + corsConfiguration?: FhirServiceCorsConfiguration; + /** Fhir Service export configuration. */ + exportConfiguration?: FhirServiceExportConfiguration; + }; + +/** IoT Connector destination properties for an Azure FHIR service. */ +export type IotFhirDestinationProperties = IotDestinationProperties & { + /** Determines how resource identity is resolved on the destination. */ + resourceIdentityResolutionType: IotIdentityResolutionType; + /** Fully qualified resource id of the FHIR service to connect to. */ + fhirServiceResourceId: string; + /** FHIR Mappings */ + fhirMapping: IotMappingProperties; +}; + /** The Private Endpoint Connection resource. */ export type PrivateEndpointConnectionDescription = PrivateEndpointConnection & { /** - * System metadata for this resource. + * Metadata pertaining to creation and last modification of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; @@ -388,10 +643,56 @@ export type PrivateEndpointConnectionDescription = PrivateEndpointConnection & { /** The Private Endpoint Connection resource. */ export type PrivateLinkResourceDescription = PrivateLinkResource & { /** - * System metadata for this resource. + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; +}; + +/** Workspace resource. */ +export type Workspace = TaggedResource & { + /** Workspaces resource specific properties. */ + properties?: WorkspaceProperties; + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; +}; + +/** The description of Dicom Service */ +export type DicomService = TaggedResource & { + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** The provisioning state. */ + provisioningState?: ProvisioningState; + /** Dicom Service authentication configuration. */ + authenticationConfiguration?: DicomServiceAuthenticationConfiguration; + /** + * The url of the Dicom Services. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serviceUrl?: string; +}; + +/** IoT Connector FHIR destination definition. */ +export type IotFhirDestination = LocationBasedResource & { + /** + * Metadata pertaining to creation and last modification of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; + /** The provisioning state. */ + provisioningState?: ProvisioningState; + /** Determines how resource identity is resolved on the destination. */ + resourceIdentityResolutionType: IotIdentityResolutionType; + /** Fully qualified resource id of the FHIR service to connect to. */ + fhirServiceResourceId: string; + /** FHIR Mappings */ + fhirMapping: IotMappingProperties; }; /** Known values of {@link ProvisioningState} that the service accepts. */ @@ -404,7 +705,11 @@ export enum KnownProvisioningState { Updating = "Updating", Failed = "Failed", Canceled = "Canceled", - Deprovisioned = "Deprovisioned" + Deprovisioned = "Deprovisioned", + Moving = "Moving", + Suspended = "Suspended", + Warned = "Warned", + SystemMaintenance = "SystemMaintenance" } /** @@ -420,7 +725,11 @@ export enum KnownProvisioningState { * **Updating** \ * **Failed** \ * **Canceled** \ - * **Deprovisioned** + * **Deprovisioned** \ + * **Moving** \ + * **Suspended** \ + * **Warned** \ + * **SystemMaintenance** */ export type ProvisioningState = string; @@ -514,6 +823,52 @@ export enum KnownManagedServiceIdentityType { */ export type ManagedServiceIdentityType = string; +/** Known values of {@link IotIdentityResolutionType} that the service accepts. */ +export enum KnownIotIdentityResolutionType { + Create = "Create", + Lookup = "Lookup" +} + +/** + * Defines values for IotIdentityResolutionType. \ + * {@link KnownIotIdentityResolutionType} can be used interchangeably with IotIdentityResolutionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Create** \ + * **Lookup** + */ +export type IotIdentityResolutionType = string; + +/** Known values of {@link FhirServiceKind} that the service accepts. */ +export enum KnownFhirServiceKind { + FhirStu3 = "fhir-Stu3", + FhirR4 = "fhir-R4" +} + +/** + * Defines values for FhirServiceKind. \ + * {@link KnownFhirServiceKind} can be used interchangeably with FhirServiceKind, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **fhir-Stu3** \ + * **fhir-R4** + */ +export type FhirServiceKind = string; + +/** Known values of {@link ActionType} that the service accepts. */ +export enum KnownActionType { + Internal = "Internal" +} + +/** + * Defines values for ActionType. \ + * {@link KnownActionType} can be used interchangeably with ActionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Internal** + */ +export type ActionType = string; + /** Known values of {@link OperationResultStatus} that the service accepts. */ export enum KnownOperationResultStatus { Canceled = "Canceled", @@ -615,27 +970,6 @@ export interface ServicesListByResourceGroupNextOptionalParams /** Contains response data for the listByResourceGroupNext operation. */ export type ServicesListByResourceGroupNextResponse = ServicesDescriptionListResult; -/** Optional parameters. */ -export interface OperationsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult; - -/** Optional parameters. */ -export interface OperationsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationListResult; - -/** Optional parameters. */ -export interface OperationResultsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type OperationResultsGetResponse = OperationResultsDescription; - /** Optional parameters. */ export interface PrivateEndpointConnectionsListByServiceOptionalParams extends coreClient.OperationOptions {} @@ -685,6 +1019,299 @@ export interface PrivateLinkResourcesGetOptionalParams /** Contains response data for the get operation. */ export type PrivateLinkResourcesGetResponse = PrivateLinkResourceDescription; +/** Optional parameters. */ +export interface WorkspacesListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type WorkspacesListBySubscriptionResponse = WorkspaceList; + +/** Optional parameters. */ +export interface WorkspacesListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type WorkspacesListByResourceGroupResponse = WorkspaceList; + +/** Optional parameters. */ +export interface WorkspacesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type WorkspacesGetResponse = Workspace; + +/** Optional parameters. */ +export interface WorkspacesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type WorkspacesCreateOrUpdateResponse = Workspace; + +/** Optional parameters. */ +export interface WorkspacesUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type WorkspacesUpdateResponse = Workspace; + +/** Optional parameters. */ +export interface WorkspacesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface WorkspacesListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type WorkspacesListBySubscriptionNextResponse = WorkspaceList; + +/** Optional parameters. */ +export interface WorkspacesListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type WorkspacesListByResourceGroupNextResponse = WorkspaceList; + +/** Optional parameters. */ +export interface DicomServicesListByWorkspaceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByWorkspace operation. */ +export type DicomServicesListByWorkspaceResponse = DicomServiceCollection; + +/** Optional parameters. */ +export interface DicomServicesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DicomServicesGetResponse = DicomService; + +/** Optional parameters. */ +export interface DicomServicesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type DicomServicesCreateOrUpdateResponse = DicomService; + +/** Optional parameters. */ +export interface DicomServicesUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type DicomServicesUpdateResponse = DicomService; + +/** Optional parameters. */ +export interface DicomServicesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface DicomServicesListByWorkspaceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByWorkspaceNext operation. */ +export type DicomServicesListByWorkspaceNextResponse = DicomServiceCollection; + +/** Optional parameters. */ +export interface IotConnectorsListByWorkspaceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByWorkspace operation. */ +export type IotConnectorsListByWorkspaceResponse = IotConnectorCollection; + +/** Optional parameters. */ +export interface IotConnectorsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type IotConnectorsGetResponse = IotConnector; + +/** Optional parameters. */ +export interface IotConnectorsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type IotConnectorsCreateOrUpdateResponse = IotConnector; + +/** Optional parameters. */ +export interface IotConnectorsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type IotConnectorsUpdateResponse = IotConnector; + +/** Optional parameters. */ +export interface IotConnectorsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface IotConnectorsListByWorkspaceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByWorkspaceNext operation. */ +export type IotConnectorsListByWorkspaceNextResponse = IotConnectorCollection; + +/** Optional parameters. */ +export interface FhirDestinationsListByIotConnectorOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByIotConnector operation. */ +export type FhirDestinationsListByIotConnectorResponse = IotFhirDestinationCollection; + +/** Optional parameters. */ +export interface FhirDestinationsListByIotConnectorNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByIotConnectorNext operation. */ +export type FhirDestinationsListByIotConnectorNextResponse = IotFhirDestinationCollection; + +/** Optional parameters. */ +export interface IotConnectorFhirDestinationGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type IotConnectorFhirDestinationGetResponse = IotFhirDestination; + +/** Optional parameters. */ +export interface IotConnectorFhirDestinationCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type IotConnectorFhirDestinationCreateOrUpdateResponse = IotFhirDestination; + +/** Optional parameters. */ +export interface IotConnectorFhirDestinationDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface FhirServicesListByWorkspaceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByWorkspace operation. */ +export type FhirServicesListByWorkspaceResponse = FhirServiceCollection; + +/** Optional parameters. */ +export interface FhirServicesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type FhirServicesGetResponse = FhirService; + +/** Optional parameters. */ +export interface FhirServicesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type FhirServicesCreateOrUpdateResponse = FhirService; + +/** Optional parameters. */ +export interface FhirServicesUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type FhirServicesUpdateResponse = FhirService; + +/** Optional parameters. */ +export interface FhirServicesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface FhirServicesListByWorkspaceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByWorkspaceNext operation. */ +export type FhirServicesListByWorkspaceNextResponse = FhirServiceCollection; + +/** Optional parameters. */ +export interface OperationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type OperationsListResponse = ListOperations; + +/** Optional parameters. */ +export interface OperationsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = ListOperations; + +/** Optional parameters. */ +export interface OperationResultsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type OperationResultsGetResponse = OperationResultsDescription; + /** Optional parameters. */ export interface HealthcareApisManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/healthcareapis/arm-healthcareapis/src/models/mappers.ts b/sdk/healthcareapis/arm-healthcareapis/src/models/mappers.ts index 93d233049573..9a21e935fcd0 100644 --- a/sdk/healthcareapis/arm-healthcareapis/src/models/mappers.ts +++ b/sdk/healthcareapis/arm-healthcareapis/src/models/mappers.ts @@ -570,116 +570,135 @@ export const ServicesDescriptionListResult: coreClient.CompositeMapper = { } }; -export const OperationListResult: coreClient.CompositeMapper = { +export const CheckNameAvailabilityParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationListResult", + className: "CheckNameAvailabilityParameters", modelProperties: { - nextLink: { - serializedName: "nextLink", + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - value: { - serializedName: "value", - readOnly: true, + type: { + serializedName: "type", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation" - } - } + name: "String" } } } } }; -export const Operation: coreClient.CompositeMapper = { +export const ServicesNameAvailabilityInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Operation", + className: "ServicesNameAvailabilityInfo", modelProperties: { - name: { - serializedName: "name", + nameAvailable: { + serializedName: "nameAvailable", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - origin: { - serializedName: "origin", + reason: { + serializedName: "reason", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Invalid", "AlreadyExists"] } }, - display: { - serializedName: "display", + message: { + serializedName: "message", type: { - name: "Composite", - className: "OperationDisplay" + name: "String" } } } } }; -export const OperationDisplay: coreClient.CompositeMapper = { +export const PrivateEndpointConnectionListResultDescription: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDisplay", + className: "PrivateEndpointConnectionListResultDescription", modelProperties: { - provider: { - serializedName: "provider", - readOnly: true, + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionDescription" + } + } } - }, - resource: { - serializedName: "resource", - readOnly: true, + } + } + } +}; + +export const PrivateLinkResourceListResultDescription: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResourceListResultDescription", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResourceDescription" + } + } } - }, - operation: { - serializedName: "operation", - readOnly: true, + } + } + } +}; + +export const WorkspaceList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceList", + modelProperties: { + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - description: { - serializedName: "description", - readOnly: true, + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Workspace" + } + } } } } } }; -export const CheckNameAvailabilityParameters: coreClient.CompositeMapper = { +export const WorkspaceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CheckNameAvailabilityParameters", + className: "WorkspaceProperties", modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - required: true, + provisioningState: { + serializedName: "provisioningState", type: { name: "String" } @@ -688,40 +707,26 @@ export const CheckNameAvailabilityParameters: coreClient.CompositeMapper = { } }; -export const ServicesNameAvailabilityInfo: coreClient.CompositeMapper = { +export const ResourceTags: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServicesNameAvailabilityInfo", + className: "ResourceTags", modelProperties: { - nameAvailable: { - serializedName: "nameAvailable", - readOnly: true, - type: { - name: "Boolean" - } - }, - reason: { - serializedName: "reason", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["Invalid", "AlreadyExists"] - } - }, - message: { - serializedName: "message", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const OperationResultsDescription: coreClient.CompositeMapper = { +export const ResourceCore: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationResultsDescription", + className: "ResourceCore", modelProperties: { id: { serializedName: "id", @@ -731,62 +736,59 @@ export const OperationResultsDescription: coreClient.CompositeMapper = { } }, name: { + constraints: { + Pattern: new RegExp("^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$") + }, serializedName: "name", readOnly: true, type: { name: "String" } }, - status: { - serializedName: "status", + type: { + serializedName: "type", readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "startTime", - readOnly: true, + etag: { + serializedName: "etag", type: { name: "String" } - }, - properties: { - serializedName: "properties", - type: { - name: "any" - } } } } }; -export const PrivateEndpointConnectionListResultDescription: coreClient.CompositeMapper = { +export const ErrorModel: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionListResultDescription", + className: "ErrorModel", modelProperties: { - value: { - serializedName: "value", + error: { + serializedName: "error", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnectionDescription" - } - } + name: "Composite", + className: "ErrorDetailsInternal" } } } } }; -export const PrivateLinkResourceListResultDescription: coreClient.CompositeMapper = { +export const DicomServiceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResourceListResultDescription", + className: "DicomServiceCollection", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "value", type: { @@ -794,7 +796,7 @@ export const PrivateLinkResourceListResultDescription: coreClient.CompositeMappe element: { type: { name: "Composite", - className: "PrivateLinkResourceDescription" + className: "DicomService" } } } @@ -803,69 +805,53 @@ export const PrivateLinkResourceListResultDescription: coreClient.CompositeMappe } }; -export const PrivateEndpointConnection: coreClient.CompositeMapper = { +export const DicomServiceAuthenticationConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "DicomServiceAuthenticationConfiguration", modelProperties: { - ...Resource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpoint" - } - }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + authority: { + serializedName: "authority", + readOnly: true, type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + audiences: { + serializedName: "audiences", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const PrivateLinkResource: coreClient.CompositeMapper = { +export const IotConnectorCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResource", + className: "IotConnectorCollection", modelProperties: { - ...Resource.type.modelProperties, - groupId: { - serializedName: "properties.groupId", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - requiredMembers: { - serializedName: "properties.requiredMembers", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "IotConnector" } } } @@ -874,24 +860,745 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { } }; -export const ServicesDescription: coreClient.CompositeMapper = { +export const IotEventHubIngestionEndpointConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServicesDescription", + className: "IotEventHubIngestionEndpointConfiguration", modelProperties: { - ...ServicesResource.type.modelProperties, - properties: { - serializedName: "properties", + eventHubName: { + serializedName: "eventHubName", type: { - name: "Composite", - className: "ServicesProperties" + name: "String" } }, - systemData: { - serializedName: "systemData", + consumerGroup: { + serializedName: "consumerGroup", type: { - name: "Composite", - className: "SystemData" + name: "String" + } + }, + fullyQualifiedEventHubNamespace: { + serializedName: "fullyQualifiedEventHubNamespace", + type: { + name: "String" + } + } + } + } +}; + +export const IotMappingProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IotMappingProperties", + modelProperties: { + content: { + serializedName: "content", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } + } + } +}; + +export const ServiceManagedIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceManagedIdentity", + modelProperties: { + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ServiceManagedIdentityIdentity" + } + } + } + } +}; + +export const ServiceManagedIdentityIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceManagedIdentityIdentity", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const IotFhirDestinationCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IotFhirDestinationCollection", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IotFhirDestination" + } + } + } + } + } + } +}; + +export const IotDestinationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IotDestinationProperties", + modelProperties: { + provisioningState: { + serializedName: "provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const FhirServiceCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FhirServiceCollection", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FhirService" + } + } + } + } + } + } +}; + +export const FhirServiceAccessPolicyEntry: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FhirServiceAccessPolicyEntry", + modelProperties: { + objectId: { + constraints: { + Pattern: new RegExp( + "^(([0-9A-Fa-f]{8}[-]?(?:[0-9A-Fa-f]{4}[-]?){3}[0-9A-Fa-f]{12}){1})+$" + ) + }, + serializedName: "objectId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const FhirServiceAcrConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FhirServiceAcrConfiguration", + modelProperties: { + loginServers: { + serializedName: "loginServers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const FhirServiceAuthenticationConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FhirServiceAuthenticationConfiguration", + modelProperties: { + authority: { + serializedName: "authority", + type: { + name: "String" + } + }, + audience: { + serializedName: "audience", + type: { + name: "String" + } + }, + smartProxyEnabled: { + serializedName: "smartProxyEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const FhirServiceCorsConfiguration: coreClient.CompositeMapper = { + 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" + } + } + } + } +}; + +export const FhirServiceExportConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FhirServiceExportConfiguration", + modelProperties: { + storageAccountName: { + serializedName: "storageAccountName", + type: { + name: "String" + } + } + } + } +}; + +export const ListOperations: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListOperations", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationDetail" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const OperationDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDetail", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + isDataAction: { + serializedName: "isDataAction", + readOnly: true, + type: { + name: "Boolean" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + }, + origin: { + serializedName: "origin", + readOnly: true, + type: { + name: "String" + } + }, + actionType: { + serializedName: "actionType", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + readOnly: true, + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + readOnly: true, + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + readOnly: true, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const OperationResultsDescription: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationResultsDescription", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", + readOnly: true, + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } + } + } +}; + +export const PrivateEndpointConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...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: true, + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + ...Resource.type.modelProperties, + groupId: { + serializedName: "properties.groupId", + readOnly: true, + type: { + name: "String" + } + }, + requiredMembers: { + serializedName: "properties.requiredMembers", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ServicesDescription: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServicesDescription", + modelProperties: { + ...ServicesResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ServicesProperties" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const LocationBasedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LocationBasedResource", + modelProperties: { + ...ResourceCore.type.modelProperties, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const TaggedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TaggedResource", + modelProperties: { + ...ResourceTags.type.modelProperties, + ...LocationBasedResource.type.modelProperties + } + } +}; + +export const WorkspacePatchResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspacePatchResource", + modelProperties: { + ...ResourceTags.type.modelProperties + } + } +}; + +export const DicomServicePatchResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DicomServicePatchResource", + modelProperties: { + ...ResourceTags.type.modelProperties + } + } +}; + +export const IotConnectorPatchResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IotConnectorPatchResource", + modelProperties: { + ...ResourceTags.type.modelProperties, + ...ServiceManagedIdentity.type.modelProperties + } + } +}; + +export const FhirServicePatchResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FhirServicePatchResource", + modelProperties: { + ...ResourceTags.type.modelProperties, + ...ServiceManagedIdentity.type.modelProperties + } + } +}; + +export const IotConnector: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IotConnector", + modelProperties: { + ...TaggedResource.type.modelProperties, + ...ServiceManagedIdentity.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + ingestionEndpointConfiguration: { + serializedName: "properties.ingestionEndpointConfiguration", + type: { + name: "Composite", + className: "IotEventHubIngestionEndpointConfiguration" + } + }, + deviceMapping: { + serializedName: "properties.deviceMapping", + type: { + name: "Composite", + className: "IotMappingProperties" + } + } + } + } +}; + +export const FhirService: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FhirService", + modelProperties: { + ...TaggedResource.type.modelProperties, + ...ServiceManagedIdentity.type.modelProperties, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + accessPolicies: { + serializedName: "properties.accessPolicies", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FhirServiceAccessPolicyEntry" + } + } + } + }, + acrConfiguration: { + serializedName: "properties.acrConfiguration", + type: { + name: "Composite", + className: "FhirServiceAcrConfiguration" + } + }, + authenticationConfiguration: { + serializedName: "properties.authenticationConfiguration", + type: { + name: "Composite", + className: "FhirServiceAuthenticationConfiguration" + } + }, + corsConfiguration: { + serializedName: "properties.corsConfiguration", + type: { + name: "Composite", + className: "FhirServiceCorsConfiguration" + } + }, + exportConfiguration: { + serializedName: "properties.exportConfiguration", + type: { + name: "Composite", + className: "FhirServiceExportConfiguration" + } + } + } + } +}; + +export const IotFhirDestinationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IotFhirDestinationProperties", + modelProperties: { + ...IotDestinationProperties.type.modelProperties, + resourceIdentityResolutionType: { + serializedName: "resourceIdentityResolutionType", + required: true, + type: { + name: "String" + } + }, + fhirServiceResourceId: { + serializedName: "fhirServiceResourceId", + required: true, + type: { + name: "String" + } + }, + fhirMapping: { + serializedName: "fhirMapping", + type: { + name: "Composite", + className: "IotMappingProperties" } } } @@ -931,3 +1638,108 @@ export const PrivateLinkResourceDescription: coreClient.CompositeMapper = { } } }; + +export const Workspace: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Workspace", + modelProperties: { + ...TaggedResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "WorkspaceProperties" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const DicomService: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DicomService", + modelProperties: { + ...TaggedResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + authenticationConfiguration: { + serializedName: "properties.authenticationConfiguration", + type: { + name: "Composite", + className: "DicomServiceAuthenticationConfiguration" + } + }, + serviceUrl: { + serializedName: "properties.serviceUrl", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const IotFhirDestination: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IotFhirDestination", + modelProperties: { + ...LocationBasedResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + resourceIdentityResolutionType: { + serializedName: "properties.resourceIdentityResolutionType", + required: true, + type: { + name: "String" + } + }, + fhirServiceResourceId: { + serializedName: "properties.fhirServiceResourceId", + required: true, + type: { + name: "String" + } + }, + fhirMapping: { + serializedName: "properties.fhirMapping", + type: { + name: "Composite", + className: "IotMappingProperties" + } + } + } + } +}; diff --git a/sdk/healthcareapis/arm-healthcareapis/src/models/parameters.ts b/sdk/healthcareapis/arm-healthcareapis/src/models/parameters.ts index c7d3d32dcb8e..e61b86bdb34c 100644 --- a/sdk/healthcareapis/arm-healthcareapis/src/models/parameters.ts +++ b/sdk/healthcareapis/arm-healthcareapis/src/models/parameters.ts @@ -15,7 +15,16 @@ import { ServicesDescription as ServicesDescriptionMapper, ServicesPatchDescription as ServicesPatchDescriptionMapper, CheckNameAvailabilityParameters as CheckNameAvailabilityParametersMapper, - PrivateEndpointConnection as PrivateEndpointConnectionMapper + PrivateEndpointConnection as PrivateEndpointConnectionMapper, + Workspace as WorkspaceMapper, + WorkspacePatchResource as WorkspacePatchResourceMapper, + DicomService as DicomServiceMapper, + DicomServicePatchResource as DicomServicePatchResourceMapper, + IotConnector as IotConnectorMapper, + IotConnectorPatchResource as IotConnectorPatchResourceMapper, + IotFhirDestination as IotFhirDestinationMapper, + FhirService as FhirServiceMapper, + FhirServicePatchResource as FhirServicePatchResourceMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -45,7 +54,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-01-11", + defaultValue: "2021-06-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -135,10 +144,10 @@ export const nextLink: OperationURLParameter = { skipEncoding: true }; -export const locationName: OperationURLParameter = { - parameterPath: "locationName", +export const privateEndpointConnectionName: OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", mapper: { - serializedName: "locationName", + serializedName: "privateEndpointConnectionName", required: true, type: { name: "String" @@ -146,10 +155,15 @@ export const locationName: OperationURLParameter = { } }; -export const operationResultId: OperationURLParameter = { - parameterPath: "operationResultId", +export const properties: OperationParameter = { + parameterPath: "properties", + mapper: PrivateEndpointConnectionMapper +}; + +export const groupName: OperationURLParameter = { + parameterPath: "groupName", mapper: { - serializedName: "operationResultId", + serializedName: "groupName", required: true, type: { name: "String" @@ -157,10 +171,14 @@ export const operationResultId: OperationURLParameter = { } }; -export const privateEndpointConnectionName: OperationURLParameter = { - parameterPath: "privateEndpointConnectionName", +export const workspaceName: OperationURLParameter = { + parameterPath: "workspaceName", mapper: { - serializedName: "privateEndpointConnectionName", + constraints: { + MaxLength: 24, + MinLength: 3 + }, + serializedName: "workspaceName", required: true, type: { name: "String" @@ -168,15 +186,126 @@ export const privateEndpointConnectionName: OperationURLParameter = { } }; -export const properties: OperationParameter = { - parameterPath: "properties", - mapper: PrivateEndpointConnectionMapper +export const workspace: OperationParameter = { + parameterPath: "workspace", + mapper: WorkspaceMapper }; -export const groupName: OperationURLParameter = { - parameterPath: "groupName", +export const workspacePatchResource: OperationParameter = { + parameterPath: "workspacePatchResource", + mapper: WorkspacePatchResourceMapper +}; + +export const dicomServiceName: OperationURLParameter = { + parameterPath: "dicomServiceName", mapper: { - serializedName: "groupName", + constraints: { + MaxLength: 24, + MinLength: 3 + }, + serializedName: "dicomServiceName", + required: true, + type: { + name: "String" + } + } +}; + +export const dicomservice: OperationParameter = { + parameterPath: "dicomservice", + mapper: DicomServiceMapper +}; + +export const dicomservicePatchResource: OperationParameter = { + parameterPath: "dicomservicePatchResource", + mapper: DicomServicePatchResourceMapper +}; + +export const iotConnectorName: OperationURLParameter = { + parameterPath: "iotConnectorName", + mapper: { + constraints: { + MaxLength: 24, + MinLength: 3 + }, + serializedName: "iotConnectorName", + required: true, + type: { + name: "String" + } + } +}; + +export const iotConnector: OperationParameter = { + parameterPath: "iotConnector", + mapper: IotConnectorMapper +}; + +export const iotConnectorPatchResource: OperationParameter = { + parameterPath: "iotConnectorPatchResource", + mapper: IotConnectorPatchResourceMapper +}; + +export const fhirDestinationName: OperationURLParameter = { + parameterPath: "fhirDestinationName", + mapper: { + constraints: { + MaxLength: 24, + MinLength: 3 + }, + serializedName: "fhirDestinationName", + required: true, + type: { + name: "String" + } + } +}; + +export const iotFhirDestination: OperationParameter = { + parameterPath: "iotFhirDestination", + mapper: IotFhirDestinationMapper +}; + +export const fhirServiceName: OperationURLParameter = { + parameterPath: "fhirServiceName", + mapper: { + constraints: { + MaxLength: 24, + MinLength: 3 + }, + serializedName: "fhirServiceName", + required: true, + type: { + name: "String" + } + } +}; + +export const fhirservice: OperationParameter = { + parameterPath: "fhirservice", + mapper: FhirServiceMapper +}; + +export const fhirservicePatchResource: OperationParameter = { + parameterPath: "fhirservicePatchResource", + mapper: FhirServicePatchResourceMapper +}; + +export const locationName: OperationURLParameter = { + parameterPath: "locationName", + mapper: { + serializedName: "locationName", + required: true, + type: { + name: "String" + } + } +}; + +export const operationResultId: OperationURLParameter = { + parameterPath: "operationResultId", + mapper: { + serializedName: "operationResultId", required: true, type: { name: "String" diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operations/dicomServices.ts b/sdk/healthcareapis/arm-healthcareapis/src/operations/dicomServices.ts new file mode 100644 index 000000000000..4774759caf89 --- /dev/null +++ b/sdk/healthcareapis/arm-healthcareapis/src/operations/dicomServices.ts @@ -0,0 +1,620 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { DicomServices } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { HealthcareApisManagementClient } from "../healthcareApisManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + DicomService, + DicomServicesListByWorkspaceNextOptionalParams, + DicomServicesListByWorkspaceOptionalParams, + DicomServicesListByWorkspaceResponse, + DicomServicesGetOptionalParams, + DicomServicesGetResponse, + DicomServicesCreateOrUpdateOptionalParams, + DicomServicesCreateOrUpdateResponse, + DicomServicePatchResource, + DicomServicesUpdateOptionalParams, + DicomServicesUpdateResponse, + DicomServicesDeleteOptionalParams, + DicomServicesListByWorkspaceNextResponse +} from "../models"; + +/// +/** Class containing DicomServices operations. */ +export class DicomServicesImpl implements DicomServices { + private readonly client: HealthcareApisManagementClient; + + /** + * Initialize a new instance of the class DicomServices class. + * @param client Reference to the service client + */ + constructor(client: HealthcareApisManagementClient) { + this.client = client; + } + + /** + * Lists all DICOM Services for the given workspace + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + public listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: DicomServicesListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByWorkspacePagingAll( + resourceGroupName, + workspaceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + ); + } + }; + } + + private async *listByWorkspacePagingPage( + resourceGroupName: string, + workspaceName: string, + options?: DicomServicesListByWorkspaceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByWorkspace( + resourceGroupName, + workspaceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByWorkspaceNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByWorkspacePagingAll( + resourceGroupName: string, + workspaceName: string, + options?: DicomServicesListByWorkspaceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * Lists all DICOM Services for the given workspace + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + private _listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: DicomServicesListByWorkspaceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listByWorkspaceOperationSpec + ); + } + + /** + * Gets the properties of the specified DICOM Service. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param dicomServiceName The name of DICOM Service resource. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + dicomServiceName: string, + options?: DicomServicesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, dicomServiceName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates a DICOM Service resource with the specified parameters. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param dicomServiceName The name of DICOM Service resource. + * @param dicomservice The parameters for creating or updating a Dicom Service resource. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + dicomServiceName: string, + dicomservice: DicomService, + options?: DicomServicesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + DicomServicesCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + workspaceName, + dicomServiceName, + dicomservice, + options + }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Creates or updates a DICOM Service resource with the specified parameters. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param dicomServiceName The name of DICOM Service resource. + * @param dicomservice The parameters for creating or updating a Dicom Service resource. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + dicomServiceName: string, + dicomservice: DicomService, + options?: DicomServicesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + dicomServiceName, + dicomservice, + options + ); + return poller.pollUntilDone(); + } + + /** + * Patch DICOM Service details. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param dicomServiceName The name of DICOM Service resource. + * @param workspaceName The name of workspace resource. + * @param dicomservicePatchResource The parameters for updating a Dicom Service. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + dicomServiceName: string, + workspaceName: string, + dicomservicePatchResource: DicomServicePatchResource, + options?: DicomServicesUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + DicomServicesUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + dicomServiceName, + workspaceName, + dicomservicePatchResource, + options + }, + updateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Patch DICOM Service details. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param dicomServiceName The name of DICOM Service resource. + * @param workspaceName The name of workspace resource. + * @param dicomservicePatchResource The parameters for updating a Dicom Service. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + dicomServiceName: string, + workspaceName: string, + dicomservicePatchResource: DicomServicePatchResource, + options?: DicomServicesUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + dicomServiceName, + workspaceName, + dicomservicePatchResource, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a DICOM Service. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param dicomServiceName The name of DICOM Service resource. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + dicomServiceName: string, + workspaceName: string, + options?: DicomServicesDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, dicomServiceName, workspaceName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Deletes a DICOM Service. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param dicomServiceName The name of DICOM Service resource. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + dicomServiceName: string, + workspaceName: string, + options?: DicomServicesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + dicomServiceName, + workspaceName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListByWorkspaceNext + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method. + * @param options The options parameters. + */ + private _listByWorkspaceNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: DicomServicesListByWorkspaceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listByWorkspaceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DicomServiceCollection + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DicomService + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.dicomServiceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DicomService + }, + 201: { + bodyMapper: Mappers.DicomService + }, + 202: { + bodyMapper: Mappers.DicomService + }, + 204: { + bodyMapper: Mappers.DicomService + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + requestBody: Parameters.dicomservice, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.dicomServiceName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.DicomService + }, + 201: { + bodyMapper: Mappers.DicomService + }, + 202: { + bodyMapper: Mappers.DicomService + }, + 204: { + bodyMapper: Mappers.DicomService + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + requestBody: Parameters.dicomservicePatchResource, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.dicomServiceName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.dicomServiceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DicomServiceCollection + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operations/fhirDestinations.ts b/sdk/healthcareapis/arm-healthcareapis/src/operations/fhirDestinations.ts new file mode 100644 index 000000000000..9283c62aaa06 --- /dev/null +++ b/sdk/healthcareapis/arm-healthcareapis/src/operations/fhirDestinations.ts @@ -0,0 +1,204 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { FhirDestinations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { HealthcareApisManagementClient } from "../healthcareApisManagementClient"; +import { + IotFhirDestination, + FhirDestinationsListByIotConnectorNextOptionalParams, + FhirDestinationsListByIotConnectorOptionalParams, + FhirDestinationsListByIotConnectorResponse, + FhirDestinationsListByIotConnectorNextResponse +} from "../models"; + +/// +/** Class containing FhirDestinations operations. */ +export class FhirDestinationsImpl implements FhirDestinations { + private readonly client: HealthcareApisManagementClient; + + /** + * Initialize a new instance of the class FhirDestinations class. + * @param client Reference to the service client + */ + constructor(client: HealthcareApisManagementClient) { + this.client = client; + } + + /** + * Lists all FHIR destinations for the given IoT Connector + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param iotConnectorName The name of IoT Connector resource. + * @param options The options parameters. + */ + public listByIotConnector( + resourceGroupName: string, + workspaceName: string, + iotConnectorName: string, + options?: FhirDestinationsListByIotConnectorOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByIotConnectorPagingAll( + resourceGroupName, + workspaceName, + iotConnectorName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByIotConnectorPagingPage( + resourceGroupName, + workspaceName, + iotConnectorName, + options + ); + } + }; + } + + private async *listByIotConnectorPagingPage( + resourceGroupName: string, + workspaceName: string, + iotConnectorName: string, + options?: FhirDestinationsListByIotConnectorOptionalParams + ): AsyncIterableIterator { + let result = await this._listByIotConnector( + resourceGroupName, + workspaceName, + iotConnectorName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByIotConnectorNext( + resourceGroupName, + workspaceName, + iotConnectorName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByIotConnectorPagingAll( + resourceGroupName: string, + workspaceName: string, + iotConnectorName: string, + options?: FhirDestinationsListByIotConnectorOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByIotConnectorPagingPage( + resourceGroupName, + workspaceName, + iotConnectorName, + options + )) { + yield* page; + } + } + + /** + * Lists all FHIR destinations for the given IoT Connector + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param iotConnectorName The name of IoT Connector resource. + * @param options The options parameters. + */ + private _listByIotConnector( + resourceGroupName: string, + workspaceName: string, + iotConnectorName: string, + options?: FhirDestinationsListByIotConnectorOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, iotConnectorName, options }, + listByIotConnectorOperationSpec + ); + } + + /** + * ListByIotConnectorNext + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param iotConnectorName The name of IoT Connector resource. + * @param nextLink The nextLink from the previous successful call to the ListByIotConnector method. + * @param options The options parameters. + */ + private _listByIotConnectorNext( + resourceGroupName: string, + workspaceName: string, + iotConnectorName: string, + nextLink: string, + options?: FhirDestinationsListByIotConnectorNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, iotConnectorName, nextLink, options }, + listByIotConnectorNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByIotConnectorOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.IotFhirDestinationCollection + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.iotConnectorName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByIotConnectorNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.IotFhirDestinationCollection + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.workspaceName, + Parameters.iotConnectorName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operations/fhirServices.ts b/sdk/healthcareapis/arm-healthcareapis/src/operations/fhirServices.ts new file mode 100644 index 000000000000..152efc9769a9 --- /dev/null +++ b/sdk/healthcareapis/arm-healthcareapis/src/operations/fhirServices.ts @@ -0,0 +1,620 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { FhirServices } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { HealthcareApisManagementClient } from "../healthcareApisManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + FhirService, + FhirServicesListByWorkspaceNextOptionalParams, + FhirServicesListByWorkspaceOptionalParams, + FhirServicesListByWorkspaceResponse, + FhirServicesGetOptionalParams, + FhirServicesGetResponse, + FhirServicesCreateOrUpdateOptionalParams, + FhirServicesCreateOrUpdateResponse, + FhirServicePatchResource, + FhirServicesUpdateOptionalParams, + FhirServicesUpdateResponse, + FhirServicesDeleteOptionalParams, + FhirServicesListByWorkspaceNextResponse +} from "../models"; + +/// +/** Class containing FhirServices operations. */ +export class FhirServicesImpl implements FhirServices { + private readonly client: HealthcareApisManagementClient; + + /** + * Initialize a new instance of the class FhirServices class. + * @param client Reference to the service client + */ + constructor(client: HealthcareApisManagementClient) { + this.client = client; + } + + /** + * Lists all FHIR Services for the given workspace + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + public listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: FhirServicesListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByWorkspacePagingAll( + resourceGroupName, + workspaceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + ); + } + }; + } + + private async *listByWorkspacePagingPage( + resourceGroupName: string, + workspaceName: string, + options?: FhirServicesListByWorkspaceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByWorkspace( + resourceGroupName, + workspaceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByWorkspaceNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByWorkspacePagingAll( + resourceGroupName: string, + workspaceName: string, + options?: FhirServicesListByWorkspaceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * Lists all FHIR Services for the given workspace + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + private _listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: FhirServicesListByWorkspaceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listByWorkspaceOperationSpec + ); + } + + /** + * Gets the properties of the specified FHIR Service. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param fhirServiceName The name of FHIR Service resource. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + fhirServiceName: string, + options?: FhirServicesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, fhirServiceName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates a FHIR Service resource with the specified parameters. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param fhirServiceName The name of FHIR Service resource. + * @param fhirservice The parameters for creating or updating a Fhir Service resource. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + fhirServiceName: string, + fhirservice: FhirService, + options?: FhirServicesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + FhirServicesCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + workspaceName, + fhirServiceName, + fhirservice, + options + }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Creates or updates a FHIR Service resource with the specified parameters. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param fhirServiceName The name of FHIR Service resource. + * @param fhirservice The parameters for creating or updating a Fhir Service resource. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + fhirServiceName: string, + fhirservice: FhirService, + options?: FhirServicesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + fhirServiceName, + fhirservice, + options + ); + return poller.pollUntilDone(); + } + + /** + * Patch FHIR Service details. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param fhirServiceName The name of FHIR Service resource. + * @param workspaceName The name of workspace resource. + * @param fhirservicePatchResource The parameters for updating a Fhir Service. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + fhirServiceName: string, + workspaceName: string, + fhirservicePatchResource: FhirServicePatchResource, + options?: FhirServicesUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + FhirServicesUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + fhirServiceName, + workspaceName, + fhirservicePatchResource, + options + }, + updateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Patch FHIR Service details. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param fhirServiceName The name of FHIR Service resource. + * @param workspaceName The name of workspace resource. + * @param fhirservicePatchResource The parameters for updating a Fhir Service. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + fhirServiceName: string, + workspaceName: string, + fhirservicePatchResource: FhirServicePatchResource, + options?: FhirServicesUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + fhirServiceName, + workspaceName, + fhirservicePatchResource, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a FHIR Service. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param fhirServiceName The name of FHIR Service resource. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + fhirServiceName: string, + workspaceName: string, + options?: FhirServicesDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, fhirServiceName, workspaceName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Deletes a FHIR Service. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param fhirServiceName The name of FHIR Service resource. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + fhirServiceName: string, + workspaceName: string, + options?: FhirServicesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + fhirServiceName, + workspaceName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListByWorkspaceNext + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method. + * @param options The options parameters. + */ + private _listByWorkspaceNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: FhirServicesListByWorkspaceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listByWorkspaceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FhirServiceCollection + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FhirService + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.fhirServiceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.FhirService + }, + 201: { + bodyMapper: Mappers.FhirService + }, + 202: { + bodyMapper: Mappers.FhirService + }, + 204: { + bodyMapper: Mappers.FhirService + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + requestBody: Parameters.fhirservice, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.fhirServiceName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.FhirService + }, + 201: { + bodyMapper: Mappers.FhirService + }, + 202: { + bodyMapper: Mappers.FhirService + }, + 204: { + bodyMapper: Mappers.FhirService + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + requestBody: Parameters.fhirservicePatchResource, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.fhirServiceName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.fhirServiceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FhirServiceCollection + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operations/index.ts b/sdk/healthcareapis/arm-healthcareapis/src/operations/index.ts index 6bdd9cb1c48f..e5c0e99e7d61 100644 --- a/sdk/healthcareapis/arm-healthcareapis/src/operations/index.ts +++ b/sdk/healthcareapis/arm-healthcareapis/src/operations/index.ts @@ -7,7 +7,13 @@ */ export * from "./services"; -export * from "./operations"; -export * from "./operationResults"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; +export * from "./workspaces"; +export * from "./dicomServices"; +export * from "./iotConnectors"; +export * from "./fhirDestinations"; +export * from "./iotConnectorFhirDestination"; +export * from "./fhirServices"; +export * from "./operations"; +export * from "./operationResults"; diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operations/iotConnectorFhirDestination.ts b/sdk/healthcareapis/arm-healthcareapis/src/operations/iotConnectorFhirDestination.ts new file mode 100644 index 000000000000..11f5ded31d9d --- /dev/null +++ b/sdk/healthcareapis/arm-healthcareapis/src/operations/iotConnectorFhirDestination.ts @@ -0,0 +1,356 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { IotConnectorFhirDestination } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { HealthcareApisManagementClient } from "../healthcareApisManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + IotConnectorFhirDestinationGetOptionalParams, + IotConnectorFhirDestinationGetResponse, + IotFhirDestination, + IotConnectorFhirDestinationCreateOrUpdateOptionalParams, + IotConnectorFhirDestinationCreateOrUpdateResponse, + IotConnectorFhirDestinationDeleteOptionalParams +} from "../models"; + +/** Class containing IotConnectorFhirDestination operations. */ +export class IotConnectorFhirDestinationImpl + implements IotConnectorFhirDestination { + private readonly client: HealthcareApisManagementClient; + + /** + * Initialize a new instance of the class IotConnectorFhirDestination class. + * @param client Reference to the service client + */ + constructor(client: HealthcareApisManagementClient) { + this.client = client; + } + + /** + * Gets the properties of the specified Iot Connector FHIR destination. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param iotConnectorName The name of IoT Connector resource. + * @param fhirDestinationName The name of IoT Connector FHIR destination resource. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + iotConnectorName: string, + fhirDestinationName: string, + options?: IotConnectorFhirDestinationGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + iotConnectorName, + fhirDestinationName, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates an IoT Connector FHIR destination resource with the specified parameters. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param iotConnectorName The name of IoT Connector resource. + * @param fhirDestinationName The name of IoT Connector FHIR destination resource. + * @param iotFhirDestination The parameters for creating or updating an IoT Connector FHIR destination + * resource. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + iotConnectorName: string, + fhirDestinationName: string, + iotFhirDestination: IotFhirDestination, + options?: IotConnectorFhirDestinationCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + IotConnectorFhirDestinationCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + workspaceName, + iotConnectorName, + fhirDestinationName, + iotFhirDestination, + options + }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Creates or updates an IoT Connector FHIR destination resource with the specified parameters. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param iotConnectorName The name of IoT Connector resource. + * @param fhirDestinationName The name of IoT Connector FHIR destination resource. + * @param iotFhirDestination The parameters for creating or updating an IoT Connector FHIR destination + * resource. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + iotConnectorName: string, + fhirDestinationName: string, + iotFhirDestination: IotFhirDestination, + options?: IotConnectorFhirDestinationCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + iotConnectorName, + fhirDestinationName, + iotFhirDestination, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes an IoT Connector FHIR destination. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param iotConnectorName The name of IoT Connector resource. + * @param fhirDestinationName The name of IoT Connector FHIR destination resource. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + iotConnectorName: string, + fhirDestinationName: string, + options?: IotConnectorFhirDestinationDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + workspaceName, + iotConnectorName, + fhirDestinationName, + options + }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Deletes an IoT Connector FHIR destination. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param iotConnectorName The name of IoT Connector resource. + * @param fhirDestinationName The name of IoT Connector FHIR destination resource. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + iotConnectorName: string, + fhirDestinationName: string, + options?: IotConnectorFhirDestinationDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + iotConnectorName, + fhirDestinationName, + options + ); + return poller.pollUntilDone(); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.IotFhirDestination + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.iotConnectorName, + Parameters.fhirDestinationName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.IotFhirDestination + }, + 201: { + bodyMapper: Mappers.IotFhirDestination + }, + 202: { + bodyMapper: Mappers.IotFhirDestination + }, + 204: { + bodyMapper: Mappers.IotFhirDestination + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + requestBody: Parameters.iotFhirDestination, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.iotConnectorName, + Parameters.fhirDestinationName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.iotConnectorName, + Parameters.fhirDestinationName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operations/iotConnectors.ts b/sdk/healthcareapis/arm-healthcareapis/src/operations/iotConnectors.ts new file mode 100644 index 000000000000..95c368aa3ae0 --- /dev/null +++ b/sdk/healthcareapis/arm-healthcareapis/src/operations/iotConnectors.ts @@ -0,0 +1,620 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { IotConnectors } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { HealthcareApisManagementClient } from "../healthcareApisManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + IotConnector, + IotConnectorsListByWorkspaceNextOptionalParams, + IotConnectorsListByWorkspaceOptionalParams, + IotConnectorsListByWorkspaceResponse, + IotConnectorsGetOptionalParams, + IotConnectorsGetResponse, + IotConnectorsCreateOrUpdateOptionalParams, + IotConnectorsCreateOrUpdateResponse, + IotConnectorPatchResource, + IotConnectorsUpdateOptionalParams, + IotConnectorsUpdateResponse, + IotConnectorsDeleteOptionalParams, + IotConnectorsListByWorkspaceNextResponse +} from "../models"; + +/// +/** Class containing IotConnectors operations. */ +export class IotConnectorsImpl implements IotConnectors { + private readonly client: HealthcareApisManagementClient; + + /** + * Initialize a new instance of the class IotConnectors class. + * @param client Reference to the service client + */ + constructor(client: HealthcareApisManagementClient) { + this.client = client; + } + + /** + * Lists all IoT Connectors for the given workspace + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + public listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: IotConnectorsListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByWorkspacePagingAll( + resourceGroupName, + workspaceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + ); + } + }; + } + + private async *listByWorkspacePagingPage( + resourceGroupName: string, + workspaceName: string, + options?: IotConnectorsListByWorkspaceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByWorkspace( + resourceGroupName, + workspaceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByWorkspaceNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByWorkspacePagingAll( + resourceGroupName: string, + workspaceName: string, + options?: IotConnectorsListByWorkspaceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * Lists all IoT Connectors for the given workspace + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + private _listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: IotConnectorsListByWorkspaceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listByWorkspaceOperationSpec + ); + } + + /** + * Gets the properties of the specified IoT Connector. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param iotConnectorName The name of IoT Connector resource. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + iotConnectorName: string, + options?: IotConnectorsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, iotConnectorName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates an IoT Connector resource with the specified parameters. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param iotConnectorName The name of IoT Connector resource. + * @param iotConnector The parameters for creating or updating an IoT Connectors resource. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + iotConnectorName: string, + iotConnector: IotConnector, + options?: IotConnectorsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + IotConnectorsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + workspaceName, + iotConnectorName, + iotConnector, + options + }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Creates or updates an IoT Connector resource with the specified parameters. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param iotConnectorName The name of IoT Connector resource. + * @param iotConnector The parameters for creating or updating an IoT Connectors resource. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + iotConnectorName: string, + iotConnector: IotConnector, + options?: IotConnectorsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + iotConnectorName, + iotConnector, + options + ); + return poller.pollUntilDone(); + } + + /** + * Patch an IoT Connector. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param iotConnectorName The name of IoT Connector resource. + * @param workspaceName The name of workspace resource. + * @param iotConnectorPatchResource The parameters for updating an IoT Connector. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + iotConnectorName: string, + workspaceName: string, + iotConnectorPatchResource: IotConnectorPatchResource, + options?: IotConnectorsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + IotConnectorsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + iotConnectorName, + workspaceName, + iotConnectorPatchResource, + options + }, + updateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Patch an IoT Connector. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param iotConnectorName The name of IoT Connector resource. + * @param workspaceName The name of workspace resource. + * @param iotConnectorPatchResource The parameters for updating an IoT Connector. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + iotConnectorName: string, + workspaceName: string, + iotConnectorPatchResource: IotConnectorPatchResource, + options?: IotConnectorsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + iotConnectorName, + workspaceName, + iotConnectorPatchResource, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes an IoT Connector. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param iotConnectorName The name of IoT Connector resource. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + iotConnectorName: string, + workspaceName: string, + options?: IotConnectorsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, iotConnectorName, workspaceName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Deletes an IoT Connector. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param iotConnectorName The name of IoT Connector resource. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + iotConnectorName: string, + workspaceName: string, + options?: IotConnectorsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + iotConnectorName, + workspaceName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListByWorkspaceNext + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method. + * @param options The options parameters. + */ + private _listByWorkspaceNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: IotConnectorsListByWorkspaceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listByWorkspaceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.IotConnectorCollection + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.IotConnector + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.iotConnectorName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.IotConnector + }, + 201: { + bodyMapper: Mappers.IotConnector + }, + 202: { + bodyMapper: Mappers.IotConnector + }, + 204: { + bodyMapper: Mappers.IotConnector + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + requestBody: Parameters.iotConnector, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.iotConnectorName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.IotConnector + }, + 201: { + bodyMapper: Mappers.IotConnector + }, + 202: { + bodyMapper: Mappers.IotConnector + }, + 204: { + bodyMapper: Mappers.IotConnector + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + requestBody: Parameters.iotConnectorPatchResource, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.iotConnectorName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.iotConnectorName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.IotConnectorCollection + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operations/operationResults.ts b/sdk/healthcareapis/arm-healthcareapis/src/operations/operationResults.ts index 396270531353..1625e8d1c479 100644 --- a/sdk/healthcareapis/arm-healthcareapis/src/operations/operationResults.ts +++ b/sdk/healthcareapis/arm-healthcareapis/src/operations/operationResults.ts @@ -56,9 +56,6 @@ const getOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.OperationResultsDescription }, - 404: { - bodyMapper: Mappers.ErrorDetails - }, default: { bodyMapper: Mappers.ErrorDetails } diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operations/operations.ts b/sdk/healthcareapis/arm-healthcareapis/src/operations/operations.ts index 76ba0a705c02..0a00878508d1 100644 --- a/sdk/healthcareapis/arm-healthcareapis/src/operations/operations.ts +++ b/sdk/healthcareapis/arm-healthcareapis/src/operations/operations.ts @@ -13,7 +13,7 @@ import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { HealthcareApisManagementClient } from "../healthcareApisManagementClient"; import { - Operation, + OperationDetail, OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, @@ -34,12 +34,12 @@ export class OperationsImpl implements Operations { } /** - * Lists all of the available Healthcare service REST API operations. + * Lists all of the available operations supported by Microsoft Healthcare resource provider. * @param options The options parameters. */ public list( options?: OperationsListOptionalParams - ): PagedAsyncIterableIterator { + ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -56,7 +56,7 @@ export class OperationsImpl implements Operations { private async *listPagingPage( options?: OperationsListOptionalParams - ): AsyncIterableIterator { + ): AsyncIterableIterator { let result = await this._list(options); yield result.value || []; let continuationToken = result.nextLink; @@ -69,14 +69,14 @@ export class OperationsImpl implements Operations { private async *listPagingAll( options?: OperationsListOptionalParams - ): AsyncIterableIterator { + ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; } } /** - * Lists all of the available Healthcare service REST API operations. + * Lists all of the available operations supported by Microsoft Healthcare resource provider. * @param options The options parameters. */ private _list( @@ -108,7 +108,7 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.ListOperations }, default: { bodyMapper: Mappers.ErrorDetails @@ -124,7 +124,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.ListOperations }, default: { bodyMapper: Mappers.ErrorDetails diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operations/workspaces.ts b/sdk/healthcareapis/arm-healthcareapis/src/operations/workspaces.ts new file mode 100644 index 000000000000..561788776530 --- /dev/null +++ b/sdk/healthcareapis/arm-healthcareapis/src/operations/workspaces.ts @@ -0,0 +1,674 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Workspaces } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { HealthcareApisManagementClient } from "../healthcareApisManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + Workspace, + WorkspacesListBySubscriptionNextOptionalParams, + WorkspacesListBySubscriptionOptionalParams, + WorkspacesListByResourceGroupNextOptionalParams, + WorkspacesListByResourceGroupOptionalParams, + WorkspacesListBySubscriptionResponse, + WorkspacesListByResourceGroupResponse, + WorkspacesGetOptionalParams, + WorkspacesGetResponse, + WorkspacesCreateOrUpdateOptionalParams, + WorkspacesCreateOrUpdateResponse, + WorkspacePatchResource, + WorkspacesUpdateOptionalParams, + WorkspacesUpdateResponse, + WorkspacesDeleteOptionalParams, + WorkspacesListBySubscriptionNextResponse, + WorkspacesListByResourceGroupNextResponse +} from "../models"; + +/// +/** Class containing Workspaces operations. */ +export class WorkspacesImpl implements Workspaces { + private readonly client: HealthcareApisManagementClient; + + /** + * Initialize a new instance of the class Workspaces class. + * @param client Reference to the service client + */ + constructor(client: HealthcareApisManagementClient) { + this.client = client; + } + + /** + * Lists all the available workspaces under the specified subscription. + * @param options The options parameters. + */ + public listBySubscription( + options?: WorkspacesListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySubscriptionPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listBySubscriptionPagingPage(options); + } + }; + } + + private async *listBySubscriptionPagingPage( + options?: WorkspacesListBySubscriptionOptionalParams + ): AsyncIterableIterator { + let result = await this._listBySubscription(options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listBySubscriptionPagingAll( + options?: WorkspacesListBySubscriptionOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + + /** + * Lists all the available workspaces under the specified resource group. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param options The options parameters. + */ + public listByResourceGroup( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByResourceGroupPagingPage(resourceGroupName, options); + } + }; + } + + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams + ): AsyncIterableIterator { + let result = await this._listByResourceGroup(resourceGroupName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByResourceGroupNext( + resourceGroupName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options + )) { + yield* page; + } + } + + /** + * Lists all the available workspaces under the specified subscription. + * @param options The options parameters. + */ + private _listBySubscription( + options?: WorkspacesListBySubscriptionOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec + ); + } + + /** + * Lists all the available workspaces under the specified resource group. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param options The options parameters. + */ + private _listByResourceGroup( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec + ); + } + + /** + * Gets the properties of the specified workspace. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates a workspace resource with the specified parameters. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param workspace The parameters for creating or updating a healthcare workspace. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + workspace: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, workspace, options }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Creates or updates a workspace resource with the specified parameters. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param workspace The parameters for creating or updating a healthcare workspace. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + workspace: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + workspace, + options + ); + return poller.pollUntilDone(); + } + + /** + * Patch workspace details. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param workspacePatchResource The parameters for updating a specified workspace. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + workspaceName: string, + workspacePatchResource: WorkspacePatchResource, + options?: WorkspacesUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, workspacePatchResource, options }, + updateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Patch workspace details. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param workspacePatchResource The parameters for updating a specified workspace. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + workspacePatchResource: WorkspacePatchResource, + options?: WorkspacesUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + workspacePatchResource, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a specified workspace. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Deletes a specified workspace. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: WorkspacesListBySubscriptionNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec + ); + } + + /** + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. + */ + private _listByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: WorkspacesListByResourceGroupNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listByResourceGroupNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/workspaces", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceList + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceList + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.Workspace + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.Workspace + }, + 201: { + bodyMapper: Mappers.Workspace + }, + 202: { + bodyMapper: Mappers.Workspace + }, + 204: { + bodyMapper: Mappers.Workspace + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + requestBody: Parameters.workspace, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.Workspace + }, + 201: { + bodyMapper: Mappers.Workspace + }, + 202: { + bodyMapper: Mappers.Workspace + }, + 204: { + bodyMapper: Mappers.Workspace + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + requestBody: Parameters.workspacePatchResource, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceList + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceList + }, + default: { + bodyMapper: Mappers.ErrorDetails + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/dicomServices.ts b/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/dicomServices.ts new file mode 100644 index 000000000000..08f12dd77986 --- /dev/null +++ b/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/dicomServices.ts @@ -0,0 +1,147 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + DicomService, + DicomServicesListByWorkspaceOptionalParams, + DicomServicesGetOptionalParams, + DicomServicesGetResponse, + DicomServicesCreateOrUpdateOptionalParams, + DicomServicesCreateOrUpdateResponse, + DicomServicePatchResource, + DicomServicesUpdateOptionalParams, + DicomServicesUpdateResponse, + DicomServicesDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a DicomServices. */ +export interface DicomServices { + /** + * Lists all DICOM Services for the given workspace + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: DicomServicesListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the properties of the specified DICOM Service. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param dicomServiceName The name of DICOM Service resource. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + dicomServiceName: string, + options?: DicomServicesGetOptionalParams + ): Promise; + /** + * Creates or updates a DICOM Service resource with the specified parameters. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param dicomServiceName The name of DICOM Service resource. + * @param dicomservice The parameters for creating or updating a Dicom Service resource. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + dicomServiceName: string, + dicomservice: DicomService, + options?: DicomServicesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + DicomServicesCreateOrUpdateResponse + > + >; + /** + * Creates or updates a DICOM Service resource with the specified parameters. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param dicomServiceName The name of DICOM Service resource. + * @param dicomservice The parameters for creating or updating a Dicom Service resource. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + dicomServiceName: string, + dicomservice: DicomService, + options?: DicomServicesCreateOrUpdateOptionalParams + ): Promise; + /** + * Patch DICOM Service details. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param dicomServiceName The name of DICOM Service resource. + * @param workspaceName The name of workspace resource. + * @param dicomservicePatchResource The parameters for updating a Dicom Service. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + dicomServiceName: string, + workspaceName: string, + dicomservicePatchResource: DicomServicePatchResource, + options?: DicomServicesUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + DicomServicesUpdateResponse + > + >; + /** + * Patch DICOM Service details. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param dicomServiceName The name of DICOM Service resource. + * @param workspaceName The name of workspace resource. + * @param dicomservicePatchResource The parameters for updating a Dicom Service. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + dicomServiceName: string, + workspaceName: string, + dicomservicePatchResource: DicomServicePatchResource, + options?: DicomServicesUpdateOptionalParams + ): Promise; + /** + * Deletes a DICOM Service. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param dicomServiceName The name of DICOM Service resource. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + dicomServiceName: string, + workspaceName: string, + options?: DicomServicesDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a DICOM Service. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param dicomServiceName The name of DICOM Service resource. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + dicomServiceName: string, + workspaceName: string, + options?: DicomServicesDeleteOptionalParams + ): Promise; +} diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/fhirDestinations.ts b/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/fhirDestinations.ts new file mode 100644 index 000000000000..ef831531edf2 --- /dev/null +++ b/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/fhirDestinations.ts @@ -0,0 +1,31 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + IotFhirDestination, + FhirDestinationsListByIotConnectorOptionalParams +} from "../models"; + +/// +/** Interface representing a FhirDestinations. */ +export interface FhirDestinations { + /** + * Lists all FHIR destinations for the given IoT Connector + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param iotConnectorName The name of IoT Connector resource. + * @param options The options parameters. + */ + listByIotConnector( + resourceGroupName: string, + workspaceName: string, + iotConnectorName: string, + options?: FhirDestinationsListByIotConnectorOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/fhirServices.ts b/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/fhirServices.ts new file mode 100644 index 000000000000..c186f2b8894a --- /dev/null +++ b/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/fhirServices.ts @@ -0,0 +1,147 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + FhirService, + FhirServicesListByWorkspaceOptionalParams, + FhirServicesGetOptionalParams, + FhirServicesGetResponse, + FhirServicesCreateOrUpdateOptionalParams, + FhirServicesCreateOrUpdateResponse, + FhirServicePatchResource, + FhirServicesUpdateOptionalParams, + FhirServicesUpdateResponse, + FhirServicesDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a FhirServices. */ +export interface FhirServices { + /** + * Lists all FHIR Services for the given workspace + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: FhirServicesListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the properties of the specified FHIR Service. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param fhirServiceName The name of FHIR Service resource. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + fhirServiceName: string, + options?: FhirServicesGetOptionalParams + ): Promise; + /** + * Creates or updates a FHIR Service resource with the specified parameters. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param fhirServiceName The name of FHIR Service resource. + * @param fhirservice The parameters for creating or updating a Fhir Service resource. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + fhirServiceName: string, + fhirservice: FhirService, + options?: FhirServicesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + FhirServicesCreateOrUpdateResponse + > + >; + /** + * Creates or updates a FHIR Service resource with the specified parameters. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param fhirServiceName The name of FHIR Service resource. + * @param fhirservice The parameters for creating or updating a Fhir Service resource. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + fhirServiceName: string, + fhirservice: FhirService, + options?: FhirServicesCreateOrUpdateOptionalParams + ): Promise; + /** + * Patch FHIR Service details. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param fhirServiceName The name of FHIR Service resource. + * @param workspaceName The name of workspace resource. + * @param fhirservicePatchResource The parameters for updating a Fhir Service. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + fhirServiceName: string, + workspaceName: string, + fhirservicePatchResource: FhirServicePatchResource, + options?: FhirServicesUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + FhirServicesUpdateResponse + > + >; + /** + * Patch FHIR Service details. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param fhirServiceName The name of FHIR Service resource. + * @param workspaceName The name of workspace resource. + * @param fhirservicePatchResource The parameters for updating a Fhir Service. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + fhirServiceName: string, + workspaceName: string, + fhirservicePatchResource: FhirServicePatchResource, + options?: FhirServicesUpdateOptionalParams + ): Promise; + /** + * Deletes a FHIR Service. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param fhirServiceName The name of FHIR Service resource. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + fhirServiceName: string, + workspaceName: string, + options?: FhirServicesDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a FHIR Service. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param fhirServiceName The name of FHIR Service resource. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + fhirServiceName: string, + workspaceName: string, + options?: FhirServicesDeleteOptionalParams + ): Promise; +} diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/index.ts b/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/index.ts index 6bdd9cb1c48f..e5c0e99e7d61 100644 --- a/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/index.ts +++ b/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/index.ts @@ -7,7 +7,13 @@ */ export * from "./services"; -export * from "./operations"; -export * from "./operationResults"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; +export * from "./workspaces"; +export * from "./dicomServices"; +export * from "./iotConnectors"; +export * from "./fhirDestinations"; +export * from "./iotConnectorFhirDestination"; +export * from "./fhirServices"; +export * from "./operations"; +export * from "./operationResults"; diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/iotConnectorFhirDestination.ts b/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/iotConnectorFhirDestination.ts new file mode 100644 index 000000000000..5c31da35e2f2 --- /dev/null +++ b/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/iotConnectorFhirDestination.ts @@ -0,0 +1,107 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + IotConnectorFhirDestinationGetOptionalParams, + IotConnectorFhirDestinationGetResponse, + IotFhirDestination, + IotConnectorFhirDestinationCreateOrUpdateOptionalParams, + IotConnectorFhirDestinationCreateOrUpdateResponse, + IotConnectorFhirDestinationDeleteOptionalParams +} from "../models"; + +/** Interface representing a IotConnectorFhirDestination. */ +export interface IotConnectorFhirDestination { + /** + * Gets the properties of the specified Iot Connector FHIR destination. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param iotConnectorName The name of IoT Connector resource. + * @param fhirDestinationName The name of IoT Connector FHIR destination resource. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + iotConnectorName: string, + fhirDestinationName: string, + options?: IotConnectorFhirDestinationGetOptionalParams + ): Promise; + /** + * Creates or updates an IoT Connector FHIR destination resource with the specified parameters. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param iotConnectorName The name of IoT Connector resource. + * @param fhirDestinationName The name of IoT Connector FHIR destination resource. + * @param iotFhirDestination The parameters for creating or updating an IoT Connector FHIR destination + * resource. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + iotConnectorName: string, + fhirDestinationName: string, + iotFhirDestination: IotFhirDestination, + options?: IotConnectorFhirDestinationCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + IotConnectorFhirDestinationCreateOrUpdateResponse + > + >; + /** + * Creates or updates an IoT Connector FHIR destination resource with the specified parameters. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param iotConnectorName The name of IoT Connector resource. + * @param fhirDestinationName The name of IoT Connector FHIR destination resource. + * @param iotFhirDestination The parameters for creating or updating an IoT Connector FHIR destination + * resource. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + iotConnectorName: string, + fhirDestinationName: string, + iotFhirDestination: IotFhirDestination, + options?: IotConnectorFhirDestinationCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes an IoT Connector FHIR destination. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param iotConnectorName The name of IoT Connector resource. + * @param fhirDestinationName The name of IoT Connector FHIR destination resource. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + iotConnectorName: string, + fhirDestinationName: string, + options?: IotConnectorFhirDestinationDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes an IoT Connector FHIR destination. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param iotConnectorName The name of IoT Connector resource. + * @param fhirDestinationName The name of IoT Connector FHIR destination resource. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + iotConnectorName: string, + fhirDestinationName: string, + options?: IotConnectorFhirDestinationDeleteOptionalParams + ): Promise; +} diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/iotConnectors.ts b/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/iotConnectors.ts new file mode 100644 index 000000000000..795077e37e01 --- /dev/null +++ b/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/iotConnectors.ts @@ -0,0 +1,147 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + IotConnector, + IotConnectorsListByWorkspaceOptionalParams, + IotConnectorsGetOptionalParams, + IotConnectorsGetResponse, + IotConnectorsCreateOrUpdateOptionalParams, + IotConnectorsCreateOrUpdateResponse, + IotConnectorPatchResource, + IotConnectorsUpdateOptionalParams, + IotConnectorsUpdateResponse, + IotConnectorsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a IotConnectors. */ +export interface IotConnectors { + /** + * Lists all IoT Connectors for the given workspace + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: IotConnectorsListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the properties of the specified IoT Connector. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param iotConnectorName The name of IoT Connector resource. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + iotConnectorName: string, + options?: IotConnectorsGetOptionalParams + ): Promise; + /** + * Creates or updates an IoT Connector resource with the specified parameters. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param iotConnectorName The name of IoT Connector resource. + * @param iotConnector The parameters for creating or updating an IoT Connectors resource. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + iotConnectorName: string, + iotConnector: IotConnector, + options?: IotConnectorsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + IotConnectorsCreateOrUpdateResponse + > + >; + /** + * Creates or updates an IoT Connector resource with the specified parameters. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param iotConnectorName The name of IoT Connector resource. + * @param iotConnector The parameters for creating or updating an IoT Connectors resource. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + iotConnectorName: string, + iotConnector: IotConnector, + options?: IotConnectorsCreateOrUpdateOptionalParams + ): Promise; + /** + * Patch an IoT Connector. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param iotConnectorName The name of IoT Connector resource. + * @param workspaceName The name of workspace resource. + * @param iotConnectorPatchResource The parameters for updating an IoT Connector. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + iotConnectorName: string, + workspaceName: string, + iotConnectorPatchResource: IotConnectorPatchResource, + options?: IotConnectorsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + IotConnectorsUpdateResponse + > + >; + /** + * Patch an IoT Connector. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param iotConnectorName The name of IoT Connector resource. + * @param workspaceName The name of workspace resource. + * @param iotConnectorPatchResource The parameters for updating an IoT Connector. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + iotConnectorName: string, + workspaceName: string, + iotConnectorPatchResource: IotConnectorPatchResource, + options?: IotConnectorsUpdateOptionalParams + ): Promise; + /** + * Deletes an IoT Connector. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param iotConnectorName The name of IoT Connector resource. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + iotConnectorName: string, + workspaceName: string, + options?: IotConnectorsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes an IoT Connector. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param iotConnectorName The name of IoT Connector resource. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + iotConnectorName: string, + workspaceName: string, + options?: IotConnectorsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/operations.ts b/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/operations.ts index 689300dc8de4..155485f19679 100644 --- a/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/operations.ts +++ b/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/operations.ts @@ -7,16 +7,16 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { Operation, OperationsListOptionalParams } from "../models"; +import { OperationDetail, OperationsListOptionalParams } from "../models"; /// /** Interface representing a Operations. */ export interface Operations { /** - * Lists all of the available Healthcare service REST API operations. + * Lists all of the available operations supported by Microsoft Healthcare resource provider. * @param options The options parameters. */ list( options?: OperationsListOptionalParams - ): PagedAsyncIterableIterator; + ): PagedAsyncIterableIterator; } diff --git a/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/workspaces.ts b/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/workspaces.ts new file mode 100644 index 000000000000..21d99bf84579 --- /dev/null +++ b/sdk/healthcareapis/arm-healthcareapis/src/operationsInterfaces/workspaces.ts @@ -0,0 +1,139 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + Workspace, + WorkspacesListBySubscriptionOptionalParams, + WorkspacesListByResourceGroupOptionalParams, + WorkspacesGetOptionalParams, + WorkspacesGetResponse, + WorkspacesCreateOrUpdateOptionalParams, + WorkspacesCreateOrUpdateResponse, + WorkspacePatchResource, + WorkspacesUpdateOptionalParams, + WorkspacesUpdateResponse, + WorkspacesDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a Workspaces. */ +export interface Workspaces { + /** + * Lists all the available workspaces under the specified subscription. + * @param options The options parameters. + */ + listBySubscription( + options?: WorkspacesListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator; + /** + * Lists all the available workspaces under the specified resource group. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param options The options parameters. + */ + listByResourceGroup( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the properties of the specified workspace. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesGetOptionalParams + ): Promise; + /** + * Creates or updates a workspace resource with the specified parameters. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param workspace The parameters for creating or updating a healthcare workspace. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + workspace: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesCreateOrUpdateResponse + > + >; + /** + * Creates or updates a workspace resource with the specified parameters. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param workspace The parameters for creating or updating a healthcare workspace. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + workspace: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise; + /** + * Patch workspace details. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param workspacePatchResource The parameters for updating a specified workspace. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + workspaceName: string, + workspacePatchResource: WorkspacePatchResource, + options?: WorkspacesUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesUpdateResponse + > + >; + /** + * Patch workspace details. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param workspacePatchResource The parameters for updating a specified workspace. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + workspacePatchResource: WorkspacePatchResource, + options?: WorkspacesUpdateOptionalParams + ): Promise; + /** + * Deletes a specified workspace. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a specified workspace. + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDeleteOptionalParams + ): Promise; +} diff --git a/sdk/healthcareapis/arm-healthcareapis/tsconfig.json b/sdk/healthcareapis/arm-healthcareapis/tsconfig.json index 178de2f93b1d..3e6ae96443f3 100644 --- a/sdk/healthcareapis/arm-healthcareapis/tsconfig.json +++ b/sdk/healthcareapis/arm-healthcareapis/tsconfig.json @@ -9,12 +9,19 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { "@azure/arm-healthcareapis": ["./src/index"] } + "importHelpers": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"], - "exclude": ["node_modules"] -} + "include": [ + "./src/**/*.ts", + "./test/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file