From 5f1d4046f59c9d5f6ee4b828b61a492a9f97412d Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 23 Aug 2022 14:14:35 +0000 Subject: [PATCH] CodeGen from PR 19948 in Azure/azure-rest-api-specs Merge a6856bc2009913cd80dac031b0966608be0d5a7e into 9c0c34231a47458101c2867111b61e183dfba84f --- .../CHANGELOG.md | 4 +- .../README.md | 4 +- .../SAMPLE.md | 261 +++- .../pom.xml | 2 +- .../healthcareapis/HealthcareApisManager.java | 113 +- .../AnalyticsConnectorOperationsClient.java | 96 ++ .../fluent/AnalyticsConnectorsClient.java | 213 +++ .../HealthcareApisManagementClient.java | 14 + .../models/AnalyticsConnectorInner.java | 192 +++ .../models/AnalyticsConnectorProperties.java | 148 +++ .../fluent/models/DicomServiceInner.java | 27 +- .../fluent/models/DicomServiceProperties.java | 36 +- .../fluent/models/FhirServiceInner.java | 27 +- .../fluent/models/FhirServiceProperties.java | 36 +- .../fluent/models/IotConnectorInner.java | 3 +- .../fluent/models/OperationDetailInner.java | 7 +- .../PrivateEndpointConnectionProperties.java | 3 +- .../ServicesPropertiesUpdateParameters.java | 3 +- .../AnalyticsConnectorImpl.java | 229 ++++ ...nalyticsConnectorOperationsClientImpl.java | 425 ++++++ .../AnalyticsConnectorOperationsImpl.java | 70 + .../AnalyticsConnectorsClientImpl.java | 1157 +++++++++++++++++ .../AnalyticsConnectorsImpl.java | 200 +++ .../implementation/DicomServiceImpl.java | 14 + .../DicomServicesClientImpl.java | 15 +- .../FhirDestinationsClientImpl.java | 6 +- .../implementation/FhirServiceImpl.java | 14 + .../FhirServicesClientImpl.java | 15 +- ...HealthcareApisManagementClientBuilder.java | 37 +- .../HealthcareApisManagementClientImpl.java | 37 +- ...otConnectorFhirDestinationsClientImpl.java | 9 +- .../implementation/IotConnectorImpl.java | 4 + .../IotConnectorsClientImpl.java | 15 +- .../IotFhirDestinationImpl.java | 4 + .../OperationResultsClientImpl.java | 10 +- .../implementation/OperationsClientImpl.java | 6 +- ...vateEndpointConnectionDescriptionImpl.java | 4 + .../PrivateEndpointConnectionsClientImpl.java | 9 +- .../PrivateLinkResourcesClientImpl.java | 18 +- .../implementation/ServicesClientImpl.java | 30 +- .../ServicesDescriptionImpl.java | 4 + .../implementation/WorkspaceImpl.java | 4 + ...ePrivateEndpointConnectionsClientImpl.java | 9 +- ...rkspacePrivateLinkResourcesClientImpl.java | 9 +- .../implementation/WorkspacesClientImpl.java | 21 +- .../healthcareapis/models/ActionType.java | 8 +- .../models/AnalyticsConnector.java | 366 ++++++ .../models/AnalyticsConnectorCollection.java | 77 ++ .../AnalyticsConnectorDataDestination.java | 95 ++ ...AnalyticsConnectorDataDestinationType.java | 36 + ...yticsConnectorDataLakeDataDestination.java | 68 + .../models/AnalyticsConnectorDataSource.java | 73 ++ .../AnalyticsConnectorDataSourceType.java | 35 + ...alyticsConnectorFhirServiceDataSource.java | 93 ++ ...nalyticsConnectorFhirToParquetMapping.java | 133 ++ .../models/AnalyticsConnectorMapping.java | 68 + .../models/AnalyticsConnectorMappingType.java | 35 + .../models/AnalyticsConnectorOperations.java | 48 + .../AnalyticsConnectorPatchResource.java | 59 + .../models/AnalyticsConnectors.java | 142 ++ .../models/CorsConfiguration.java | 151 +++ .../healthcareapis/models/DicomService.java | 25 + .../models/DicomServicePatchResource.java | 3 +- .../models/FhirResourceVersionPolicy.java | 8 +- .../healthcareapis/models/FhirService.java | 27 +- .../models/FhirServiceAccessPolicyEntry.java | 3 +- .../FhirServiceImportConfiguration.java | 98 ++ .../models/FhirServiceKind.java | 8 +- .../models/FhirServicePatchResource.java | 3 +- .../models/FhirServiceVersion.java | 38 + .../healthcareapis/models/IotConnector.java | 7 + .../models/IotConnectorPatchResource.java | 3 +- .../models/IotFhirDestination.java | 7 + .../models/IotIdentityResolutionType.java | 8 +- .../healthcareapis/models/Kind.java | 6 +- .../models/ManagedServiceIdentityType.java | 8 +- .../models/MetricDimension.java | 3 +- .../models/MetricSpecification.java | 145 ++- .../models/OperationResultStatus.java | 8 +- .../PrivateEndpointConnectionDescription.java | 7 + ...teEndpointConnectionProvisioningState.java | 8 +- ...rivateEndpointServiceConnectionStatus.java | 8 +- .../PrivateLinkServiceConnectionState.java | 6 +- .../models/ProvisioningState.java | 8 +- .../models/PublicNetworkAccess.java | 8 +- .../healthcareapis/models/ResourceCore.java | 3 +- .../models/ServiceAccessPolicyEntry.java | 3 +- .../models/ServiceEventState.java | 8 +- .../ServiceImportConfigurationInfo.java | 98 ++ .../models/ServiceManagedIdentity.java | 3 +- .../ServiceManagedIdentityIdentity.java | 16 +- .../models/ServiceManagedIdentityType.java | 8 +- .../ServiceNameUnavailabilityReason.java | 6 +- .../models/ServicesDescription.java | 7 + .../models/ServicesProperties.java | 38 +- .../models/ServicesResource.java | 6 +- .../models/ServicesResourceIdentity.java | 3 +- .../healthcareapis/models/Workspace.java | 7 + .../models/WorkspaceProperties.java | 6 +- ...lyticsConnectorOperationUpdateSamples.java | 44 + ...lyticsConnectorsCreateOrUpdateSamples.java | 43 + .../AnalyticsConnectorsDeleteSamples.java | 23 + .../AnalyticsConnectorsGetSamples.java | 23 + ...yticsConnectorsListByWorkspaceSamples.java | 22 + .../DicomServicesCreateOrUpdateSamples.java | 2 +- .../generated/DicomServicesDeleteSamples.java | 2 +- .../generated/DicomServicesGetSamples.java | 2 +- .../DicomServicesListByWorkspaceSamples.java | 2 +- .../generated/DicomServicesUpdateSamples.java | 2 +- ...DestinationsListByIotConnectorSamples.java | 2 +- .../FhirServicesCreateOrUpdateSamples.java | 8 +- .../generated/FhirServicesDeleteSamples.java | 2 +- .../generated/FhirServicesGetSamples.java | 2 +- .../FhirServicesListByWorkspaceSamples.java | 2 +- .../generated/FhirServicesUpdateSamples.java | 2 +- ...rFhirDestinationCreateOrUpdateSamples.java | 2 +- ...ConnectorFhirDestinationDeleteSamples.java | 2 +- ...IotConnectorFhirDestinationGetSamples.java | 2 +- .../IotConnectorsCreateOrUpdateSamples.java | 2 +- .../generated/IotConnectorsDeleteSamples.java | 2 +- .../generated/IotConnectorsGetSamples.java | 2 +- .../IotConnectorsListByWorkspaceSamples.java | 2 +- .../generated/IotConnectorsUpdateSamples.java | 2 +- .../generated/OperationResultsGetSamples.java | 2 +- .../generated/OperationsListSamples.java | 2 +- ...pointConnectionsCreateOrUpdateSamples.java | 2 +- ...ivateEndpointConnectionsDeleteSamples.java | 2 +- .../PrivateEndpointConnectionsGetSamples.java | 2 +- ...dpointConnectionsListByServiceSamples.java | 2 +- .../PrivateLinkResourcesGetSamples.java | 2 +- ...vateLinkResourcesListByServiceSamples.java | 2 +- .../ServicesCheckNameAvailabilitySamples.java | 2 +- .../ServicesCreateOrUpdateSamples.java | 4 +- .../generated/ServicesDeleteSamples.java | 2 +- .../ServicesGetByResourceGroupSamples.java | 2 +- .../ServicesListByResourceGroupSamples.java | 2 +- .../generated/ServicesListSamples.java | 2 +- .../generated/ServicesUpdateSamples.java | 2 +- ...pointConnectionsCreateOrUpdateSamples.java | 2 +- ...ivateEndpointConnectionsDeleteSamples.java | 2 +- ...ePrivateEndpointConnectionsGetSamples.java | 2 +- ...ointConnectionsListByWorkspaceSamples.java | 2 +- ...rkspacePrivateLinkResourcesGetSamples.java | 2 +- ...teLinkResourcesListByWorkspaceSamples.java | 2 +- .../WorkspacesCreateOrUpdateSamples.java | 2 +- .../generated/WorkspacesDeleteSamples.java | 2 +- .../WorkspacesGetByResourceGroupSamples.java | 2 +- .../WorkspacesListByResourceGroupSamples.java | 2 +- .../generated/WorkspacesListSamples.java | 2 +- .../generated/WorkspacesUpdateSamples.java | 2 +- 150 files changed, 5608 insertions(+), 363 deletions(-) create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/AnalyticsConnectorOperationsClient.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/AnalyticsConnectorsClient.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/AnalyticsConnectorInner.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/AnalyticsConnectorProperties.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/AnalyticsConnectorImpl.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/AnalyticsConnectorOperationsClientImpl.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/AnalyticsConnectorOperationsImpl.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/AnalyticsConnectorsClientImpl.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/AnalyticsConnectorsImpl.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnector.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorCollection.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorDataDestination.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorDataDestinationType.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorDataLakeDataDestination.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorDataSource.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorDataSourceType.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorFhirServiceDataSource.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorFhirToParquetMapping.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorMapping.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorMappingType.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorOperations.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorPatchResource.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectors.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/CorsConfiguration.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirServiceImportConfiguration.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirServiceVersion.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceImportConfigurationInfo.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/AnalyticsConnectorOperationUpdateSamples.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/AnalyticsConnectorsCreateOrUpdateSamples.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/AnalyticsConnectorsDeleteSamples.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/AnalyticsConnectorsGetSamples.java create mode 100644 sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/AnalyticsConnectorsListByWorkspaceSamples.java diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/CHANGELOG.md b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/CHANGELOG.md index 4d22d29ce86e5..48cccf49cbfb5 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/CHANGELOG.md +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.3 (Unreleased) +## 1.0.0-beta.1 (2022-08-23) + +- Azure Resource Manager HealthcareApis client library for Java. This package contains Microsoft Azure SDK for HealthcareApis Management SDK. Azure Healthcare APIs Client. Package tag package-preview-2022-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/README.md b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/README.md index 1b50ea8033d75..68421aa930401 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/README.md +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/README.md @@ -2,7 +2,7 @@ Azure Resource Manager HealthcareApis client library for Java. -This package contains Microsoft Azure SDK for HealthcareApis Management SDK. Azure Healthcare APIs Client. Package tag package-2021-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for HealthcareApis Management SDK. Azure Healthcare APIs Client. Package tag package-preview-2022-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-healthcareapis - 1.0.0-beta.2 + 1.0.0-beta.3 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/SAMPLE.md b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/SAMPLE.md index 438daeaf7ac19..c214b5a3f6729 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/SAMPLE.md +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/SAMPLE.md @@ -1,6 +1,17 @@ # Code snippets and samples +## AnalyticsConnectorOperation + +- [Update](#analyticsconnectoroperation_update) + +## AnalyticsConnectors + +- [CreateOrUpdate](#analyticsconnectors_createorupdate) +- [Delete](#analyticsconnectors_delete) +- [Get](#analyticsconnectors_get) +- [ListByWorkspace](#analyticsconnectors_listbyworkspace) + ## DicomServices - [CreateOrUpdate](#dicomservices_createorupdate) @@ -85,13 +96,163 @@ - [List](#workspaces_list) - [ListByResourceGroup](#workspaces_listbyresourcegroup) - [Update](#workspaces_update) +### AnalyticsConnectorOperation_Update + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorPatchResource; +import java.util.HashMap; +import java.util.Map; + +/** Samples for AnalyticsConnectorOperation Update. */ +public final class AnalyticsConnectorOperationUpdateSamples { + /* + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/analyticsconnectors/AnalyticsConnectors_Patch.json + */ + /** + * Sample code: Update a Analytics Connector Service. + * + * @param manager Entry point to HealthcareApisManager. + */ + public static void updateAAnalyticsConnectorService( + com.azure.resourcemanager.healthcareapis.HealthcareApisManager manager) { + manager + .analyticsConnectorOperations() + .update( + "testRG", + "workspace1", + "exampleconnector", + new AnalyticsConnectorPatchResource().withTags(mapOf("tagKey", "tagValue")), + Context.NONE); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### AnalyticsConnectors_CreateOrUpdate + +```java +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorDataLakeDataDestination; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorFhirServiceDataSource; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorFhirToParquetMapping; +import com.azure.resourcemanager.healthcareapis.models.FhirServiceVersion; + +/** Samples for AnalyticsConnectors CreateOrUpdate. */ +public final class AnalyticsConnectorsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/analyticsconnectors/AnalyticsConnectors_Create.json + */ + /** + * Sample code: Create or update a Analytics Connectors Service. + * + * @param manager Entry point to HealthcareApisManager. + */ + public static void createOrUpdateAAnalyticsConnectorsService( + com.azure.resourcemanager.healthcareapis.HealthcareApisManager manager) { + manager + .analyticsConnectors() + .define("exampleconnector") + .withExistingWorkspace("testRG", "workspace1") + .withRegion("westus") + .withDataSourceConfiguration( + new AnalyticsConnectorFhirServiceDataSource() + .withUrl("https://workspace-examplefhir.fhir.azurehealthcareapis.com") + .withKind(FhirServiceVersion.R4)) + .withDataMappingConfiguration( + new AnalyticsConnectorFhirToParquetMapping() + .withFilterConfigurationReference("acrexample.azurecr.io/blah@sha256xxx") + .withExtensionSchemaReference("acrexample.azurecr.io/blah@sha256aaa/Extension") + .withTransformationSchemaReference("acrexample.azurecr.io/blah@sha256bbb") + .withAnonymizationSchemaReference("acrexample.azurecr.io/blah@sha256ccc")) + .withDataDestinationConfiguration( + new AnalyticsConnectorDataLakeDataDestination().withDataLakeName("exampledatalake")) + .create(); + } +} +``` + +### AnalyticsConnectors_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for AnalyticsConnectors Delete. */ +public final class AnalyticsConnectorsDeleteSamples { + /* + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/analyticsconnectors/AnalyticsConnectors_Delete.json + */ + /** + * Sample code: Delete a Analytics Connectors. + * + * @param manager Entry point to HealthcareApisManager. + */ + public static void deleteAAnalyticsConnectors( + com.azure.resourcemanager.healthcareapis.HealthcareApisManager manager) { + manager.analyticsConnectors().delete("testRG", "workspace1", "exampleconnector", Context.NONE); + } +} +``` + +### AnalyticsConnectors_Get + +```java +import com.azure.core.util.Context; + +/** Samples for AnalyticsConnectors Get. */ +public final class AnalyticsConnectorsGetSamples { + /* + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/analyticsconnectors/AnalyticsConnectors_Get.json + */ + /** + * Sample code: Get a Analytics Connector Service. + * + * @param manager Entry point to HealthcareApisManager. + */ + public static void getAAnalyticsConnectorService( + com.azure.resourcemanager.healthcareapis.HealthcareApisManager manager) { + manager.analyticsConnectors().getWithResponse("testRG", "workspace1", "exampleconnector", Context.NONE); + } +} +``` + +### AnalyticsConnectors_ListByWorkspace + +```java +import com.azure.core.util.Context; + +/** Samples for AnalyticsConnectors ListByWorkspace. */ +public final class AnalyticsConnectorsListByWorkspaceSamples { + /* + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/analyticsconnectors/AnalyticsConnectors_List.json + */ + /** + * Sample code: List Analytics Connectors. + * + * @param manager Entry point to HealthcareApisManager. + */ + public static void listAnalyticsConnectors(com.azure.resourcemanager.healthcareapis.HealthcareApisManager manager) { + manager.analyticsConnectors().listByWorkspace("testRG", "workspace1", Context.NONE); + } +} +``` + ### DicomServices_CreateOrUpdate ```java /** Samples for DicomServices CreateOrUpdate. */ public final class DicomServicesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/dicomservices/DicomServices_Create.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/dicomservices/DicomServices_Create.json */ /** * Sample code: Create or update a Dicom Service. @@ -118,7 +279,7 @@ import com.azure.core.util.Context; /** Samples for DicomServices Delete. */ public final class DicomServicesDeleteSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/dicomservices/DicomServices_Delete.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/dicomservices/DicomServices_Delete.json */ /** * Sample code: Delete a dicomservice. @@ -139,7 +300,7 @@ import com.azure.core.util.Context; /** Samples for DicomServices Get. */ public final class DicomServicesGetSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/dicomservices/DicomServices_Get.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/dicomservices/DicomServices_Get.json */ /** * Sample code: Get a dicomservice. @@ -160,7 +321,7 @@ import com.azure.core.util.Context; /** Samples for DicomServices ListByWorkspace. */ public final class DicomServicesListByWorkspaceSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/dicomservices/DicomServices_List.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/dicomservices/DicomServices_List.json */ /** * Sample code: List dicomservices. @@ -184,7 +345,7 @@ import java.util.Map; /** Samples for DicomServices Update. */ public final class DicomServicesUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/dicomservices/DicomServices_Patch.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/dicomservices/DicomServices_Patch.json */ /** * Sample code: Update a dicomservice. @@ -218,7 +379,7 @@ import com.azure.core.util.Context; /** Samples for FhirDestinations ListByIotConnector. */ public final class FhirDestinationsListByIotConnectorSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_fhirdestination_List.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/iotconnectors/iotconnector_fhirdestination_List.json */ /** * Sample code: List IoT Connectors. @@ -239,6 +400,7 @@ import com.azure.resourcemanager.healthcareapis.models.FhirServiceAcrConfigurati import com.azure.resourcemanager.healthcareapis.models.FhirServiceAuthenticationConfiguration; import com.azure.resourcemanager.healthcareapis.models.FhirServiceCorsConfiguration; import com.azure.resourcemanager.healthcareapis.models.FhirServiceExportConfiguration; +import com.azure.resourcemanager.healthcareapis.models.FhirServiceImportConfiguration; import com.azure.resourcemanager.healthcareapis.models.FhirServiceKind; import com.azure.resourcemanager.healthcareapis.models.ServiceManagedIdentityIdentity; import com.azure.resourcemanager.healthcareapis.models.ServiceManagedIdentityType; @@ -249,7 +411,7 @@ import java.util.Map; /** Samples for FhirServices CreateOrUpdate. */ public final class FhirServicesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/fhirservices/FhirServices_Create.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/fhirservices/FhirServices_Create.json */ /** * Sample code: Create or update a Fhir Service. @@ -286,6 +448,11 @@ public final class FhirServicesCreateOrUpdateSamples { .withAllowCredentials(false)) .withExportConfiguration( new FhirServiceExportConfiguration().withStorageAccountName("existingStorageAccount")) + .withImportConfiguration( + new FhirServiceImportConfiguration() + .withIntegrationDataStore("existingStorageAccount") + .withInitialImportMode(false) + .withEnabled(false)) .create(); } @@ -310,7 +477,7 @@ import com.azure.core.util.Context; /** Samples for FhirServices Delete. */ public final class FhirServicesDeleteSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/fhirservices/FhirServices_Delete.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/fhirservices/FhirServices_Delete.json */ /** * Sample code: Delete a Fhir Service. @@ -331,7 +498,7 @@ import com.azure.core.util.Context; /** Samples for FhirServices Get. */ public final class FhirServicesGetSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/fhirservices/FhirServices_Get.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/fhirservices/FhirServices_Get.json */ /** * Sample code: Get a Fhir Service. @@ -352,7 +519,7 @@ import com.azure.core.util.Context; /** Samples for FhirServices ListByWorkspace. */ public final class FhirServicesListByWorkspaceSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/fhirservices/FhirServices_List.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/fhirservices/FhirServices_List.json */ /** * Sample code: List fhirservices. @@ -376,7 +543,7 @@ import java.util.Map; /** Samples for FhirServices Update. */ public final class FhirServicesUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/fhirservices/FhirServices_Patch.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/fhirservices/FhirServices_Patch.json */ /** * Sample code: Update a Fhir Service. @@ -414,7 +581,7 @@ import java.io.IOException; /** Samples for IotConnectorFhirDestination CreateOrUpdate. */ public final class IotConnectorFhirDestinationCreateOrUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_fhirdestination_Create.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/iotconnectors/iotconnector_fhirdestination_Create.json */ /** * Sample code: Create or update an Iot Connector FHIR destination. @@ -454,7 +621,7 @@ import com.azure.core.util.Context; /** Samples for IotConnectorFhirDestination Delete. */ public final class IotConnectorFhirDestinationDeleteSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_fhirdestination_Delete.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/iotconnectors/iotconnector_fhirdestination_Delete.json */ /** * Sample code: Delete an IoT Connector destination. @@ -476,7 +643,7 @@ import com.azure.core.util.Context; /** Samples for IotConnectorFhirDestination Get. */ public final class IotConnectorFhirDestinationGetSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_fhirdestination_Get.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/iotconnectors/iotconnector_fhirdestination_Get.json */ /** * Sample code: Get an IoT Connector destination. @@ -506,7 +673,7 @@ import java.util.Map; /** Samples for IotConnectors CreateOrUpdate. */ public final class IotConnectorsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_Create.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/iotconnectors/iotconnector_Create.json */ /** * Sample code: Create an IoT Connector. @@ -560,7 +727,7 @@ import com.azure.core.util.Context; /** Samples for IotConnectors Delete. */ public final class IotConnectorsDeleteSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_Delete.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/iotconnectors/iotconnector_Delete.json */ /** * Sample code: Delete an IoT Connector. @@ -581,7 +748,7 @@ import com.azure.core.util.Context; /** Samples for IotConnectors Get. */ public final class IotConnectorsGetSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_Get.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/iotconnectors/iotconnector_Get.json */ /** * Sample code: Get an IoT Connector. @@ -602,7 +769,7 @@ import com.azure.core.util.Context; /** Samples for IotConnectors ListByWorkspace. */ public final class IotConnectorsListByWorkspaceSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_List.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/iotconnectors/iotconnector_List.json */ /** * Sample code: List iotconnectors. @@ -628,7 +795,7 @@ import java.util.Map; /** Samples for IotConnectors Update. */ public final class IotConnectorsUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_Patch.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/iotconnectors/iotconnector_Patch.json */ /** * Sample code: Patch an IoT Connector. @@ -666,7 +833,7 @@ import com.azure.core.util.Context; /** Samples for OperationResults Get. */ public final class OperationResultsGetSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/OperationResultsGet.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/OperationResultsGet.json */ /** * Sample code: Get operation result. @@ -687,7 +854,7 @@ import com.azure.core.util.Context; /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/OperationsList.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/OperationsList.json */ /** * Sample code: List operations. @@ -709,7 +876,7 @@ import com.azure.resourcemanager.healthcareapis.models.PrivateLinkServiceConnect /** Samples for PrivateEndpointConnections CreateOrUpdate. */ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceCreatePrivateEndpointConnection.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/ServiceCreatePrivateEndpointConnection.json */ /** * Sample code: PrivateEndpointConnection_CreateOrUpdate. @@ -739,7 +906,7 @@ import com.azure.core.util.Context; /** Samples for PrivateEndpointConnections Delete. */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceDeletePrivateEndpointConnection.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/ServiceDeletePrivateEndpointConnection.json */ /** * Sample code: PrivateEndpointConnections_Delete. @@ -761,7 +928,7 @@ import com.azure.core.util.Context; /** Samples for PrivateEndpointConnections Get. */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceGetPrivateEndpointConnection.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/ServiceGetPrivateEndpointConnection.json */ /** * Sample code: PrivateEndpointConnection_GetConnection. @@ -783,7 +950,7 @@ import com.azure.core.util.Context; /** Samples for PrivateEndpointConnections ListByService. */ public final class PrivateEndpointConnectionsListByServiceSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceListPrivateEndpointConnections.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/ServiceListPrivateEndpointConnections.json */ /** * Sample code: PrivateEndpointConnection_List. @@ -805,7 +972,7 @@ import com.azure.core.util.Context; /** Samples for PrivateLinkResources Get. */ public final class PrivateLinkResourcesGetSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/PrivateLinkResourceGet.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/PrivateLinkResourceGet.json */ /** * Sample code: PrivateLinkResources_Get. @@ -826,7 +993,7 @@ import com.azure.core.util.Context; /** Samples for PrivateLinkResources ListByService. */ public final class PrivateLinkResourcesListByServiceSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/PrivateLinkResourcesListByService.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/PrivateLinkResourcesListByService.json */ /** * Sample code: PrivateLinkResources_ListGroupIds. @@ -849,7 +1016,7 @@ import com.azure.resourcemanager.healthcareapis.models.CheckNameAvailabilityPara /** Samples for Services CheckNameAvailability. */ public final class ServicesCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/CheckNameAvailabilityPost.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/CheckNameAvailabilityPost.json */ /** * Sample code: Check name availability. @@ -888,7 +1055,7 @@ import java.util.Map; /** Samples for Services CreateOrUpdate. */ public final class ServicesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceCreate.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/ServiceCreate.json */ /** * Sample code: Create or Update a service with all parameters. @@ -936,7 +1103,7 @@ public final class ServicesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceCreateMinimum.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/ServiceCreateMinimum.json */ /** * Sample code: Create or Update a service with minimum parameters. @@ -982,7 +1149,7 @@ import com.azure.core.util.Context; /** Samples for Services Delete. */ public final class ServicesDeleteSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceDelete.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/ServiceDelete.json */ /** * Sample code: Delete service. @@ -1003,7 +1170,7 @@ import com.azure.core.util.Context; /** Samples for Services GetByResourceGroup. */ public final class ServicesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceGet.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/ServiceGet.json */ /** * Sample code: Get metadata. @@ -1024,7 +1191,7 @@ import com.azure.core.util.Context; /** Samples for Services List. */ public final class ServicesListSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceList.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/ServiceList.json */ /** * Sample code: List all services in subscription. @@ -1046,7 +1213,7 @@ import com.azure.core.util.Context; /** Samples for Services ListByResourceGroup. */ public final class ServicesListByResourceGroupSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceListByResourceGroup.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/ServiceListByResourceGroup.json */ /** * Sample code: List all services in resource group. @@ -1071,7 +1238,7 @@ import java.util.Map; /** Samples for Services Update. */ public final class ServicesUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServicePatch.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/ServicePatch.json */ /** * Sample code: Patch service. @@ -1108,7 +1275,7 @@ import com.azure.resourcemanager.healthcareapis.models.PrivateLinkServiceConnect /** Samples for WorkspacePrivateEndpointConnections CreateOrUpdate. */ public final class WorkspacePrivateEndpointConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/privatelink/WorkspaceCreatePrivateEndpointConnection.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/privatelink/WorkspaceCreatePrivateEndpointConnection.json */ /** * Sample code: WorkspacePrivateEndpointConnection_CreateOrUpdate. @@ -1141,7 +1308,7 @@ import com.azure.core.util.Context; /** Samples for WorkspacePrivateEndpointConnections Delete. */ public final class WorkspacePrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/privatelink/WorkspaceDeletePrivateEndpointConnection.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/privatelink/WorkspaceDeletePrivateEndpointConnection.json */ /** * Sample code: WorkspacePrivateEndpointConnections_Delete. @@ -1163,7 +1330,7 @@ import com.azure.core.util.Context; /** Samples for WorkspacePrivateEndpointConnections Get. */ public final class WorkspacePrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/privatelink/WorkspaceGetPrivateEndpointConnection.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/privatelink/WorkspaceGetPrivateEndpointConnection.json */ /** * Sample code: WorkspacePrivateEndpointConnection_GetConnection. @@ -1187,7 +1354,7 @@ import com.azure.core.util.Context; /** Samples for WorkspacePrivateEndpointConnections ListByWorkspace. */ public final class WorkspacePrivateEndpointConnectionsListByWorkspaceSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/privatelink/WorkspaceListPrivateEndpointConnections.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/privatelink/WorkspaceListPrivateEndpointConnections.json */ /** * Sample code: WorkspacePrivateEndpointConnection_List. @@ -1209,7 +1376,7 @@ import com.azure.core.util.Context; /** Samples for WorkspacePrivateLinkResources Get. */ public final class WorkspacePrivateLinkResourcesGetSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/privatelink/WorkspacePrivateLinkResourceGet.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/privatelink/WorkspacePrivateLinkResourceGet.json */ /** * Sample code: WorkspacePrivateLinkResources_Get. @@ -1233,7 +1400,7 @@ import com.azure.core.util.Context; /** Samples for WorkspacePrivateLinkResources ListByWorkspace. */ public final class WorkspacePrivateLinkResourcesListByWorkspaceSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/privatelink/PrivateLinkResourcesListByWorkspace.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/privatelink/PrivateLinkResourcesListByWorkspace.json */ /** * Sample code: WorkspacePrivateLinkResources_ListGroupIds. @@ -1255,7 +1422,7 @@ import com.azure.resourcemanager.healthcareapis.models.WorkspaceProperties; /** Samples for Workspaces CreateOrUpdate. */ public final class WorkspacesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/workspaces/Workspaces_Create.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/workspaces/Workspaces_Create.json */ /** * Sample code: Create or update a workspace. @@ -1283,7 +1450,7 @@ import com.azure.core.util.Context; /** Samples for Workspaces Delete. */ public final class WorkspacesDeleteSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/workspaces/Workspaces_Delete.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/workspaces/Workspaces_Delete.json */ /** * Sample code: Delete a workspace. @@ -1304,7 +1471,7 @@ import com.azure.core.util.Context; /** Samples for Workspaces GetByResourceGroup. */ public final class WorkspacesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/workspaces/Workspaces_Get.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/workspaces/Workspaces_Get.json */ /** * Sample code: Get workspace. @@ -1325,7 +1492,7 @@ import com.azure.core.util.Context; /** Samples for Workspaces List. */ public final class WorkspacesListSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/workspaces/Workspaces_ListBySubscription.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/workspaces/Workspaces_ListBySubscription.json */ /** * Sample code: Get workspaces by subscription. @@ -1347,7 +1514,7 @@ import com.azure.core.util.Context; /** Samples for Workspaces ListByResourceGroup. */ public final class WorkspacesListByResourceGroupSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/workspaces/Workspaces_ListByResourceGroup.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/workspaces/Workspaces_ListByResourceGroup.json */ /** * Sample code: Get workspaces by resource group. @@ -1372,7 +1539,7 @@ import java.util.Map; /** Samples for Workspaces Update. */ public final class WorkspacesUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/workspaces/Workspaces_Patch.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/workspaces/Workspaces_Patch.json */ /** * Sample code: Update a workspace. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/pom.xml b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/pom.xml index 08035a12c5a84..6b6cc55a0af08 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/pom.xml +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/pom.xml @@ -13,7 +13,7 @@ jar Microsoft Azure SDK for HealthcareApis Management - This package contains Microsoft Azure SDK for HealthcareApis Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Healthcare APIs Client. Package tag package-2021-11. + This package contains Microsoft Azure SDK for HealthcareApis Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Healthcare APIs Client. Package tag package-preview-2022-10. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/HealthcareApisManager.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/HealthcareApisManager.java index 0b41b9c695528..337b28172d2a0 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/HealthcareApisManager.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/HealthcareApisManager.java @@ -24,6 +24,8 @@ import com.azure.core.util.Configuration; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.healthcareapis.fluent.HealthcareApisManagementClient; +import com.azure.resourcemanager.healthcareapis.implementation.AnalyticsConnectorOperationsImpl; +import com.azure.resourcemanager.healthcareapis.implementation.AnalyticsConnectorsImpl; import com.azure.resourcemanager.healthcareapis.implementation.DicomServicesImpl; import com.azure.resourcemanager.healthcareapis.implementation.FhirDestinationsImpl; import com.azure.resourcemanager.healthcareapis.implementation.FhirServicesImpl; @@ -38,6 +40,8 @@ import com.azure.resourcemanager.healthcareapis.implementation.WorkspacePrivateEndpointConnectionsImpl; import com.azure.resourcemanager.healthcareapis.implementation.WorkspacePrivateLinkResourcesImpl; import com.azure.resourcemanager.healthcareapis.implementation.WorkspacesImpl; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorOperations; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectors; import com.azure.resourcemanager.healthcareapis.models.DicomServices; import com.azure.resourcemanager.healthcareapis.models.FhirDestinations; import com.azure.resourcemanager.healthcareapis.models.FhirServices; @@ -82,6 +86,10 @@ public final class HealthcareApisManager { private WorkspacePrivateLinkResources workspacePrivateLinkResources; + private AnalyticsConnectors analyticsConnectors; + + private AnalyticsConnectorOperations analyticsConnectorOperations; + private Operations operations; private OperationResults operationResults; @@ -251,7 +259,7 @@ public HealthcareApisManager authenticate(TokenCredential credential, AzureProfi .append("-") .append("com.azure.resourcemanager.healthcareapis") .append("/") - .append("1.0.0-beta.2"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") @@ -308,7 +316,11 @@ public HealthcareApisManager authenticate(TokenCredential credential, AzureProfi } } - /** @return Resource collection API of Services. */ + /** + * Gets the resource collection API of Services. It manages ServicesDescription. + * + * @return Resource collection API of Services. + */ public Services services() { if (this.services == null) { this.services = new ServicesImpl(clientObject.getServices(), this); @@ -316,7 +328,11 @@ public Services services() { return services; } - /** @return Resource collection API of PrivateEndpointConnections. */ + /** + * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnectionDescription. + * + * @return Resource collection API of PrivateEndpointConnections. + */ public PrivateEndpointConnections privateEndpointConnections() { if (this.privateEndpointConnections == null) { this.privateEndpointConnections = @@ -325,7 +341,11 @@ public PrivateEndpointConnections privateEndpointConnections() { return privateEndpointConnections; } - /** @return Resource collection API of PrivateLinkResources. */ + /** + * Gets the resource collection API of PrivateLinkResources. + * + * @return Resource collection API of PrivateLinkResources. + */ public PrivateLinkResources privateLinkResources() { if (this.privateLinkResources == null) { this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this); @@ -333,7 +353,11 @@ public PrivateLinkResources privateLinkResources() { return privateLinkResources; } - /** @return Resource collection API of Workspaces. */ + /** + * Gets the resource collection API of Workspaces. It manages Workspace. + * + * @return Resource collection API of Workspaces. + */ public Workspaces workspaces() { if (this.workspaces == null) { this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this); @@ -341,7 +365,11 @@ public Workspaces workspaces() { return workspaces; } - /** @return Resource collection API of DicomServices. */ + /** + * Gets the resource collection API of DicomServices. It manages DicomService. + * + * @return Resource collection API of DicomServices. + */ public DicomServices dicomServices() { if (this.dicomServices == null) { this.dicomServices = new DicomServicesImpl(clientObject.getDicomServices(), this); @@ -349,7 +377,11 @@ public DicomServices dicomServices() { return dicomServices; } - /** @return Resource collection API of IotConnectors. */ + /** + * Gets the resource collection API of IotConnectors. It manages IotConnector. + * + * @return Resource collection API of IotConnectors. + */ public IotConnectors iotConnectors() { if (this.iotConnectors == null) { this.iotConnectors = new IotConnectorsImpl(clientObject.getIotConnectors(), this); @@ -357,7 +389,11 @@ public IotConnectors iotConnectors() { return iotConnectors; } - /** @return Resource collection API of FhirDestinations. */ + /** + * Gets the resource collection API of FhirDestinations. + * + * @return Resource collection API of FhirDestinations. + */ public FhirDestinations fhirDestinations() { if (this.fhirDestinations == null) { this.fhirDestinations = new FhirDestinationsImpl(clientObject.getFhirDestinations(), this); @@ -365,7 +401,11 @@ public FhirDestinations fhirDestinations() { return fhirDestinations; } - /** @return Resource collection API of IotConnectorFhirDestinations. */ + /** + * Gets the resource collection API of IotConnectorFhirDestinations. It manages IotFhirDestination. + * + * @return Resource collection API of IotConnectorFhirDestinations. + */ public IotConnectorFhirDestinations iotConnectorFhirDestinations() { if (this.iotConnectorFhirDestinations == null) { this.iotConnectorFhirDestinations = @@ -374,7 +414,11 @@ public IotConnectorFhirDestinations iotConnectorFhirDestinations() { return iotConnectorFhirDestinations; } - /** @return Resource collection API of FhirServices. */ + /** + * Gets the resource collection API of FhirServices. It manages FhirService. + * + * @return Resource collection API of FhirServices. + */ public FhirServices fhirServices() { if (this.fhirServices == null) { this.fhirServices = new FhirServicesImpl(clientObject.getFhirServices(), this); @@ -382,7 +426,11 @@ public FhirServices fhirServices() { return fhirServices; } - /** @return Resource collection API of WorkspacePrivateEndpointConnections. */ + /** + * Gets the resource collection API of WorkspacePrivateEndpointConnections. + * + * @return Resource collection API of WorkspacePrivateEndpointConnections. + */ public WorkspacePrivateEndpointConnections workspacePrivateEndpointConnections() { if (this.workspacePrivateEndpointConnections == null) { this.workspacePrivateEndpointConnections = @@ -392,7 +440,11 @@ public WorkspacePrivateEndpointConnections workspacePrivateEndpointConnections() return workspacePrivateEndpointConnections; } - /** @return Resource collection API of WorkspacePrivateLinkResources. */ + /** + * Gets the resource collection API of WorkspacePrivateLinkResources. + * + * @return Resource collection API of WorkspacePrivateLinkResources. + */ public WorkspacePrivateLinkResources workspacePrivateLinkResources() { if (this.workspacePrivateLinkResources == null) { this.workspacePrivateLinkResources = @@ -401,7 +453,36 @@ public WorkspacePrivateLinkResources workspacePrivateLinkResources() { return workspacePrivateLinkResources; } - /** @return Resource collection API of Operations. */ + /** + * Gets the resource collection API of AnalyticsConnectors. It manages AnalyticsConnector. + * + * @return Resource collection API of AnalyticsConnectors. + */ + public AnalyticsConnectors analyticsConnectors() { + if (this.analyticsConnectors == null) { + this.analyticsConnectors = new AnalyticsConnectorsImpl(clientObject.getAnalyticsConnectors(), this); + } + return analyticsConnectors; + } + + /** + * Gets the resource collection API of AnalyticsConnectorOperations. + * + * @return Resource collection API of AnalyticsConnectorOperations. + */ + public AnalyticsConnectorOperations analyticsConnectorOperations() { + if (this.analyticsConnectorOperations == null) { + this.analyticsConnectorOperations = + new AnalyticsConnectorOperationsImpl(clientObject.getAnalyticsConnectorOperations(), this); + } + return analyticsConnectorOperations; + } + + /** + * Gets the resource collection API of Operations. + * + * @return Resource collection API of Operations. + */ public Operations operations() { if (this.operations == null) { this.operations = new OperationsImpl(clientObject.getOperations(), this); @@ -409,7 +490,11 @@ public Operations operations() { return operations; } - /** @return Resource collection API of OperationResults. */ + /** + * Gets the resource collection API of OperationResults. + * + * @return Resource collection API of OperationResults. + */ public OperationResults operationResults() { if (this.operationResults == null) { this.operationResults = new OperationResultsImpl(clientObject.getOperationResults(), this); diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/AnalyticsConnectorOperationsClient.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/AnalyticsConnectorOperationsClient.java new file mode 100644 index 0000000000000..aee99d01a42fb --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/AnalyticsConnectorOperationsClient.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.healthcareapis.fluent.models.AnalyticsConnectorInner; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorPatchResource; + +/** An instance of this class provides access to all the operations defined in AnalyticsConnectorOperationsClient. */ +public interface AnalyticsConnectorOperationsClient { + /** + * Patch Analytics Connector Service details. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnectorPatchResource The parameters for updating a Analytics Connector. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of analytics Connector definition. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, AnalyticsConnectorInner> beginUpdate( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorPatchResource analyticsConnectorPatchResource); + + /** + * Patch Analytics Connector Service details. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnectorPatchResource The parameters for updating a Analytics Connector. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of analytics Connector definition. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, AnalyticsConnectorInner> beginUpdate( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorPatchResource analyticsConnectorPatchResource, + Context context); + + /** + * Patch Analytics Connector Service details. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnectorPatchResource The parameters for updating a Analytics Connector. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return analytics Connector definition. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AnalyticsConnectorInner update( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorPatchResource analyticsConnectorPatchResource); + + /** + * Patch Analytics Connector Service details. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnectorPatchResource The parameters for updating a Analytics Connector. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return analytics Connector definition. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AnalyticsConnectorInner update( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorPatchResource analyticsConnectorPatchResource, + Context context); +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/AnalyticsConnectorsClient.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/AnalyticsConnectorsClient.java new file mode 100644 index 0000000000000..72d98270718ba --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/AnalyticsConnectorsClient.java @@ -0,0 +1,213 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.healthcareapis.fluent.models.AnalyticsConnectorInner; + +/** An instance of this class provides access to all the operations defined in AnalyticsConnectorsClient. */ +public interface AnalyticsConnectorsClient { + /** + * Lists all Analytics 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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a collection of Analytics Connectors as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); + + /** + * Lists all Analytics 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 context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a collection of Analytics Connectors as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByWorkspace( + String resourceGroupName, String workspaceName, Context context); + + /** + * Gets the properties of the specified Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the properties of the specified Analytics Connector. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AnalyticsConnectorInner get(String resourceGroupName, String workspaceName, String analyticsConnectorName); + + /** + * Gets the properties of the specified Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the properties of the specified Analytics Connector along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse( + String resourceGroupName, String workspaceName, String analyticsConnectorName, Context context); + + /** + * Creates or updates a Analytics 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 analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnector The parameters for creating or updating a Analytics Connector resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of analytics Connector definition. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, AnalyticsConnectorInner> beginCreateOrUpdate( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorInner analyticsConnector); + + /** + * Creates or updates a Analytics 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 analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnector The parameters for creating or updating a Analytics Connector resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of analytics Connector definition. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, AnalyticsConnectorInner> beginCreateOrUpdate( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorInner analyticsConnector, + Context context); + + /** + * Creates or updates a Analytics 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 analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnector The parameters for creating or updating a Analytics Connector resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return analytics Connector definition. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AnalyticsConnectorInner createOrUpdate( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorInner analyticsConnector); + + /** + * Creates or updates a Analytics 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 analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnector The parameters for creating or updating a Analytics Connector resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return analytics Connector definition. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AnalyticsConnectorInner createOrUpdate( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorInner analyticsConnector, + Context context); + + /** + * Deletes a Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete( + String resourceGroupName, String workspaceName, String analyticsConnectorName); + + /** + * Deletes a Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete( + String resourceGroupName, String workspaceName, String analyticsConnectorName, Context context); + + /** + * Deletes a Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String workspaceName, String analyticsConnectorName); + + /** + * Deletes a Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String workspaceName, String analyticsConnectorName, Context context); +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/HealthcareApisManagementClient.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/HealthcareApisManagementClient.java index e008967e46877..bca8ca2934749 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/HealthcareApisManagementClient.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/HealthcareApisManagementClient.java @@ -121,6 +121,20 @@ public interface HealthcareApisManagementClient { */ WorkspacePrivateLinkResourcesClient getWorkspacePrivateLinkResources(); + /** + * Gets the AnalyticsConnectorsClient object to access its operations. + * + * @return the AnalyticsConnectorsClient object. + */ + AnalyticsConnectorsClient getAnalyticsConnectors(); + + /** + * Gets the AnalyticsConnectorOperationsClient object to access its operations. + * + * @return the AnalyticsConnectorOperationsClient object. + */ + AnalyticsConnectorOperationsClient getAnalyticsConnectorOperations(); + /** * Gets the OperationsClient object to access its operations. * diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/AnalyticsConnectorInner.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/AnalyticsConnectorInner.java new file mode 100644 index 0000000000000..a1bf61ca62ebc --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/AnalyticsConnectorInner.java @@ -0,0 +1,192 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorDataDestination; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorDataSource; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorMapping; +import com.azure.resourcemanager.healthcareapis.models.ProvisioningState; +import com.azure.resourcemanager.healthcareapis.models.ServiceManagedIdentityIdentity; +import com.azure.resourcemanager.healthcareapis.models.TaggedResource; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Map; + +/** Analytics Connector definition. */ +@Fluent +public final class AnalyticsConnectorInner extends TaggedResource { + /* + * Analytics Connector configuration. + */ + @JsonProperty(value = "properties") + private AnalyticsConnectorProperties innerProperties; + + /* + * Metadata pertaining to creation and last modification of the resource. + */ + @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) + private SystemData systemData; + + /* + * Setting indicating whether the service has a managed identity associated with it. + */ + @JsonProperty(value = "identity") + private ServiceManagedIdentityIdentity identity; + + /** + * Get the innerProperties property: Analytics Connector configuration. + * + * @return the innerProperties value. + */ + private AnalyticsConnectorProperties innerProperties() { + return this.innerProperties; + } + + /** + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the identity property: Setting indicating whether the service has a managed identity associated with it. + * + * @return the identity value. + */ + public ServiceManagedIdentityIdentity identity() { + return this.identity; + } + + /** + * Set the identity property: Setting indicating whether the service has a managed identity associated with it. + * + * @param identity the identity value to set. + * @return the AnalyticsConnectorInner object itself. + */ + public AnalyticsConnectorInner withIdentity(ServiceManagedIdentityIdentity identity) { + this.identity = identity; + return this; + } + + /** {@inheritDoc} */ + @Override + public AnalyticsConnectorInner withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** {@inheritDoc} */ + @Override + public AnalyticsConnectorInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** {@inheritDoc} */ + @Override + public AnalyticsConnectorInner withEtag(String etag) { + super.withEtag(etag); + return this; + } + + /** + * Get the provisioningState property: The provisioning state. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + + /** + * Get the dataSourceConfiguration property: Data source for Analytics Connector. + * + * @return the dataSourceConfiguration value. + */ + public AnalyticsConnectorDataSource dataSourceConfiguration() { + return this.innerProperties() == null ? null : this.innerProperties().dataSourceConfiguration(); + } + + /** + * Set the dataSourceConfiguration property: Data source for Analytics Connector. + * + * @param dataSourceConfiguration the dataSourceConfiguration value to set. + * @return the AnalyticsConnectorInner object itself. + */ + public AnalyticsConnectorInner withDataSourceConfiguration(AnalyticsConnectorDataSource dataSourceConfiguration) { + if (this.innerProperties() == null) { + this.innerProperties = new AnalyticsConnectorProperties(); + } + this.innerProperties().withDataSourceConfiguration(dataSourceConfiguration); + return this; + } + + /** + * Get the dataMappingConfiguration property: Data mapping configuration for Analytics Connector. + * + * @return the dataMappingConfiguration value. + */ + public AnalyticsConnectorMapping dataMappingConfiguration() { + return this.innerProperties() == null ? null : this.innerProperties().dataMappingConfiguration(); + } + + /** + * Set the dataMappingConfiguration property: Data mapping configuration for Analytics Connector. + * + * @param dataMappingConfiguration the dataMappingConfiguration value to set. + * @return the AnalyticsConnectorInner object itself. + */ + public AnalyticsConnectorInner withDataMappingConfiguration(AnalyticsConnectorMapping dataMappingConfiguration) { + if (this.innerProperties() == null) { + this.innerProperties = new AnalyticsConnectorProperties(); + } + this.innerProperties().withDataMappingConfiguration(dataMappingConfiguration); + return this; + } + + /** + * Get the dataDestinationConfiguration property: Data destination configuration for Analytics Connector. + * + * @return the dataDestinationConfiguration value. + */ + public AnalyticsConnectorDataDestination dataDestinationConfiguration() { + return this.innerProperties() == null ? null : this.innerProperties().dataDestinationConfiguration(); + } + + /** + * Set the dataDestinationConfiguration property: Data destination configuration for Analytics Connector. + * + * @param dataDestinationConfiguration the dataDestinationConfiguration value to set. + * @return the AnalyticsConnectorInner object itself. + */ + public AnalyticsConnectorInner withDataDestinationConfiguration( + AnalyticsConnectorDataDestination dataDestinationConfiguration) { + if (this.innerProperties() == null) { + this.innerProperties = new AnalyticsConnectorProperties(); + } + this.innerProperties().withDataDestinationConfiguration(dataDestinationConfiguration); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + if (innerProperties() != null) { + innerProperties().validate(); + } + if (identity() != null) { + identity().validate(); + } + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/AnalyticsConnectorProperties.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/AnalyticsConnectorProperties.java new file mode 100644 index 0000000000000..5101736c4be2b --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/AnalyticsConnectorProperties.java @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorDataDestination; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorDataSource; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorMapping; +import com.azure.resourcemanager.healthcareapis.models.ProvisioningState; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Analytics Connector Properties. */ +@Fluent +public final class AnalyticsConnectorProperties { + /* + * The provisioning state. + */ + @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private ProvisioningState provisioningState; + + /* + * Data source for Analytics Connector. + */ + @JsonProperty(value = "dataSourceConfiguration", required = true) + private AnalyticsConnectorDataSource dataSourceConfiguration; + + /* + * Data mapping configuration for Analytics Connector. + */ + @JsonProperty(value = "dataMappingConfiguration", required = true) + private AnalyticsConnectorMapping dataMappingConfiguration; + + /* + * Data destination configuration for Analytics Connector. + */ + @JsonProperty(value = "dataDestinationConfiguration", required = true) + private AnalyticsConnectorDataDestination dataDestinationConfiguration; + + /** + * Get the provisioningState property: The provisioning state. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the dataSourceConfiguration property: Data source for Analytics Connector. + * + * @return the dataSourceConfiguration value. + */ + public AnalyticsConnectorDataSource dataSourceConfiguration() { + return this.dataSourceConfiguration; + } + + /** + * Set the dataSourceConfiguration property: Data source for Analytics Connector. + * + * @param dataSourceConfiguration the dataSourceConfiguration value to set. + * @return the AnalyticsConnectorProperties object itself. + */ + public AnalyticsConnectorProperties withDataSourceConfiguration( + AnalyticsConnectorDataSource dataSourceConfiguration) { + this.dataSourceConfiguration = dataSourceConfiguration; + return this; + } + + /** + * Get the dataMappingConfiguration property: Data mapping configuration for Analytics Connector. + * + * @return the dataMappingConfiguration value. + */ + public AnalyticsConnectorMapping dataMappingConfiguration() { + return this.dataMappingConfiguration; + } + + /** + * Set the dataMappingConfiguration property: Data mapping configuration for Analytics Connector. + * + * @param dataMappingConfiguration the dataMappingConfiguration value to set. + * @return the AnalyticsConnectorProperties object itself. + */ + public AnalyticsConnectorProperties withDataMappingConfiguration( + AnalyticsConnectorMapping dataMappingConfiguration) { + this.dataMappingConfiguration = dataMappingConfiguration; + return this; + } + + /** + * Get the dataDestinationConfiguration property: Data destination configuration for Analytics Connector. + * + * @return the dataDestinationConfiguration value. + */ + public AnalyticsConnectorDataDestination dataDestinationConfiguration() { + return this.dataDestinationConfiguration; + } + + /** + * Set the dataDestinationConfiguration property: Data destination configuration for Analytics Connector. + * + * @param dataDestinationConfiguration the dataDestinationConfiguration value to set. + * @return the AnalyticsConnectorProperties object itself. + */ + public AnalyticsConnectorProperties withDataDestinationConfiguration( + AnalyticsConnectorDataDestination dataDestinationConfiguration) { + this.dataDestinationConfiguration = dataDestinationConfiguration; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (dataSourceConfiguration() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property dataSourceConfiguration in model AnalyticsConnectorProperties")); + } else { + dataSourceConfiguration().validate(); + } + if (dataMappingConfiguration() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property dataMappingConfiguration in model AnalyticsConnectorProperties")); + } else { + dataMappingConfiguration().validate(); + } + if (dataDestinationConfiguration() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property dataDestinationConfiguration in model" + + " AnalyticsConnectorProperties")); + } else { + dataDestinationConfiguration().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(AnalyticsConnectorProperties.class); +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/DicomServiceInner.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/DicomServiceInner.java index 09b92a0931055..5f5bbb6fb3433 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/DicomServiceInner.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/DicomServiceInner.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.SystemData; +import com.azure.resourcemanager.healthcareapis.models.CorsConfiguration; import com.azure.resourcemanager.healthcareapis.models.DicomServiceAuthenticationConfiguration; import com.azure.resourcemanager.healthcareapis.models.PrivateEndpointConnection; import com.azure.resourcemanager.healthcareapis.models.ProvisioningState; @@ -32,8 +33,7 @@ public final class DicomServiceInner extends TaggedResource { private SystemData systemData; /* - * Setting indicating whether the service has a managed identity associated - * with it. + * Setting indicating whether the service has a managed identity associated with it. */ @JsonProperty(value = "identity") private ServiceManagedIdentityIdentity identity; @@ -130,6 +130,29 @@ public DicomServiceInner withAuthenticationConfiguration( return this; } + /** + * Get the corsConfiguration property: Dicom Service Cors configuration. + * + * @return the corsConfiguration value. + */ + public CorsConfiguration corsConfiguration() { + return this.innerProperties() == null ? null : this.innerProperties().corsConfiguration(); + } + + /** + * Set the corsConfiguration property: Dicom Service Cors configuration. + * + * @param corsConfiguration the corsConfiguration value to set. + * @return the DicomServiceInner object itself. + */ + public DicomServiceInner withCorsConfiguration(CorsConfiguration corsConfiguration) { + if (this.innerProperties() == null) { + this.innerProperties = new DicomServiceProperties(); + } + this.innerProperties().withCorsConfiguration(corsConfiguration); + return this; + } + /** * Get the serviceUrl property: The url of the Dicom Services. * diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/DicomServiceProperties.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/DicomServiceProperties.java index 9af1329a76355..df7841beee39b 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/DicomServiceProperties.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/DicomServiceProperties.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.healthcareapis.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.healthcareapis.models.CorsConfiguration; import com.azure.resourcemanager.healthcareapis.models.DicomServiceAuthenticationConfiguration; import com.azure.resourcemanager.healthcareapis.models.PrivateEndpointConnection; import com.azure.resourcemanager.healthcareapis.models.ProvisioningState; @@ -27,6 +28,12 @@ public final class DicomServiceProperties { @JsonProperty(value = "authenticationConfiguration") private DicomServiceAuthenticationConfiguration authenticationConfiguration; + /* + * Dicom Service Cors configuration. + */ + @JsonProperty(value = "corsConfiguration") + private CorsConfiguration corsConfiguration; + /* * The url of the Dicom Services. */ @@ -34,15 +41,13 @@ public final class DicomServiceProperties { private String serviceUrl; /* - * The list of private endpoint connections that are set up for this - * resource. + * The list of private endpoint connections that are set up for this resource. */ @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY) private List privateEndpointConnections; /* - * Control permission for data plane traffic coming from public networks - * while private endpoint is enabled. + * Control permission for data plane traffic coming from public networks while private endpoint is enabled. */ @JsonProperty(value = "publicNetworkAccess") private PublicNetworkAccess publicNetworkAccess; @@ -77,6 +82,26 @@ public DicomServiceProperties withAuthenticationConfiguration( return this; } + /** + * Get the corsConfiguration property: Dicom Service Cors configuration. + * + * @return the corsConfiguration value. + */ + public CorsConfiguration corsConfiguration() { + return this.corsConfiguration; + } + + /** + * Set the corsConfiguration property: Dicom Service Cors configuration. + * + * @param corsConfiguration the corsConfiguration value to set. + * @return the DicomServiceProperties object itself. + */ + public DicomServiceProperties withCorsConfiguration(CorsConfiguration corsConfiguration) { + this.corsConfiguration = corsConfiguration; + return this; + } + /** * Get the serviceUrl property: The url of the Dicom Services. * @@ -127,6 +152,9 @@ public void validate() { if (authenticationConfiguration() != null) { authenticationConfiguration().validate(); } + if (corsConfiguration() != null) { + corsConfiguration().validate(); + } if (privateEndpointConnections() != null) { privateEndpointConnections().forEach(e -> e.validate()); } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/FhirServiceInner.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/FhirServiceInner.java index 070bacd4cfaee..c4e8ddf7fcf35 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/FhirServiceInner.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/FhirServiceInner.java @@ -11,6 +11,7 @@ import com.azure.resourcemanager.healthcareapis.models.FhirServiceAuthenticationConfiguration; import com.azure.resourcemanager.healthcareapis.models.FhirServiceCorsConfiguration; import com.azure.resourcemanager.healthcareapis.models.FhirServiceExportConfiguration; +import com.azure.resourcemanager.healthcareapis.models.FhirServiceImportConfiguration; import com.azure.resourcemanager.healthcareapis.models.FhirServiceKind; import com.azure.resourcemanager.healthcareapis.models.PrivateEndpointConnection; import com.azure.resourcemanager.healthcareapis.models.ProvisioningState; @@ -45,8 +46,7 @@ public final class FhirServiceInner extends TaggedResource { private SystemData systemData; /* - * Setting indicating whether the service has a managed identity associated - * with it. + * Setting indicating whether the service has a managed identity associated with it. */ @JsonProperty(value = "identity") private ServiceManagedIdentityIdentity identity; @@ -323,6 +323,29 @@ public FhirServiceInner withResourceVersionPolicyConfiguration( return this; } + /** + * Get the importConfiguration property: Fhir Service import configuration. + * + * @return the importConfiguration value. + */ + public FhirServiceImportConfiguration importConfiguration() { + return this.innerProperties() == null ? null : this.innerProperties().importConfiguration(); + } + + /** + * Set the importConfiguration property: Fhir Service import configuration. + * + * @param importConfiguration the importConfiguration value to set. + * @return the FhirServiceInner object itself. + */ + public FhirServiceInner withImportConfiguration(FhirServiceImportConfiguration importConfiguration) { + if (this.innerProperties() == null) { + this.innerProperties = new FhirServiceProperties(); + } + this.innerProperties().withImportConfiguration(importConfiguration); + return this; + } + /** * Validates the instance. * diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/FhirServiceProperties.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/FhirServiceProperties.java index 21ce3ec4ad878..64065a6b97120 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/FhirServiceProperties.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/FhirServiceProperties.java @@ -10,6 +10,7 @@ import com.azure.resourcemanager.healthcareapis.models.FhirServiceAuthenticationConfiguration; import com.azure.resourcemanager.healthcareapis.models.FhirServiceCorsConfiguration; import com.azure.resourcemanager.healthcareapis.models.FhirServiceExportConfiguration; +import com.azure.resourcemanager.healthcareapis.models.FhirServiceImportConfiguration; import com.azure.resourcemanager.healthcareapis.models.PrivateEndpointConnection; import com.azure.resourcemanager.healthcareapis.models.ProvisioningState; import com.azure.resourcemanager.healthcareapis.models.PublicNetworkAccess; @@ -58,15 +59,13 @@ public final class FhirServiceProperties { private FhirServiceExportConfiguration exportConfiguration; /* - * The list of private endpoint connections that are set up for this - * resource. + * The list of private endpoint connections that are set up for this resource. */ @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY) private List privateEndpointConnections; /* - * Control permission for data plane traffic coming from public networks - * while private endpoint is enabled. + * Control permission for data plane traffic coming from public networks while private endpoint is enabled. */ @JsonProperty(value = "publicNetworkAccess") private PublicNetworkAccess publicNetworkAccess; @@ -83,6 +82,12 @@ public final class FhirServiceProperties { @JsonProperty(value = "resourceVersionPolicyConfiguration") private ResourceVersionPolicyConfiguration resourceVersionPolicyConfiguration; + /* + * Fhir Service import configuration. + */ + @JsonProperty(value = "importConfiguration") + private FhirServiceImportConfiguration importConfiguration; + /** * Get the provisioningState property: The provisioning state. * @@ -255,6 +260,26 @@ public FhirServiceProperties withResourceVersionPolicyConfiguration( return this; } + /** + * Get the importConfiguration property: Fhir Service import configuration. + * + * @return the importConfiguration value. + */ + public FhirServiceImportConfiguration importConfiguration() { + return this.importConfiguration; + } + + /** + * Set the importConfiguration property: Fhir Service import configuration. + * + * @param importConfiguration the importConfiguration value to set. + * @return the FhirServiceProperties object itself. + */ + public FhirServiceProperties withImportConfiguration(FhirServiceImportConfiguration importConfiguration) { + this.importConfiguration = importConfiguration; + return this; + } + /** * Validates the instance. * @@ -282,5 +307,8 @@ public void validate() { if (resourceVersionPolicyConfiguration() != null) { resourceVersionPolicyConfiguration().validate(); } + if (importConfiguration() != null) { + importConfiguration().validate(); + } } } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/IotConnectorInner.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/IotConnectorInner.java index bf455447bee16..c902e42488629 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/IotConnectorInner.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/IotConnectorInner.java @@ -30,8 +30,7 @@ public final class IotConnectorInner extends TaggedResource { private SystemData systemData; /* - * Setting indicating whether the service has a managed identity associated - * with it. + * Setting indicating whether the service has a managed identity associated with it. */ @JsonProperty(value = "identity") private ServiceManagedIdentityIdentity identity; diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/OperationDetailInner.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/OperationDetailInner.java index be1e068e22576..ee24e68767d4c 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/OperationDetailInner.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/OperationDetailInner.java @@ -20,8 +20,8 @@ public final class OperationDetailInner { private String name; /* - * Whether the operation applies to data-plane. This is "true" for - * data-plane operations and "false" for ARM/control-plane operations. + * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for + * ARM/control-plane operations. */ @JsonProperty(value = "isDataAction", access = JsonProperty.Access.WRITE_ONLY) private Boolean isDataAction; @@ -39,8 +39,7 @@ public final class OperationDetailInner { private String origin; /* - * Enum. Indicates the action type. "Internal" refers to actions that are - * for internal only APIs. + * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ @JsonProperty(value = "actionType", access = JsonProperty.Access.WRITE_ONLY) private ActionType actionType; diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/PrivateEndpointConnectionProperties.java index 12cae312f3a42..1410c6cbbe1fb 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/PrivateEndpointConnectionProperties.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/PrivateEndpointConnectionProperties.java @@ -21,8 +21,7 @@ public final class PrivateEndpointConnectionProperties { private PrivateEndpoint privateEndpoint; /* - * A collection of information about the state of the connection between - * service consumer and provider. + * A collection of information about the state of the connection between service consumer and provider. */ @JsonProperty(value = "privateLinkServiceConnectionState", required = true) private PrivateLinkServiceConnectionState privateLinkServiceConnectionState; diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/ServicesPropertiesUpdateParameters.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/ServicesPropertiesUpdateParameters.java index 7d6abc07509a8..b85d275c6962a 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/ServicesPropertiesUpdateParameters.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/fluent/models/ServicesPropertiesUpdateParameters.java @@ -12,8 +12,7 @@ @Fluent public final class ServicesPropertiesUpdateParameters { /* - * Control permission for data plane traffic coming from public networks - * while private endpoint is enabled. + * Control permission for data plane traffic coming from public networks while private endpoint is enabled. */ @JsonProperty(value = "publicNetworkAccess") private PublicNetworkAccess publicNetworkAccess; diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/AnalyticsConnectorImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/AnalyticsConnectorImpl.java new file mode 100644 index 0000000000000..e8b53814c90f8 --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/AnalyticsConnectorImpl.java @@ -0,0 +1,229 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.implementation; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.healthcareapis.fluent.models.AnalyticsConnectorInner; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnector; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorDataDestination; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorDataSource; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorMapping; +import com.azure.resourcemanager.healthcareapis.models.ProvisioningState; +import com.azure.resourcemanager.healthcareapis.models.ServiceManagedIdentityIdentity; +import java.util.Collections; +import java.util.Map; + +public final class AnalyticsConnectorImpl + implements AnalyticsConnector, AnalyticsConnector.Definition, AnalyticsConnector.Update { + private AnalyticsConnectorInner innerObject; + + private final com.azure.resourcemanager.healthcareapis.HealthcareApisManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String etag() { + return this.innerModel().etag(); + } + + public String location() { + return this.innerModel().location(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public ServiceManagedIdentityIdentity identity() { + return this.innerModel().identity(); + } + + public ProvisioningState provisioningState() { + return this.innerModel().provisioningState(); + } + + public AnalyticsConnectorDataSource dataSourceConfiguration() { + return this.innerModel().dataSourceConfiguration(); + } + + public AnalyticsConnectorMapping dataMappingConfiguration() { + return this.innerModel().dataMappingConfiguration(); + } + + public AnalyticsConnectorDataDestination dataDestinationConfiguration() { + return this.innerModel().dataDestinationConfiguration(); + } + + public Region region() { + return Region.fromName(this.regionName()); + } + + public String regionName() { + return this.location(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public AnalyticsConnectorInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.healthcareapis.HealthcareApisManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String workspaceName; + + private String analyticsConnectorName; + + public AnalyticsConnectorImpl withExistingWorkspace(String resourceGroupName, String workspaceName) { + this.resourceGroupName = resourceGroupName; + this.workspaceName = workspaceName; + return this; + } + + public AnalyticsConnector create() { + this.innerObject = + serviceManager + .serviceClient() + .getAnalyticsConnectors() + .createOrUpdate( + resourceGroupName, workspaceName, analyticsConnectorName, this.innerModel(), Context.NONE); + return this; + } + + public AnalyticsConnector create(Context context) { + this.innerObject = + serviceManager + .serviceClient() + .getAnalyticsConnectors() + .createOrUpdate(resourceGroupName, workspaceName, analyticsConnectorName, this.innerModel(), context); + return this; + } + + AnalyticsConnectorImpl(String name, com.azure.resourcemanager.healthcareapis.HealthcareApisManager serviceManager) { + this.innerObject = new AnalyticsConnectorInner(); + this.serviceManager = serviceManager; + this.analyticsConnectorName = name; + } + + public AnalyticsConnectorImpl update() { + return this; + } + + public AnalyticsConnector apply() { + this.innerObject = + serviceManager + .serviceClient() + .getAnalyticsConnectors() + .createOrUpdate( + resourceGroupName, workspaceName, analyticsConnectorName, this.innerModel(), Context.NONE); + return this; + } + + public AnalyticsConnector apply(Context context) { + this.innerObject = + serviceManager + .serviceClient() + .getAnalyticsConnectors() + .createOrUpdate(resourceGroupName, workspaceName, analyticsConnectorName, this.innerModel(), context); + return this; + } + + AnalyticsConnectorImpl( + AnalyticsConnectorInner innerObject, + com.azure.resourcemanager.healthcareapis.HealthcareApisManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.analyticsConnectorName = Utils.getValueFromIdByName(innerObject.id(), "analyticsconnectors"); + } + + public AnalyticsConnector refresh() { + this.innerObject = + serviceManager + .serviceClient() + .getAnalyticsConnectors() + .getWithResponse(resourceGroupName, workspaceName, analyticsConnectorName, Context.NONE) + .getValue(); + return this; + } + + public AnalyticsConnector refresh(Context context) { + this.innerObject = + serviceManager + .serviceClient() + .getAnalyticsConnectors() + .getWithResponse(resourceGroupName, workspaceName, analyticsConnectorName, context) + .getValue(); + return this; + } + + public AnalyticsConnectorImpl withRegion(Region location) { + this.innerModel().withLocation(location.toString()); + return this; + } + + public AnalyticsConnectorImpl withRegion(String location) { + this.innerModel().withLocation(location); + return this; + } + + public AnalyticsConnectorImpl withTags(Map tags) { + this.innerModel().withTags(tags); + return this; + } + + public AnalyticsConnectorImpl withEtag(String etag) { + this.innerModel().withEtag(etag); + return this; + } + + public AnalyticsConnectorImpl withIdentity(ServiceManagedIdentityIdentity identity) { + this.innerModel().withIdentity(identity); + return this; + } + + public AnalyticsConnectorImpl withDataSourceConfiguration(AnalyticsConnectorDataSource dataSourceConfiguration) { + this.innerModel().withDataSourceConfiguration(dataSourceConfiguration); + return this; + } + + public AnalyticsConnectorImpl withDataMappingConfiguration(AnalyticsConnectorMapping dataMappingConfiguration) { + this.innerModel().withDataMappingConfiguration(dataMappingConfiguration); + return this; + } + + public AnalyticsConnectorImpl withDataDestinationConfiguration( + AnalyticsConnectorDataDestination dataDestinationConfiguration) { + this.innerModel().withDataDestinationConfiguration(dataDestinationConfiguration); + return this; + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/AnalyticsConnectorOperationsClientImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/AnalyticsConnectorOperationsClientImpl.java new file mode 100644 index 0000000000000..18e21f2616b61 --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/AnalyticsConnectorOperationsClientImpl.java @@ -0,0 +1,425 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.healthcareapis.fluent.AnalyticsConnectorOperationsClient; +import com.azure.resourcemanager.healthcareapis.fluent.models.AnalyticsConnectorInner; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorPatchResource; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** An instance of this class provides access to all the operations defined in AnalyticsConnectorOperationsClient. */ +public final class AnalyticsConnectorOperationsClientImpl implements AnalyticsConnectorOperationsClient { + /** The proxy service used to perform REST calls. */ + private final AnalyticsConnectorOperationsService service; + + /** The service client containing this operation class. */ + private final HealthcareApisManagementClientImpl client; + + /** + * Initializes an instance of AnalyticsConnectorOperationsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + AnalyticsConnectorOperationsClientImpl(HealthcareApisManagementClientImpl client) { + this.service = + RestProxy + .create( + AnalyticsConnectorOperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for HealthcareApisManagementClientAnalyticsConnectorOperations to be used + * by the proxy service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "HealthcareApisManage") + private interface AnalyticsConnectorOperationsService { + @Headers({"Content-Type: application/json"}) + @Patch( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis" + + "/workspaces/{workspaceName}/analyticsconnectors/{analyticsConnectorName}") + @ExpectedResponses({200, 202}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> update( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("workspaceName") String workspaceName, + @PathParam("analyticsConnectorName") String analyticsConnectorName, + @BodyParam("application/json") AnalyticsConnectorPatchResource analyticsConnectorPatchResource, + @HeaderParam("Accept") String accept, + Context context); + } + + /** + * Patch Analytics Connector Service details. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnectorPatchResource The parameters for updating a Analytics Connector. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return analytics Connector definition along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorPatchResource analyticsConnectorPatchResource) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (workspaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); + } + if (analyticsConnectorName == null) { + return Mono + .error( + new IllegalArgumentException("Parameter analyticsConnectorName is required and cannot be null.")); + } + if (analyticsConnectorPatchResource == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter analyticsConnectorPatchResource is required and cannot be null.")); + } else { + analyticsConnectorPatchResource.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .update( + this.client.getEndpoint(), + resourceGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + workspaceName, + analyticsConnectorName, + analyticsConnectorPatchResource, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Patch Analytics Connector Service details. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnectorPatchResource The parameters for updating a Analytics Connector. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return analytics Connector definition along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorPatchResource analyticsConnectorPatchResource, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (workspaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); + } + if (analyticsConnectorName == null) { + return Mono + .error( + new IllegalArgumentException("Parameter analyticsConnectorName is required and cannot be null.")); + } + if (analyticsConnectorPatchResource == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter analyticsConnectorPatchResource is required and cannot be null.")); + } else { + analyticsConnectorPatchResource.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .update( + this.client.getEndpoint(), + resourceGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + workspaceName, + analyticsConnectorName, + analyticsConnectorPatchResource, + accept, + context); + } + + /** + * Patch Analytics Connector Service details. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnectorPatchResource The parameters for updating a Analytics Connector. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of analytics Connector definition. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, AnalyticsConnectorInner> beginUpdateAsync( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorPatchResource analyticsConnectorPatchResource) { + Mono>> mono = + updateWithResponseAsync( + resourceGroupName, workspaceName, analyticsConnectorName, analyticsConnectorPatchResource); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + AnalyticsConnectorInner.class, + AnalyticsConnectorInner.class, + this.client.getContext()); + } + + /** + * Patch Analytics Connector Service details. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnectorPatchResource The parameters for updating a Analytics Connector. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of analytics Connector definition. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, AnalyticsConnectorInner> beginUpdateAsync( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorPatchResource analyticsConnectorPatchResource, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = + updateWithResponseAsync( + resourceGroupName, workspaceName, analyticsConnectorName, analyticsConnectorPatchResource, context); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + AnalyticsConnectorInner.class, + AnalyticsConnectorInner.class, + context); + } + + /** + * Patch Analytics Connector Service details. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnectorPatchResource The parameters for updating a Analytics Connector. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of analytics Connector definition. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AnalyticsConnectorInner> beginUpdate( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorPatchResource analyticsConnectorPatchResource) { + return beginUpdateAsync( + resourceGroupName, workspaceName, analyticsConnectorName, analyticsConnectorPatchResource) + .getSyncPoller(); + } + + /** + * Patch Analytics Connector Service details. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnectorPatchResource The parameters for updating a Analytics Connector. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of analytics Connector definition. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AnalyticsConnectorInner> beginUpdate( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorPatchResource analyticsConnectorPatchResource, + Context context) { + return beginUpdateAsync( + resourceGroupName, workspaceName, analyticsConnectorName, analyticsConnectorPatchResource, context) + .getSyncPoller(); + } + + /** + * Patch Analytics Connector Service details. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnectorPatchResource The parameters for updating a Analytics Connector. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return analytics Connector definition on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorPatchResource analyticsConnectorPatchResource) { + return beginUpdateAsync( + resourceGroupName, workspaceName, analyticsConnectorName, analyticsConnectorPatchResource) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Patch Analytics Connector Service details. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnectorPatchResource The parameters for updating a Analytics Connector. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return analytics Connector definition on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorPatchResource analyticsConnectorPatchResource, + Context context) { + return beginUpdateAsync( + resourceGroupName, workspaceName, analyticsConnectorName, analyticsConnectorPatchResource, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Patch Analytics Connector Service details. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnectorPatchResource The parameters for updating a Analytics Connector. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return analytics Connector definition. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AnalyticsConnectorInner update( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorPatchResource analyticsConnectorPatchResource) { + return updateAsync(resourceGroupName, workspaceName, analyticsConnectorName, analyticsConnectorPatchResource) + .block(); + } + + /** + * Patch Analytics Connector Service details. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnectorPatchResource The parameters for updating a Analytics Connector. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return analytics Connector definition. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AnalyticsConnectorInner update( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorPatchResource analyticsConnectorPatchResource, + Context context) { + return updateAsync( + resourceGroupName, workspaceName, analyticsConnectorName, analyticsConnectorPatchResource, context) + .block(); + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/AnalyticsConnectorOperationsImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/AnalyticsConnectorOperationsImpl.java new file mode 100644 index 0000000000000..0fcc7847d3bd1 --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/AnalyticsConnectorOperationsImpl.java @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.implementation; + +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.healthcareapis.fluent.AnalyticsConnectorOperationsClient; +import com.azure.resourcemanager.healthcareapis.fluent.models.AnalyticsConnectorInner; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnector; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorOperations; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorPatchResource; + +public final class AnalyticsConnectorOperationsImpl implements AnalyticsConnectorOperations { + private static final ClientLogger LOGGER = new ClientLogger(AnalyticsConnectorOperationsImpl.class); + + private final AnalyticsConnectorOperationsClient innerClient; + + private final com.azure.resourcemanager.healthcareapis.HealthcareApisManager serviceManager; + + public AnalyticsConnectorOperationsImpl( + AnalyticsConnectorOperationsClient innerClient, + com.azure.resourcemanager.healthcareapis.HealthcareApisManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public AnalyticsConnector update( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorPatchResource analyticsConnectorPatchResource) { + AnalyticsConnectorInner inner = + this + .serviceClient() + .update(resourceGroupName, workspaceName, analyticsConnectorName, analyticsConnectorPatchResource); + if (inner != null) { + return new AnalyticsConnectorImpl(inner, this.manager()); + } else { + return null; + } + } + + public AnalyticsConnector update( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorPatchResource analyticsConnectorPatchResource, + Context context) { + AnalyticsConnectorInner inner = + this + .serviceClient() + .update( + resourceGroupName, workspaceName, analyticsConnectorName, analyticsConnectorPatchResource, context); + if (inner != null) { + return new AnalyticsConnectorImpl(inner, this.manager()); + } else { + return null; + } + } + + private AnalyticsConnectorOperationsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.healthcareapis.HealthcareApisManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/AnalyticsConnectorsClientImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/AnalyticsConnectorsClientImpl.java new file mode 100644 index 0000000000000..ad7f7e19a4032 --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/AnalyticsConnectorsClientImpl.java @@ -0,0 +1,1157 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.healthcareapis.fluent.AnalyticsConnectorsClient; +import com.azure.resourcemanager.healthcareapis.fluent.models.AnalyticsConnectorInner; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorCollection; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** An instance of this class provides access to all the operations defined in AnalyticsConnectorsClient. */ +public final class AnalyticsConnectorsClientImpl implements AnalyticsConnectorsClient { + /** The proxy service used to perform REST calls. */ + private final AnalyticsConnectorsService service; + + /** The service client containing this operation class. */ + private final HealthcareApisManagementClientImpl client; + + /** + * Initializes an instance of AnalyticsConnectorsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + AnalyticsConnectorsClientImpl(HealthcareApisManagementClientImpl client) { + this.service = + RestProxy.create(AnalyticsConnectorsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for HealthcareApisManagementClientAnalyticsConnectors to be used by the + * proxy service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "HealthcareApisManage") + private interface AnalyticsConnectorsService { + @Headers({"Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis" + + "/workspaces/{workspaceName}/analyticsconnectors") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByWorkspace( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis" + + "/workspaces/{workspaceName}/analyticsconnectors/{analyticsConnectorName}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("workspaceName") String workspaceName, + @PathParam("analyticsConnectorName") String analyticsConnectorName, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Put( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis" + + "/workspaces/{workspaceName}/analyticsconnectors/{analyticsConnectorName}") + @ExpectedResponses({200, 201}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("workspaceName") String workspaceName, + @PathParam("analyticsConnectorName") String analyticsConnectorName, + @BodyParam("application/json") AnalyticsConnectorInner analyticsConnector, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Delete( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis" + + "/workspaces/{workspaceName}/analyticsconnectors/{analyticsConnectorName}") + @ExpectedResponses({200, 202, 204}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete( + @HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("workspaceName") String workspaceName, + @PathParam("analyticsConnectorName") String analyticsConnectorName, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByWorkspaceNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, + Context context); + } + + /** + * Lists all Analytics 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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a collection of Analytics Connectors along with {@link PagedResponse} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByWorkspaceSinglePageAsync( + String resourceGroupName, String workspaceName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (workspaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .listByWorkspace( + this.client.getEndpoint(), + resourceGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + workspaceName, + accept, + context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists all Analytics 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 context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a collection of Analytics Connectors along with {@link PagedResponse} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByWorkspaceSinglePageAsync( + String resourceGroupName, String workspaceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (workspaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByWorkspace( + this.client.getEndpoint(), + resourceGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + workspaceName, + accept, + context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Lists all Analytics 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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a collection of Analytics Connectors as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName) { + return new PagedFlux<>( + () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), + nextLink -> listByWorkspaceNextSinglePageAsync(nextLink)); + } + + /** + * Lists all Analytics 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 context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a collection of Analytics Connectors as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByWorkspaceAsync( + String resourceGroupName, String workspaceName, Context context) { + return new PagedFlux<>( + () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, context), + nextLink -> listByWorkspaceNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists all Analytics 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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a collection of Analytics Connectors as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { + return new PagedIterable<>(listByWorkspaceAsync(resourceGroupName, workspaceName)); + } + + /** + * Lists all Analytics 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 context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a collection of Analytics Connectors as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByWorkspace( + String resourceGroupName, String workspaceName, Context context) { + return new PagedIterable<>(listByWorkspaceAsync(resourceGroupName, workspaceName, context)); + } + + /** + * Gets the properties of the specified Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the properties of the specified Analytics Connector along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync( + String resourceGroupName, String workspaceName, String analyticsConnectorName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (workspaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); + } + if (analyticsConnectorName == null) { + return Mono + .error( + new IllegalArgumentException("Parameter analyticsConnectorName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .get( + this.client.getEndpoint(), + resourceGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + workspaceName, + analyticsConnectorName, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the properties of the specified Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the properties of the specified Analytics Connector along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync( + String resourceGroupName, String workspaceName, String analyticsConnectorName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (workspaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); + } + if (analyticsConnectorName == null) { + return Mono + .error( + new IllegalArgumentException("Parameter analyticsConnectorName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .get( + this.client.getEndpoint(), + resourceGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + workspaceName, + analyticsConnectorName, + accept, + context); + } + + /** + * Gets the properties of the specified Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the properties of the specified Analytics Connector on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync( + String resourceGroupName, String workspaceName, String analyticsConnectorName) { + return getWithResponseAsync(resourceGroupName, workspaceName, analyticsConnectorName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the properties of the specified Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the properties of the specified Analytics Connector. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AnalyticsConnectorInner get(String resourceGroupName, String workspaceName, String analyticsConnectorName) { + return getAsync(resourceGroupName, workspaceName, analyticsConnectorName).block(); + } + + /** + * Gets the properties of the specified Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the properties of the specified Analytics Connector along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse( + String resourceGroupName, String workspaceName, String analyticsConnectorName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, analyticsConnectorName, context).block(); + } + + /** + * Creates or updates a Analytics 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 analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnector The parameters for creating or updating a Analytics Connector resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return analytics Connector definition along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorInner analyticsConnector) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (workspaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); + } + if (analyticsConnectorName == null) { + return Mono + .error( + new IllegalArgumentException("Parameter analyticsConnectorName is required and cannot be null.")); + } + if (analyticsConnector == null) { + return Mono + .error(new IllegalArgumentException("Parameter analyticsConnector is required and cannot be null.")); + } else { + analyticsConnector.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .createOrUpdate( + this.client.getEndpoint(), + resourceGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + workspaceName, + analyticsConnectorName, + analyticsConnector, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or updates a Analytics 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 analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnector The parameters for creating or updating a Analytics Connector resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return analytics Connector definition along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorInner analyticsConnector, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (workspaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); + } + if (analyticsConnectorName == null) { + return Mono + .error( + new IllegalArgumentException("Parameter analyticsConnectorName is required and cannot be null.")); + } + if (analyticsConnector == null) { + return Mono + .error(new IllegalArgumentException("Parameter analyticsConnector is required and cannot be null.")); + } else { + analyticsConnector.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .createOrUpdate( + this.client.getEndpoint(), + resourceGroupName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + workspaceName, + analyticsConnectorName, + analyticsConnector, + accept, + context); + } + + /** + * Creates or updates a Analytics 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 analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnector The parameters for creating or updating a Analytics Connector resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of analytics Connector definition. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, AnalyticsConnectorInner> beginCreateOrUpdateAsync( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorInner analyticsConnector) { + Mono>> mono = + createOrUpdateWithResponseAsync( + resourceGroupName, workspaceName, analyticsConnectorName, analyticsConnector); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + AnalyticsConnectorInner.class, + AnalyticsConnectorInner.class, + this.client.getContext()); + } + + /** + * Creates or updates a Analytics 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 analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnector The parameters for creating or updating a Analytics Connector resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of analytics Connector definition. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, AnalyticsConnectorInner> beginCreateOrUpdateAsync( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorInner analyticsConnector, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = + createOrUpdateWithResponseAsync( + resourceGroupName, workspaceName, analyticsConnectorName, analyticsConnector, context); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + AnalyticsConnectorInner.class, + AnalyticsConnectorInner.class, + context); + } + + /** + * Creates or updates a Analytics 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 analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnector The parameters for creating or updating a Analytics Connector resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of analytics Connector definition. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AnalyticsConnectorInner> beginCreateOrUpdate( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorInner analyticsConnector) { + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, analyticsConnectorName, analyticsConnector) + .getSyncPoller(); + } + + /** + * Creates or updates a Analytics 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 analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnector The parameters for creating or updating a Analytics Connector resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of analytics Connector definition. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AnalyticsConnectorInner> beginCreateOrUpdate( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorInner analyticsConnector, + Context context) { + return beginCreateOrUpdateAsync( + resourceGroupName, workspaceName, analyticsConnectorName, analyticsConnector, context) + .getSyncPoller(); + } + + /** + * Creates or updates a Analytics 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 analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnector The parameters for creating or updating a Analytics Connector resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return analytics Connector definition on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorInner analyticsConnector) { + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, analyticsConnectorName, analyticsConnector) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates a Analytics 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 analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnector The parameters for creating or updating a Analytics Connector resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return analytics Connector definition on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorInner analyticsConnector, + Context context) { + return beginCreateOrUpdateAsync( + resourceGroupName, workspaceName, analyticsConnectorName, analyticsConnector, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates a Analytics 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 analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnector The parameters for creating or updating a Analytics Connector resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return analytics Connector definition. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AnalyticsConnectorInner createOrUpdate( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorInner analyticsConnector) { + return createOrUpdateAsync(resourceGroupName, workspaceName, analyticsConnectorName, analyticsConnector) + .block(); + } + + /** + * Creates or updates a Analytics 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 analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnector The parameters for creating or updating a Analytics Connector resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return analytics Connector definition. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AnalyticsConnectorInner createOrUpdate( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorInner analyticsConnector, + Context context) { + return createOrUpdateAsync( + resourceGroupName, workspaceName, analyticsConnectorName, analyticsConnector, context) + .block(); + } + + /** + * Deletes a Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync( + String resourceGroupName, String workspaceName, String analyticsConnectorName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (workspaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); + } + if (analyticsConnectorName == null) { + return Mono + .error( + new IllegalArgumentException("Parameter analyticsConnectorName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .delete( + this.client.getEndpoint(), + this.client.getApiVersion(), + this.client.getSubscriptionId(), + resourceGroupName, + workspaceName, + analyticsConnectorName, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes a Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync( + String resourceGroupName, String workspaceName, String analyticsConnectorName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (workspaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); + } + if (analyticsConnectorName == null) { + return Mono + .error( + new IllegalArgumentException("Parameter analyticsConnectorName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .delete( + this.client.getEndpoint(), + this.client.getApiVersion(), + this.client.getSubscriptionId(), + resourceGroupName, + workspaceName, + analyticsConnectorName, + accept, + context); + } + + /** + * Deletes a Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync( + String resourceGroupName, String workspaceName, String analyticsConnectorName) { + Mono>> mono = + deleteWithResponseAsync(resourceGroupName, workspaceName, analyticsConnectorName); + return this + .client + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + } + + /** + * Deletes a Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync( + String resourceGroupName, String workspaceName, String analyticsConnectorName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = + deleteWithResponseAsync(resourceGroupName, workspaceName, analyticsConnectorName, context); + return this + .client + .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + } + + /** + * Deletes a Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete( + String resourceGroupName, String workspaceName, String analyticsConnectorName) { + return beginDeleteAsync(resourceGroupName, workspaceName, analyticsConnectorName).getSyncPoller(); + } + + /** + * Deletes a Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete( + String resourceGroupName, String workspaceName, String analyticsConnectorName, Context context) { + return beginDeleteAsync(resourceGroupName, workspaceName, analyticsConnectorName, context).getSyncPoller(); + } + + /** + * Deletes a Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String workspaceName, String analyticsConnectorName) { + return beginDeleteAsync(resourceGroupName, workspaceName, analyticsConnectorName) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes a Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync( + String resourceGroupName, String workspaceName, String analyticsConnectorName, Context context) { + return beginDeleteAsync(resourceGroupName, workspaceName, analyticsConnectorName, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes a Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String workspaceName, String analyticsConnectorName) { + deleteAsync(resourceGroupName, workspaceName, analyticsConnectorName).block(); + } + + /** + * Deletes a Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String workspaceName, String analyticsConnectorName, Context context) { + deleteAsync(resourceGroupName, workspaceName, analyticsConnectorName, context).block(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a collection of Analytics Connectors along with {@link PagedResponse} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByWorkspaceNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a collection of Analytics Connectors along with {@link PagedResponse} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByWorkspaceNextSinglePageAsync( + String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/AnalyticsConnectorsImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/AnalyticsConnectorsImpl.java new file mode 100644 index 0000000000000..ad1dc8f1cd9b8 --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/AnalyticsConnectorsImpl.java @@ -0,0 +1,200 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.healthcareapis.fluent.AnalyticsConnectorsClient; +import com.azure.resourcemanager.healthcareapis.fluent.models.AnalyticsConnectorInner; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnector; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectors; + +public final class AnalyticsConnectorsImpl implements AnalyticsConnectors { + private static final ClientLogger LOGGER = new ClientLogger(AnalyticsConnectorsImpl.class); + + private final AnalyticsConnectorsClient innerClient; + + private final com.azure.resourcemanager.healthcareapis.HealthcareApisManager serviceManager; + + public AnalyticsConnectorsImpl( + AnalyticsConnectorsClient innerClient, + com.azure.resourcemanager.healthcareapis.HealthcareApisManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { + PagedIterable inner = + this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); + return Utils.mapPage(inner, inner1 -> new AnalyticsConnectorImpl(inner1, this.manager())); + } + + public PagedIterable listByWorkspace( + String resourceGroupName, String workspaceName, Context context) { + PagedIterable inner = + this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); + return Utils.mapPage(inner, inner1 -> new AnalyticsConnectorImpl(inner1, this.manager())); + } + + public AnalyticsConnector get(String resourceGroupName, String workspaceName, String analyticsConnectorName) { + AnalyticsConnectorInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, analyticsConnectorName); + if (inner != null) { + return new AnalyticsConnectorImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response getWithResponse( + String resourceGroupName, String workspaceName, String analyticsConnectorName, Context context) { + Response inner = + this.serviceClient().getWithResponse(resourceGroupName, workspaceName, analyticsConnectorName, context); + if (inner != null) { + return new SimpleResponse<>( + inner.getRequest(), + inner.getStatusCode(), + inner.getHeaders(), + new AnalyticsConnectorImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public void delete(String resourceGroupName, String workspaceName, String analyticsConnectorName) { + this.serviceClient().delete(resourceGroupName, workspaceName, analyticsConnectorName); + } + + public void delete(String resourceGroupName, String workspaceName, String analyticsConnectorName, Context context) { + this.serviceClient().delete(resourceGroupName, workspaceName, analyticsConnectorName, context); + } + + public AnalyticsConnector getById(String id) { + String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String + .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + if (workspaceName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + } + String analyticsConnectorName = Utils.getValueFromIdByName(id, "analyticsconnectors"); + if (analyticsConnectorName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String + .format( + "The resource ID '%s' is not valid. Missing path segment 'analyticsconnectors'.", id))); + } + return this.getWithResponse(resourceGroupName, workspaceName, analyticsConnectorName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String + .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + if (workspaceName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + } + String analyticsConnectorName = Utils.getValueFromIdByName(id, "analyticsconnectors"); + if (analyticsConnectorName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String + .format( + "The resource ID '%s' is not valid. Missing path segment 'analyticsconnectors'.", id))); + } + return this.getWithResponse(resourceGroupName, workspaceName, analyticsConnectorName, context); + } + + public void deleteById(String id) { + String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String + .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + if (workspaceName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + } + String analyticsConnectorName = Utils.getValueFromIdByName(id, "analyticsconnectors"); + if (analyticsConnectorName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String + .format( + "The resource ID '%s' is not valid. Missing path segment 'analyticsconnectors'.", id))); + } + this.delete(resourceGroupName, workspaceName, analyticsConnectorName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String + .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + if (workspaceName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + } + String analyticsConnectorName = Utils.getValueFromIdByName(id, "analyticsconnectors"); + if (analyticsConnectorName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String + .format( + "The resource ID '%s' is not valid. Missing path segment 'analyticsconnectors'.", id))); + } + this.delete(resourceGroupName, workspaceName, analyticsConnectorName, context); + } + + private AnalyticsConnectorsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.healthcareapis.HealthcareApisManager manager() { + return this.serviceManager; + } + + public AnalyticsConnectorImpl define(String name) { + return new AnalyticsConnectorImpl(name, this.manager()); + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/DicomServiceImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/DicomServiceImpl.java index ec4109244d4e9..36b2027b08214 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/DicomServiceImpl.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/DicomServiceImpl.java @@ -8,6 +8,7 @@ import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.healthcareapis.fluent.models.DicomServiceInner; +import com.azure.resourcemanager.healthcareapis.models.CorsConfiguration; import com.azure.resourcemanager.healthcareapis.models.DicomService; import com.azure.resourcemanager.healthcareapis.models.DicomServiceAuthenticationConfiguration; import com.azure.resourcemanager.healthcareapis.models.DicomServicePatchResource; @@ -69,6 +70,10 @@ public DicomServiceAuthenticationConfiguration authenticationConfiguration() { return this.innerModel().authenticationConfiguration(); } + public CorsConfiguration corsConfiguration() { + return this.innerModel().corsConfiguration(); + } + public String serviceUrl() { return this.innerModel().serviceUrl(); } @@ -94,6 +99,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public DicomServiceInner innerModel() { return this.innerObject; } @@ -234,6 +243,11 @@ public DicomServiceImpl withAuthenticationConfiguration( return this; } + public DicomServiceImpl withCorsConfiguration(CorsConfiguration corsConfiguration) { + this.innerModel().withCorsConfiguration(corsConfiguration); + return this; + } + public DicomServiceImpl withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) { this.innerModel().withPublicNetworkAccess(publicNetworkAccess); return this; diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/DicomServicesClientImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/DicomServicesClientImpl.java index 004f1b22d5a06..bafa9571b3c29 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/DicomServicesClientImpl.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/DicomServicesClientImpl.java @@ -462,14 +462,7 @@ private Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String workspaceName, String dicomServiceName) { return getWithResponseAsync(resourceGroupName, workspaceName, dicomServiceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1405,7 +1398,8 @@ public void delete(String resourceGroupName, String dicomServiceName, String wor /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1441,7 +1435,8 @@ private Mono> listByWorkspaceNextSinglePageAsyn /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/FhirDestinationsClientImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/FhirDestinationsClientImpl.java index 0efc5bbd87619..ed6e24c779366 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/FhirDestinationsClientImpl.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/FhirDestinationsClientImpl.java @@ -287,7 +287,8 @@ public PagedIterable listByIotConnector( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -324,7 +325,8 @@ private Mono> listByIotConnectorNextSingl /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/FhirServiceImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/FhirServiceImpl.java index 83ba53d917afd..ab022bc7aa13f 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/FhirServiceImpl.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/FhirServiceImpl.java @@ -14,6 +14,7 @@ import com.azure.resourcemanager.healthcareapis.models.FhirServiceAuthenticationConfiguration; import com.azure.resourcemanager.healthcareapis.models.FhirServiceCorsConfiguration; import com.azure.resourcemanager.healthcareapis.models.FhirServiceExportConfiguration; +import com.azure.resourcemanager.healthcareapis.models.FhirServiceImportConfiguration; import com.azure.resourcemanager.healthcareapis.models.FhirServiceKind; import com.azure.resourcemanager.healthcareapis.models.FhirServicePatchResource; import com.azure.resourcemanager.healthcareapis.models.PrivateEndpointConnection; @@ -122,6 +123,10 @@ public ResourceVersionPolicyConfiguration resourceVersionPolicyConfiguration() { return this.innerModel().resourceVersionPolicyConfiguration(); } + public FhirServiceImportConfiguration importConfiguration() { + return this.innerModel().importConfiguration(); + } + public Region region() { return Region.fromName(this.regionName()); } @@ -130,6 +135,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public FhirServiceInner innerModel() { return this.innerObject; } @@ -306,6 +315,11 @@ public FhirServiceImpl withResourceVersionPolicyConfiguration( return this; } + public FhirServiceImpl withImportConfiguration(FhirServiceImportConfiguration importConfiguration) { + this.innerModel().withImportConfiguration(importConfiguration); + return this; + } + private boolean isInCreateMode() { return this.innerModel().id() == null; } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/FhirServicesClientImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/FhirServicesClientImpl.java index efb9ac1aab339..03f0f200de57b 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/FhirServicesClientImpl.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/FhirServicesClientImpl.java @@ -460,14 +460,7 @@ private Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String workspaceName, String fhirServiceName) { return getWithResponseAsync(resourceGroupName, workspaceName, fhirServiceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1400,7 +1393,8 @@ public void delete(String resourceGroupName, String fhirServiceName, String work /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1435,7 +1429,8 @@ private Mono> listByWorkspaceNextSinglePageAsync /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/HealthcareApisManagementClientBuilder.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/HealthcareApisManagementClientBuilder.java index b0d813e6356d6..e9917246843c7 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/HealthcareApisManagementClientBuilder.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/HealthcareApisManagementClientBuilder.java @@ -119,27 +119,26 @@ public HealthcareApisManagementClientBuilder serializerAdapter(SerializerAdapter * @return an instance of HealthcareApisManagementClientImpl. */ public HealthcareApisManagementClientImpl buildClient() { - if (pipeline == null) { - this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); - } - if (endpoint == null) { - this.endpoint = "https://management.azure.com"; - } - if (environment == null) { - this.environment = AzureEnvironment.AZURE; - } - if (pipeline == null) { - this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); - } - if (defaultPollInterval == null) { - this.defaultPollInterval = Duration.ofSeconds(30); - } - if (serializerAdapter == null) { - this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter(); - } + String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; + AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; + HttpPipeline localPipeline = + (pipeline != null) + ? pipeline + : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); + Duration localDefaultPollInterval = + (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30); + SerializerAdapter localSerializerAdapter = + (serializerAdapter != null) + ? serializerAdapter + : SerializerFactory.createDefaultManagementSerializerAdapter(); HealthcareApisManagementClientImpl client = new HealthcareApisManagementClientImpl( - pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint); + localPipeline, + localSerializerAdapter, + localDefaultPollInterval, + localEnvironment, + subscriptionId, + localEndpoint); return client; } } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/HealthcareApisManagementClientImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/HealthcareApisManagementClientImpl.java index a08f4306d0278..63ff566ef52e0 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/HealthcareApisManagementClientImpl.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/HealthcareApisManagementClientImpl.java @@ -15,12 +15,15 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.management.polling.PollerFactory; import com.azure.core.util.Context; +import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.AsyncPollResponse; import com.azure.core.util.polling.LongRunningOperationStatus; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.serializer.SerializerAdapter; import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.healthcareapis.fluent.AnalyticsConnectorOperationsClient; +import com.azure.resourcemanager.healthcareapis.fluent.AnalyticsConnectorsClient; import com.azure.resourcemanager.healthcareapis.fluent.DicomServicesClient; import com.azure.resourcemanager.healthcareapis.fluent.FhirDestinationsClient; import com.azure.resourcemanager.healthcareapis.fluent.FhirServicesClient; @@ -41,7 +44,6 @@ import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.time.Duration; -import java.util.Map; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -252,6 +254,30 @@ public WorkspacePrivateLinkResourcesClient getWorkspacePrivateLinkResources() { return this.workspacePrivateLinkResources; } + /** The AnalyticsConnectorsClient object to access its operations. */ + private final AnalyticsConnectorsClient analyticsConnectors; + + /** + * Gets the AnalyticsConnectorsClient object to access its operations. + * + * @return the AnalyticsConnectorsClient object. + */ + public AnalyticsConnectorsClient getAnalyticsConnectors() { + return this.analyticsConnectors; + } + + /** The AnalyticsConnectorOperationsClient object to access its operations. */ + private final AnalyticsConnectorOperationsClient analyticsConnectorOperations; + + /** + * Gets the AnalyticsConnectorOperationsClient object to access its operations. + * + * @return the AnalyticsConnectorOperationsClient object. + */ + public AnalyticsConnectorOperationsClient getAnalyticsConnectorOperations() { + return this.analyticsConnectorOperations; + } + /** The OperationsClient object to access its operations. */ private final OperationsClient operations; @@ -298,7 +324,7 @@ public OperationResultsClient getOperationResults() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2021-11-01"; + this.apiVersion = "2022-10-01-preview"; this.services = new ServicesClientImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this); this.privateLinkResources = new PrivateLinkResourcesClientImpl(this); @@ -310,6 +336,8 @@ public OperationResultsClient getOperationResults() { this.fhirServices = new FhirServicesClientImpl(this); this.workspacePrivateEndpointConnections = new WorkspacePrivateEndpointConnectionsClientImpl(this); this.workspacePrivateLinkResources = new WorkspacePrivateLinkResourcesClientImpl(this); + this.analyticsConnectors = new AnalyticsConnectorsClientImpl(this); + this.analyticsConnectorOperations = new AnalyticsConnectorOperationsClientImpl(this); this.operations = new OperationsClientImpl(this); this.operationResults = new OperationResultsClientImpl(this); } @@ -330,10 +358,7 @@ public Context getContext() { * @return the merged context. */ public Context mergeContext(Context context) { - for (Map.Entry entry : this.getContext().getValues().entrySet()) { - context = context.addData(entry.getKey(), entry.getValue()); - } - return context; + return CoreUtils.mergeContexts(this.getContext(), context); } /** diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/IotConnectorFhirDestinationsClientImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/IotConnectorFhirDestinationsClientImpl.java index 8c2845d1b2d6b..5a52eac6fb276 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/IotConnectorFhirDestinationsClientImpl.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/IotConnectorFhirDestinationsClientImpl.java @@ -254,14 +254,7 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String workspaceName, String iotConnectorName, String fhirDestinationName) { return getWithResponseAsync(resourceGroupName, workspaceName, iotConnectorName, fhirDestinationName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/IotConnectorImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/IotConnectorImpl.java index 0009a79a9b13d..ad4c57bccca6a 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/IotConnectorImpl.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/IotConnectorImpl.java @@ -79,6 +79,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public IotConnectorInner innerModel() { return this.innerObject; } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/IotConnectorsClientImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/IotConnectorsClientImpl.java index 0e58cb28d26a6..15b56149044f8 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/IotConnectorsClientImpl.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/IotConnectorsClientImpl.java @@ -460,14 +460,7 @@ private Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String workspaceName, String iotConnectorName) { return getWithResponseAsync(resourceGroupName, workspaceName, iotConnectorName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1403,7 +1396,8 @@ public void delete(String resourceGroupName, String iotConnectorName, String wor /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1438,7 +1432,8 @@ private Mono> listByWorkspaceNextSinglePageAsyn /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/IotFhirDestinationImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/IotFhirDestinationImpl.java index d9de5b5c4bae8..54071826dfb86 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/IotFhirDestinationImpl.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/IotFhirDestinationImpl.java @@ -62,6 +62,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public IotFhirDestinationInner innerModel() { return this.innerObject; } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/OperationResultsClientImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/OperationResultsClientImpl.java index e3bd4ca8f9886..aea632c36877e 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/OperationResultsClientImpl.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/OperationResultsClientImpl.java @@ -175,15 +175,7 @@ private Mono> getWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String locationName, String operationResultId) { - return getWithResponseAsync(locationName, operationResultId) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + return getWithResponseAsync(locationName, operationResultId).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/OperationsClientImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/OperationsClientImpl.java index 51b364500210f..198c9d8e14119 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/OperationsClientImpl.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/OperationsClientImpl.java @@ -198,7 +198,8 @@ public PagedIterable list(Context context) { /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -234,7 +235,8 @@ private Mono> listNextSinglePageAsync(String /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/PrivateEndpointConnectionDescriptionImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/PrivateEndpointConnectionDescriptionImpl.java index 8099c37372a0f..6c06c060d0960 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/PrivateEndpointConnectionDescriptionImpl.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/PrivateEndpointConnectionDescriptionImpl.java @@ -49,6 +49,10 @@ public SystemData systemData() { return this.innerModel().systemData(); } + public String resourceGroupName() { + return resourceGroupName; + } + public PrivateEndpointConnectionDescriptionInner innerModel() { return this.innerObject; } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/PrivateEndpointConnectionsClientImpl.java index 4b97df8ef9bd3..cac84a320a916 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/PrivateEndpointConnectionsClientImpl.java @@ -437,14 +437,7 @@ private Mono> getWithRespons private Mono getAsync( String resourceGroupName, String resourceName, String privateEndpointConnectionName) { return getWithResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/PrivateLinkResourcesClientImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/PrivateLinkResourcesClientImpl.java index 80f387a2bcedc..9781fc754ff90 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/PrivateLinkResourcesClientImpl.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/PrivateLinkResourcesClientImpl.java @@ -196,14 +196,7 @@ private Mono> listByServ private Mono listByServiceAsync( String resourceGroupName, String resourceName) { return listByServiceWithResponseAsync(resourceGroupName, resourceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -359,14 +352,7 @@ private Mono> getWithResponseAsync private Mono getAsync( String resourceGroupName, String resourceName, String groupName) { return getWithResponseAsync(resourceGroupName, resourceName, groupName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/ServicesClientImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/ServicesClientImpl.java index 9620b3f36a21a..2666371453bbc 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/ServicesClientImpl.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/ServicesClientImpl.java @@ -295,14 +295,7 @@ private Mono> getByResourceGroupWithResponseA @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync(String resourceGroupName, String resourceName) { return getByResourceGroupWithResponseAsync(resourceGroupName, resourceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1545,14 +1538,7 @@ private Mono> checkNameAvailabilityW private Mono checkNameAvailabilityAsync( CheckNameAvailabilityParameters checkNameAvailabilityInputs) { return checkNameAvailabilityWithResponseAsync(checkNameAvailabilityInputs) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1591,7 +1577,8 @@ public Response checkNameAvailabilityWithResp /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1627,7 +1614,8 @@ private Mono> listNextSinglePageAsync(St /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1664,7 +1652,8 @@ private Mono> listNextSinglePageAsync(St /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1701,7 +1690,8 @@ private Mono> listByResourceGroupNextSin /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/ServicesDescriptionImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/ServicesDescriptionImpl.java index aa1e231881a4f..fd89f2e43d939 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/ServicesDescriptionImpl.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/ServicesDescriptionImpl.java @@ -76,6 +76,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public ServicesDescriptionInner innerModel() { return this.innerObject; } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/WorkspaceImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/WorkspaceImpl.java index cc5d1cef231e7..7839fbeed561e 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/WorkspaceImpl.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/WorkspaceImpl.java @@ -64,6 +64,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public WorkspaceInner innerModel() { return this.innerObject; } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/WorkspacePrivateEndpointConnectionsClientImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/WorkspacePrivateEndpointConnectionsClientImpl.java index 473e9e0191c2e..086357afc7205 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/WorkspacePrivateEndpointConnectionsClientImpl.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/WorkspacePrivateEndpointConnectionsClientImpl.java @@ -440,14 +440,7 @@ private Mono> getWithRespons private Mono getAsync( String resourceGroupName, String workspaceName, String privateEndpointConnectionName) { return getWithResponseAsync(resourceGroupName, workspaceName, privateEndpointConnectionName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/WorkspacePrivateLinkResourcesClientImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/WorkspacePrivateLinkResourcesClientImpl.java index bade5bfd6d562..5aff57ab5356c 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/WorkspacePrivateLinkResourcesClientImpl.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/WorkspacePrivateLinkResourcesClientImpl.java @@ -387,14 +387,7 @@ private Mono> getWithResponseAsync private Mono getAsync( String resourceGroupName, String workspaceName, String groupName) { return getWithResponseAsync(resourceGroupName, workspaceName, groupName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/WorkspacesClientImpl.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/WorkspacesClientImpl.java index 684bb57ae64c5..5eb9cc2d2d9c6 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/WorkspacesClientImpl.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/implementation/WorkspacesClientImpl.java @@ -591,14 +591,7 @@ private Mono> getByResourceGroupWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync(String resourceGroupName, String workspaceName) { return getByResourceGroupWithResponseAsync(resourceGroupName, workspaceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1415,7 +1408,8 @@ public void delete(String resourceGroupName, String workspaceName, Context conte /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1452,7 +1446,8 @@ private Mono> listBySubscriptionNextSinglePageAsyn /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1490,7 +1485,8 @@ private Mono> listBySubscriptionNextSinglePageAsyn /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1527,7 +1523,8 @@ private Mono> listByResourceGroupNextSinglePageAsy /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ActionType.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ActionType.java index 599b4f1b89290..eb620a8000fe2 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ActionType.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ActionType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ActionType. */ +/** Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ public final class ActionType extends ExpandableStringEnum { /** Static value Internal for ActionType. */ public static final ActionType INTERNAL = fromString("Internal"); @@ -24,7 +24,11 @@ public static ActionType fromString(String name) { return fromString(name, ActionType.class); } - /** @return known ActionType values. */ + /** + * Gets known ActionType values. + * + * @return known ActionType values. + */ public static Collection values() { return values(ActionType.class); } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnector.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnector.java new file mode 100644 index 0000000000000..fc8f7fafc811f --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnector.java @@ -0,0 +1,366 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.models; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.healthcareapis.fluent.models.AnalyticsConnectorInner; +import java.util.Map; + +/** An immutable client-side representation of AnalyticsConnector. */ +public interface AnalyticsConnector { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the etag property: An etag associated with the resource, used for optimistic concurrency when editing it. + * + * @return the etag value. + */ + String etag(); + + /** + * Gets the location property: The resource location. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the systemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the identity property: Setting indicating whether the service has a managed identity associated with it. + * + * @return the identity value. + */ + ServiceManagedIdentityIdentity identity(); + + /** + * Gets the provisioningState property: The provisioning state. + * + * @return the provisioningState value. + */ + ProvisioningState provisioningState(); + + /** + * Gets the dataSourceConfiguration property: Data source for Analytics Connector. + * + * @return the dataSourceConfiguration value. + */ + AnalyticsConnectorDataSource dataSourceConfiguration(); + + /** + * Gets the dataMappingConfiguration property: Data mapping configuration for Analytics Connector. + * + * @return the dataMappingConfiguration value. + */ + AnalyticsConnectorMapping dataMappingConfiguration(); + + /** + * Gets the dataDestinationConfiguration property: Data destination configuration for Analytics Connector. + * + * @return the dataDestinationConfiguration value. + */ + AnalyticsConnectorDataDestination dataDestinationConfiguration(); + + /** + * Gets the region of the resource. + * + * @return the region of the resource. + */ + Region region(); + + /** + * Gets the name of the resource region. + * + * @return the name of the resource region. + */ + String regionName(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.healthcareapis.fluent.models.AnalyticsConnectorInner object. + * + * @return the inner object. + */ + AnalyticsConnectorInner innerModel(); + + /** The entirety of the AnalyticsConnector definition. */ + interface Definition + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + /** The AnalyticsConnector definition stages. */ + interface DefinitionStages { + /** The first stage of the AnalyticsConnector definition. */ + interface Blank extends WithParentResource { + } + /** The stage of the AnalyticsConnector definition allowing to specify parent resource. */ + interface WithParentResource { + /** + * Specifies resourceGroupName, workspaceName. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @return the next definition stage. + */ + WithCreate withExistingWorkspace(String resourceGroupName, String workspaceName); + } + /** + * The stage of the AnalyticsConnector definition which contains all the minimum required properties for the + * resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate + extends DefinitionStages.WithLocation, + DefinitionStages.WithTags, + DefinitionStages.WithEtag, + DefinitionStages.WithIdentity, + DefinitionStages.WithDataSourceConfiguration, + DefinitionStages.WithDataMappingConfiguration, + DefinitionStages.WithDataDestinationConfiguration { + /** + * Executes the create request. + * + * @return the created resource. + */ + AnalyticsConnector create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + AnalyticsConnector create(Context context); + } + /** The stage of the AnalyticsConnector definition allowing to specify location. */ + interface WithLocation { + /** + * Specifies the region for the resource. + * + * @param location The resource location. + * @return the next definition stage. + */ + WithCreate withRegion(Region location); + + /** + * Specifies the region for the resource. + * + * @param location The resource location. + * @return the next definition stage. + */ + WithCreate withRegion(String location); + } + /** The stage of the AnalyticsConnector definition allowing to specify tags. */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + /** The stage of the AnalyticsConnector definition allowing to specify etag. */ + interface WithEtag { + /** + * Specifies the etag property: An etag associated with the resource, used for optimistic concurrency when + * editing it.. + * + * @param etag An etag associated with the resource, used for optimistic concurrency when editing it. + * @return the next definition stage. + */ + WithCreate withEtag(String etag); + } + /** The stage of the AnalyticsConnector definition allowing to specify identity. */ + interface WithIdentity { + /** + * Specifies the identity property: Setting indicating whether the service has a managed identity associated + * with it.. + * + * @param identity Setting indicating whether the service has a managed identity associated with it. + * @return the next definition stage. + */ + WithCreate withIdentity(ServiceManagedIdentityIdentity identity); + } + /** The stage of the AnalyticsConnector definition allowing to specify dataSourceConfiguration. */ + interface WithDataSourceConfiguration { + /** + * Specifies the dataSourceConfiguration property: Data source for Analytics Connector.. + * + * @param dataSourceConfiguration Data source for Analytics Connector. + * @return the next definition stage. + */ + WithCreate withDataSourceConfiguration(AnalyticsConnectorDataSource dataSourceConfiguration); + } + /** The stage of the AnalyticsConnector definition allowing to specify dataMappingConfiguration. */ + interface WithDataMappingConfiguration { + /** + * Specifies the dataMappingConfiguration property: Data mapping configuration for Analytics Connector.. + * + * @param dataMappingConfiguration Data mapping configuration for Analytics Connector. + * @return the next definition stage. + */ + WithCreate withDataMappingConfiguration(AnalyticsConnectorMapping dataMappingConfiguration); + } + /** The stage of the AnalyticsConnector definition allowing to specify dataDestinationConfiguration. */ + interface WithDataDestinationConfiguration { + /** + * Specifies the dataDestinationConfiguration property: Data destination configuration for Analytics + * Connector.. + * + * @param dataDestinationConfiguration Data destination configuration for Analytics Connector. + * @return the next definition stage. + */ + WithCreate withDataDestinationConfiguration(AnalyticsConnectorDataDestination dataDestinationConfiguration); + } + } + /** + * Begins update for the AnalyticsConnector resource. + * + * @return the stage of resource update. + */ + AnalyticsConnector.Update update(); + + /** The template for AnalyticsConnector update. */ + interface Update + extends UpdateStages.WithTags, + UpdateStages.WithEtag, + UpdateStages.WithIdentity, + UpdateStages.WithDataSourceConfiguration, + UpdateStages.WithDataMappingConfiguration, + UpdateStages.WithDataDestinationConfiguration { + /** + * Executes the update request. + * + * @return the updated resource. + */ + AnalyticsConnector apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + AnalyticsConnector apply(Context context); + } + /** The AnalyticsConnector update stages. */ + interface UpdateStages { + /** The stage of the AnalyticsConnector update allowing to specify tags. */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + /** The stage of the AnalyticsConnector update allowing to specify etag. */ + interface WithEtag { + /** + * Specifies the etag property: An etag associated with the resource, used for optimistic concurrency when + * editing it.. + * + * @param etag An etag associated with the resource, used for optimistic concurrency when editing it. + * @return the next definition stage. + */ + Update withEtag(String etag); + } + /** The stage of the AnalyticsConnector update allowing to specify identity. */ + interface WithIdentity { + /** + * Specifies the identity property: Setting indicating whether the service has a managed identity associated + * with it.. + * + * @param identity Setting indicating whether the service has a managed identity associated with it. + * @return the next definition stage. + */ + Update withIdentity(ServiceManagedIdentityIdentity identity); + } + /** The stage of the AnalyticsConnector update allowing to specify dataSourceConfiguration. */ + interface WithDataSourceConfiguration { + /** + * Specifies the dataSourceConfiguration property: Data source for Analytics Connector.. + * + * @param dataSourceConfiguration Data source for Analytics Connector. + * @return the next definition stage. + */ + Update withDataSourceConfiguration(AnalyticsConnectorDataSource dataSourceConfiguration); + } + /** The stage of the AnalyticsConnector update allowing to specify dataMappingConfiguration. */ + interface WithDataMappingConfiguration { + /** + * Specifies the dataMappingConfiguration property: Data mapping configuration for Analytics Connector.. + * + * @param dataMappingConfiguration Data mapping configuration for Analytics Connector. + * @return the next definition stage. + */ + Update withDataMappingConfiguration(AnalyticsConnectorMapping dataMappingConfiguration); + } + /** The stage of the AnalyticsConnector update allowing to specify dataDestinationConfiguration. */ + interface WithDataDestinationConfiguration { + /** + * Specifies the dataDestinationConfiguration property: Data destination configuration for Analytics + * Connector.. + * + * @param dataDestinationConfiguration Data destination configuration for Analytics Connector. + * @return the next definition stage. + */ + Update withDataDestinationConfiguration(AnalyticsConnectorDataDestination dataDestinationConfiguration); + } + } + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + AnalyticsConnector refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + AnalyticsConnector refresh(Context context); +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorCollection.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorCollection.java new file mode 100644 index 0000000000000..644dca0814cbf --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorCollection.java @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.models; + +import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.healthcareapis.fluent.models.AnalyticsConnectorInner; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** A collection of Analytics Connectors. */ +@Fluent +public final class AnalyticsConnectorCollection { + /* + * The link used to get the next page of AnalyticsConnectors. + */ + @JsonProperty(value = "nextLink") + private String nextLink; + + /* + * The list of Analytics Connectors. + */ + @JsonProperty(value = "value") + private List value; + + /** + * Get the nextLink property: The link used to get the next page of AnalyticsConnectors. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: The link used to get the next page of AnalyticsConnectors. + * + * @param nextLink the nextLink value to set. + * @return the AnalyticsConnectorCollection object itself. + */ + public AnalyticsConnectorCollection withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Get the value property: The list of Analytics Connectors. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: The list of Analytics Connectors. + * + * @param value the value value to set. + * @return the AnalyticsConnectorCollection object itself. + */ + public AnalyticsConnectorCollection withValue(List value) { + this.value = value; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorDataDestination.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorDataDestination.java new file mode 100644 index 0000000000000..73345b2bd604e --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorDataDestination.java @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.HashMap; +import java.util.Map; + +/** Data destination configuration for Analytics Connector. */ +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = AnalyticsConnectorDataDestination.class) +@JsonTypeName("AnalyticsConnectorDataDestination") +@JsonSubTypes({@JsonSubTypes.Type(name = "datalake", value = AnalyticsConnectorDataLakeDataDestination.class)}) +@Fluent +public class AnalyticsConnectorDataDestination { + /* + * Name of data destination. + */ + @JsonProperty(value = "name") + private String name; + + /* + * Data destination configuration for Analytics Connector. + */ + @JsonIgnore private Map additionalProperties; + + /** + * Get the name property: Name of data destination. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Name of data destination. + * + * @param name the name value to set. + * @return the AnalyticsConnectorDataDestination object itself. + */ + public AnalyticsConnectorDataDestination withName(String name) { + this.name = name; + return this; + } + + /** + * Get the additionalProperties property: Data destination configuration for Analytics Connector. + * + * @return the additionalProperties value. + */ + @JsonAnyGetter + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties property: Data destination configuration for Analytics Connector. + * + * @param additionalProperties the additionalProperties value to set. + * @return the AnalyticsConnectorDataDestination object itself. + */ + public AnalyticsConnectorDataDestination withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + @JsonAnySetter + void withAdditionalProperties(String key, Object value) { + if (additionalProperties == null) { + additionalProperties = new HashMap<>(); + } + additionalProperties.put(key, value); + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorDataDestinationType.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorDataDestinationType.java new file mode 100644 index 0000000000000..b8da1cd241b6d --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorDataDestinationType.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Type of data destination. */ +public final class AnalyticsConnectorDataDestinationType + extends ExpandableStringEnum { + /** Static value datalake for AnalyticsConnectorDataDestinationType. */ + public static final AnalyticsConnectorDataDestinationType DATALAKE = fromString("datalake"); + + /** + * Creates or finds a AnalyticsConnectorDataDestinationType from its string representation. + * + * @param name a name to look for. + * @return the corresponding AnalyticsConnectorDataDestinationType. + */ + @JsonCreator + public static AnalyticsConnectorDataDestinationType fromString(String name) { + return fromString(name, AnalyticsConnectorDataDestinationType.class); + } + + /** + * Gets known AnalyticsConnectorDataDestinationType values. + * + * @return known AnalyticsConnectorDataDestinationType values. + */ + public static Collection values() { + return values(AnalyticsConnectorDataDestinationType.class); + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorDataLakeDataDestination.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorDataLakeDataDestination.java new file mode 100644 index 0000000000000..a758a5df5c990 --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorDataLakeDataDestination.java @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** The Data Lake data destination for Analytics Connector. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("datalake") +@Fluent +public final class AnalyticsConnectorDataLakeDataDestination extends AnalyticsConnectorDataDestination { + /* + * The name for the Data Lake. + */ + @JsonProperty(value = "dataLakeName", required = true) + private String dataLakeName; + + /** + * Get the dataLakeName property: The name for the Data Lake. + * + * @return the dataLakeName value. + */ + public String dataLakeName() { + return this.dataLakeName; + } + + /** + * Set the dataLakeName property: The name for the Data Lake. + * + * @param dataLakeName the dataLakeName value to set. + * @return the AnalyticsConnectorDataLakeDataDestination object itself. + */ + public AnalyticsConnectorDataLakeDataDestination withDataLakeName(String dataLakeName) { + this.dataLakeName = dataLakeName; + return this; + } + + /** {@inheritDoc} */ + @Override + public AnalyticsConnectorDataLakeDataDestination withName(String name) { + super.withName(name); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + if (dataLakeName() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property dataLakeName in model AnalyticsConnectorDataLakeDataDestination")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(AnalyticsConnectorDataLakeDataDestination.class); +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorDataSource.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorDataSource.java new file mode 100644 index 0000000000000..bdaf25222d495 --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorDataSource.java @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.HashMap; +import java.util.Map; + +/** + * Data source for Analytics Connector. The target resource must be in the same workspace with the Analytics Connector. + */ +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = AnalyticsConnectorDataSource.class) +@JsonTypeName("AnalyticsConnectorDataSource") +@JsonSubTypes({@JsonSubTypes.Type(name = "fhirservice", value = AnalyticsConnectorFhirServiceDataSource.class)}) +@Fluent +public class AnalyticsConnectorDataSource { + /* + * Data source for Analytics Connector. The target resource must be in the same workspace with the Analytics + * Connector. + */ + @JsonIgnore private Map additionalProperties; + + /** + * Get the additionalProperties property: Data source for Analytics Connector. The target resource must be in the + * same workspace with the Analytics Connector. + * + * @return the additionalProperties value. + */ + @JsonAnyGetter + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties property: Data source for Analytics Connector. The target resource must be in the + * same workspace with the Analytics Connector. + * + * @param additionalProperties the additionalProperties value to set. + * @return the AnalyticsConnectorDataSource object itself. + */ + public AnalyticsConnectorDataSource withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + @JsonAnySetter + void withAdditionalProperties(String key, Object value) { + if (additionalProperties == null) { + additionalProperties = new HashMap<>(); + } + additionalProperties.put(key, value); + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorDataSourceType.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorDataSourceType.java new file mode 100644 index 0000000000000..667898f0bad98 --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorDataSourceType.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Type of data source. */ +public final class AnalyticsConnectorDataSourceType extends ExpandableStringEnum { + /** Static value fhirservice for AnalyticsConnectorDataSourceType. */ + public static final AnalyticsConnectorDataSourceType FHIRSERVICE = fromString("fhirservice"); + + /** + * Creates or finds a AnalyticsConnectorDataSourceType from its string representation. + * + * @param name a name to look for. + * @return the corresponding AnalyticsConnectorDataSourceType. + */ + @JsonCreator + public static AnalyticsConnectorDataSourceType fromString(String name) { + return fromString(name, AnalyticsConnectorDataSourceType.class); + } + + /** + * Gets known AnalyticsConnectorDataSourceType values. + * + * @return known AnalyticsConnectorDataSourceType values. + */ + public static Collection values() { + return values(AnalyticsConnectorDataSourceType.class); + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorFhirServiceDataSource.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorFhirServiceDataSource.java new file mode 100644 index 0000000000000..0c651813f7646 --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorFhirServiceDataSource.java @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** The FHIR service data source for Analytics Connector. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("fhirservice") +@Fluent +public final class AnalyticsConnectorFhirServiceDataSource extends AnalyticsConnectorDataSource { + /* + * The URL of FHIR service. + */ + @JsonProperty(value = "url", required = true) + private String url; + + /* + * The kind of FHIR Service. + */ + @JsonProperty(value = "kind", required = true) + private FhirServiceVersion kind; + + /** + * Get the url property: The URL of FHIR service. + * + * @return the url value. + */ + public String url() { + return this.url; + } + + /** + * Set the url property: The URL of FHIR service. + * + * @param url the url value to set. + * @return the AnalyticsConnectorFhirServiceDataSource object itself. + */ + public AnalyticsConnectorFhirServiceDataSource withUrl(String url) { + this.url = url; + return this; + } + + /** + * Get the kind property: The kind of FHIR Service. + * + * @return the kind value. + */ + public FhirServiceVersion kind() { + return this.kind; + } + + /** + * Set the kind property: The kind of FHIR Service. + * + * @param kind the kind value to set. + * @return the AnalyticsConnectorFhirServiceDataSource object itself. + */ + public AnalyticsConnectorFhirServiceDataSource withKind(FhirServiceVersion kind) { + this.kind = kind; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + if (url() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property url in model AnalyticsConnectorFhirServiceDataSource")); + } + if (kind() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property kind in model AnalyticsConnectorFhirServiceDataSource")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(AnalyticsConnectorFhirServiceDataSource.class); +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorFhirToParquetMapping.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorFhirToParquetMapping.java new file mode 100644 index 0000000000000..46e2fb2c20e03 --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorFhirToParquetMapping.java @@ -0,0 +1,133 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** FHIR Service data mapping configuration for Analytics Connector. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("fhirToParquet") +@Fluent +public final class AnalyticsConnectorFhirToParquetMapping extends AnalyticsConnectorMapping { + /* + * Artifact reference for filter configurations. + */ + @JsonProperty(value = "filterConfigurationReference") + private String filterConfigurationReference; + + /* + * Artifact reference for extension schema. + */ + @JsonProperty(value = "extensionSchemaReference") + private String extensionSchemaReference; + + /* + * Artifact reference for data transformation schema. + */ + @JsonProperty(value = "transformationSchemaReference") + private String transformationSchemaReference; + + /* + * Artifact reference for data anonymization schema. + */ + @JsonProperty(value = "anonymizationSchemaReference") + private String anonymizationSchemaReference; + + /** + * Get the filterConfigurationReference property: Artifact reference for filter configurations. + * + * @return the filterConfigurationReference value. + */ + public String filterConfigurationReference() { + return this.filterConfigurationReference; + } + + /** + * Set the filterConfigurationReference property: Artifact reference for filter configurations. + * + * @param filterConfigurationReference the filterConfigurationReference value to set. + * @return the AnalyticsConnectorFhirToParquetMapping object itself. + */ + public AnalyticsConnectorFhirToParquetMapping withFilterConfigurationReference( + String filterConfigurationReference) { + this.filterConfigurationReference = filterConfigurationReference; + return this; + } + + /** + * Get the extensionSchemaReference property: Artifact reference for extension schema. + * + * @return the extensionSchemaReference value. + */ + public String extensionSchemaReference() { + return this.extensionSchemaReference; + } + + /** + * Set the extensionSchemaReference property: Artifact reference for extension schema. + * + * @param extensionSchemaReference the extensionSchemaReference value to set. + * @return the AnalyticsConnectorFhirToParquetMapping object itself. + */ + public AnalyticsConnectorFhirToParquetMapping withExtensionSchemaReference(String extensionSchemaReference) { + this.extensionSchemaReference = extensionSchemaReference; + return this; + } + + /** + * Get the transformationSchemaReference property: Artifact reference for data transformation schema. + * + * @return the transformationSchemaReference value. + */ + public String transformationSchemaReference() { + return this.transformationSchemaReference; + } + + /** + * Set the transformationSchemaReference property: Artifact reference for data transformation schema. + * + * @param transformationSchemaReference the transformationSchemaReference value to set. + * @return the AnalyticsConnectorFhirToParquetMapping object itself. + */ + public AnalyticsConnectorFhirToParquetMapping withTransformationSchemaReference( + String transformationSchemaReference) { + this.transformationSchemaReference = transformationSchemaReference; + return this; + } + + /** + * Get the anonymizationSchemaReference property: Artifact reference for data anonymization schema. + * + * @return the anonymizationSchemaReference value. + */ + public String anonymizationSchemaReference() { + return this.anonymizationSchemaReference; + } + + /** + * Set the anonymizationSchemaReference property: Artifact reference for data anonymization schema. + * + * @param anonymizationSchemaReference the anonymizationSchemaReference value to set. + * @return the AnalyticsConnectorFhirToParquetMapping object itself. + */ + public AnalyticsConnectorFhirToParquetMapping withAnonymizationSchemaReference( + String anonymizationSchemaReference) { + this.anonymizationSchemaReference = anonymizationSchemaReference; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorMapping.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorMapping.java new file mode 100644 index 0000000000000..edc007d6ed073 --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorMapping.java @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.HashMap; +import java.util.Map; + +/** Data mapping configuration for Analytics Connector. */ +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = AnalyticsConnectorMapping.class) +@JsonTypeName("AnalyticsConnectorMapping") +@JsonSubTypes({@JsonSubTypes.Type(name = "fhirToParquet", value = AnalyticsConnectorFhirToParquetMapping.class)}) +@Fluent +public class AnalyticsConnectorMapping { + /* + * Data mapping configuration for Analytics Connector. + */ + @JsonIgnore private Map additionalProperties; + + /** + * Get the additionalProperties property: Data mapping configuration for Analytics Connector. + * + * @return the additionalProperties value. + */ + @JsonAnyGetter + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties property: Data mapping configuration for Analytics Connector. + * + * @param additionalProperties the additionalProperties value to set. + * @return the AnalyticsConnectorMapping object itself. + */ + public AnalyticsConnectorMapping withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + @JsonAnySetter + void withAdditionalProperties(String key, Object value) { + if (additionalProperties == null) { + additionalProperties = new HashMap<>(); + } + additionalProperties.put(key, value); + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorMappingType.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorMappingType.java new file mode 100644 index 0000000000000..aac0d2f67a849 --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorMappingType.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Type of data mapping. */ +public final class AnalyticsConnectorMappingType extends ExpandableStringEnum { + /** Static value fhirToParquet for AnalyticsConnectorMappingType. */ + public static final AnalyticsConnectorMappingType FHIR_TO_PARQUET = fromString("fhirToParquet"); + + /** + * Creates or finds a AnalyticsConnectorMappingType from its string representation. + * + * @param name a name to look for. + * @return the corresponding AnalyticsConnectorMappingType. + */ + @JsonCreator + public static AnalyticsConnectorMappingType fromString(String name) { + return fromString(name, AnalyticsConnectorMappingType.class); + } + + /** + * Gets known AnalyticsConnectorMappingType values. + * + * @return known AnalyticsConnectorMappingType values. + */ + public static Collection values() { + return values(AnalyticsConnectorMappingType.class); + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorOperations.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorOperations.java new file mode 100644 index 0000000000000..75910b617fdcd --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorOperations.java @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.models; + +import com.azure.core.util.Context; + +/** Resource collection API of AnalyticsConnectorOperations. */ +public interface AnalyticsConnectorOperations { + /** + * Patch Analytics Connector Service details. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnectorPatchResource The parameters for updating a Analytics Connector. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return analytics Connector definition. + */ + AnalyticsConnector update( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorPatchResource analyticsConnectorPatchResource); + + /** + * Patch Analytics Connector Service details. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param analyticsConnectorPatchResource The parameters for updating a Analytics Connector. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return analytics Connector definition. + */ + AnalyticsConnector update( + String resourceGroupName, + String workspaceName, + String analyticsConnectorName, + AnalyticsConnectorPatchResource analyticsConnectorPatchResource, + Context context); +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorPatchResource.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorPatchResource.java new file mode 100644 index 0000000000000..e53289baa1321 --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectorPatchResource.java @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Map; + +/** AnalyticsConnector patch properties. */ +@Fluent +public final class AnalyticsConnectorPatchResource extends ResourceTags { + /* + * Setting indicating whether the service has a managed identity associated with it. + */ + @JsonProperty(value = "identity") + private ServiceManagedIdentityIdentity identity; + + /** + * Get the identity property: Setting indicating whether the service has a managed identity associated with it. + * + * @return the identity value. + */ + public ServiceManagedIdentityIdentity identity() { + return this.identity; + } + + /** + * Set the identity property: Setting indicating whether the service has a managed identity associated with it. + * + * @param identity the identity value to set. + * @return the AnalyticsConnectorPatchResource object itself. + */ + public AnalyticsConnectorPatchResource withIdentity(ServiceManagedIdentityIdentity identity) { + this.identity = identity; + return this; + } + + /** {@inheritDoc} */ + @Override + public AnalyticsConnectorPatchResource withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + if (identity() != null) { + identity().validate(); + } + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectors.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectors.java new file mode 100644 index 0000000000000..2bbfbbe74442e --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/AnalyticsConnectors.java @@ -0,0 +1,142 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** Resource collection API of AnalyticsConnectors. */ +public interface AnalyticsConnectors { + /** + * Lists all Analytics 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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a collection of Analytics Connectors as paginated response with {@link PagedIterable}. + */ + PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); + + /** + * Lists all Analytics 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 context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a collection of Analytics Connectors as paginated response with {@link PagedIterable}. + */ + PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context); + + /** + * Gets the properties of the specified Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the properties of the specified Analytics Connector. + */ + AnalyticsConnector get(String resourceGroupName, String workspaceName, String analyticsConnectorName); + + /** + * Gets the properties of the specified Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the properties of the specified Analytics Connector along with {@link Response}. + */ + Response getWithResponse( + String resourceGroupName, String workspaceName, String analyticsConnectorName, Context context); + + /** + * Deletes a Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String workspaceName, String analyticsConnectorName); + + /** + * Deletes a Analytics Connector. + * + * @param resourceGroupName The name of the resource group that contains the service instance. + * @param workspaceName The name of workspace resource. + * @param analyticsConnectorName The name of Analytics Connector resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String workspaceName, String analyticsConnectorName, Context context); + + /** + * Gets the properties of the specified Analytics Connector. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the properties of the specified Analytics Connector along with {@link Response}. + */ + AnalyticsConnector getById(String id); + + /** + * Gets the properties of the specified Analytics Connector. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the properties of the specified Analytics Connector along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Deletes a Analytics Connector. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * Deletes a Analytics Connector. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new AnalyticsConnector resource. + * + * @param name resource name. + * @return the first stage of the new AnalyticsConnector definition. + */ + AnalyticsConnector.DefinitionStages.Blank define(String name); +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/CorsConfiguration.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/CorsConfiguration.java new file mode 100644 index 0000000000000..44cdcf5b47534 --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/CorsConfiguration.java @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The settings for the CORS configuration of the service instance. */ +@Fluent +public final class CorsConfiguration { + /* + * The origins to be allowed via CORS. + */ + @JsonProperty(value = "origins") + private List origins; + + /* + * The headers to be allowed via CORS. + */ + @JsonProperty(value = "headers") + private List headers; + + /* + * The methods to be allowed via CORS. + */ + @JsonProperty(value = "methods") + private List methods; + + /* + * The max age to be allowed via CORS. + */ + @JsonProperty(value = "maxAge") + private Integer maxAge; + + /* + * If credentials are allowed via CORS. + */ + @JsonProperty(value = "allowCredentials") + private Boolean allowCredentials; + + /** + * Get the origins property: The origins to be allowed via CORS. + * + * @return the origins value. + */ + public List origins() { + return this.origins; + } + + /** + * Set the origins property: The origins to be allowed via CORS. + * + * @param origins the origins value to set. + * @return the CorsConfiguration object itself. + */ + public CorsConfiguration withOrigins(List origins) { + this.origins = origins; + return this; + } + + /** + * Get the headers property: The headers to be allowed via CORS. + * + * @return the headers value. + */ + public List headers() { + return this.headers; + } + + /** + * Set the headers property: The headers to be allowed via CORS. + * + * @param headers the headers value to set. + * @return the CorsConfiguration object itself. + */ + public CorsConfiguration withHeaders(List headers) { + this.headers = headers; + return this; + } + + /** + * Get the methods property: The methods to be allowed via CORS. + * + * @return the methods value. + */ + public List methods() { + return this.methods; + } + + /** + * Set the methods property: The methods to be allowed via CORS. + * + * @param methods the methods value to set. + * @return the CorsConfiguration object itself. + */ + public CorsConfiguration withMethods(List methods) { + this.methods = methods; + return this; + } + + /** + * Get the maxAge property: The max age to be allowed via CORS. + * + * @return the maxAge value. + */ + public Integer maxAge() { + return this.maxAge; + } + + /** + * Set the maxAge property: The max age to be allowed via CORS. + * + * @param maxAge the maxAge value to set. + * @return the CorsConfiguration object itself. + */ + public CorsConfiguration withMaxAge(Integer maxAge) { + this.maxAge = maxAge; + return this; + } + + /** + * Get the allowCredentials property: If credentials are allowed via CORS. + * + * @return the allowCredentials value. + */ + public Boolean allowCredentials() { + return this.allowCredentials; + } + + /** + * Set the allowCredentials property: If credentials are allowed via CORS. + * + * @param allowCredentials the allowCredentials value to set. + * @return the CorsConfiguration object itself. + */ + public CorsConfiguration withAllowCredentials(Boolean allowCredentials) { + this.allowCredentials = allowCredentials; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/DicomService.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/DicomService.java index 65f3baf79862d..2e88238b9553f 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/DicomService.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/DicomService.java @@ -83,6 +83,13 @@ public interface DicomService { */ DicomServiceAuthenticationConfiguration authenticationConfiguration(); + /** + * Gets the corsConfiguration property: Dicom Service Cors configuration. + * + * @return the corsConfiguration value. + */ + CorsConfiguration corsConfiguration(); + /** * Gets the serviceUrl property: The url of the Dicom Services. * @@ -120,6 +127,13 @@ public interface DicomService { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.healthcareapis.fluent.models.DicomServiceInner object. * @@ -157,6 +171,7 @@ interface WithCreate DefinitionStages.WithEtag, DefinitionStages.WithIdentity, DefinitionStages.WithAuthenticationConfiguration, + DefinitionStages.WithCorsConfiguration, DefinitionStages.WithPublicNetworkAccess { /** * Executes the create request. @@ -234,6 +249,16 @@ interface WithAuthenticationConfiguration { WithCreate withAuthenticationConfiguration( DicomServiceAuthenticationConfiguration authenticationConfiguration); } + /** The stage of the DicomService definition allowing to specify corsConfiguration. */ + interface WithCorsConfiguration { + /** + * Specifies the corsConfiguration property: Dicom Service Cors configuration.. + * + * @param corsConfiguration Dicom Service Cors configuration. + * @return the next definition stage. + */ + WithCreate withCorsConfiguration(CorsConfiguration corsConfiguration); + } /** The stage of the DicomService definition allowing to specify publicNetworkAccess. */ interface WithPublicNetworkAccess { /** diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/DicomServicePatchResource.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/DicomServicePatchResource.java index 62e92ef0f655e..ff606fe76521b 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/DicomServicePatchResource.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/DicomServicePatchResource.java @@ -12,8 +12,7 @@ @Fluent public final class DicomServicePatchResource extends ResourceTags { /* - * Setting indicating whether the service has a managed identity associated - * with it. + * Setting indicating whether the service has a managed identity associated with it. */ @JsonProperty(value = "identity") private ServiceManagedIdentityIdentity identity; diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirResourceVersionPolicy.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirResourceVersionPolicy.java index ac76fb2cca9b1..6b2375d225d23 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirResourceVersionPolicy.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirResourceVersionPolicy.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for FhirResourceVersionPolicy. */ +/** Controls how resources are versioned on the FHIR service. */ public final class FhirResourceVersionPolicy extends ExpandableStringEnum { /** Static value no-version for FhirResourceVersionPolicy. */ public static final FhirResourceVersionPolicy NO_VERSION = fromString("no-version"); @@ -30,7 +30,11 @@ public static FhirResourceVersionPolicy fromString(String name) { return fromString(name, FhirResourceVersionPolicy.class); } - /** @return known FhirResourceVersionPolicy values. */ + /** + * Gets known FhirResourceVersionPolicy values. + * + * @return known FhirResourceVersionPolicy values. + */ public static Collection values() { return values(FhirResourceVersionPolicy.class); } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirService.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirService.java index 81d36190eba9a..e84f137d62f05 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirService.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirService.java @@ -148,6 +148,13 @@ public interface FhirService { */ ResourceVersionPolicyConfiguration resourceVersionPolicyConfiguration(); + /** + * Gets the importConfiguration property: Fhir Service import configuration. + * + * @return the importConfiguration value. + */ + FhirServiceImportConfiguration importConfiguration(); + /** * Gets the region of the resource. * @@ -162,6 +169,13 @@ public interface FhirService { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.healthcareapis.fluent.models.FhirServiceInner object. * @@ -205,7 +219,8 @@ interface WithCreate DefinitionStages.WithCorsConfiguration, DefinitionStages.WithExportConfiguration, DefinitionStages.WithPublicNetworkAccess, - DefinitionStages.WithResourceVersionPolicyConfiguration { + DefinitionStages.WithResourceVersionPolicyConfiguration, + DefinitionStages.WithImportConfiguration { /** * Executes the create request. * @@ -355,6 +370,16 @@ interface WithResourceVersionPolicyConfiguration { WithCreate withResourceVersionPolicyConfiguration( ResourceVersionPolicyConfiguration resourceVersionPolicyConfiguration); } + /** The stage of the FhirService definition allowing to specify importConfiguration. */ + interface WithImportConfiguration { + /** + * Specifies the importConfiguration property: Fhir Service import configuration.. + * + * @param importConfiguration Fhir Service import configuration. + * @return the next definition stage. + */ + WithCreate withImportConfiguration(FhirServiceImportConfiguration importConfiguration); + } } /** * Begins update for the FhirService resource. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirServiceAccessPolicyEntry.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirServiceAccessPolicyEntry.java index 94413ec9af383..b2296e9bff2bd 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirServiceAccessPolicyEntry.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirServiceAccessPolicyEntry.java @@ -12,8 +12,7 @@ @Fluent public final class FhirServiceAccessPolicyEntry { /* - * An Azure AD object ID (User or Apps) that is allowed access to the FHIR - * service. + * An Azure AD object ID (User or Apps) that is allowed access to the FHIR service. */ @JsonProperty(value = "objectId", required = true) private String objectId; diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirServiceImportConfiguration.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirServiceImportConfiguration.java new file mode 100644 index 0000000000000..c8f348ca30e8a --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirServiceImportConfiguration.java @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Import operation configuration information. */ +@Fluent +public final class FhirServiceImportConfiguration { + /* + * The name of the default integration storage account. + */ + @JsonProperty(value = "integrationDataStore") + private String integrationDataStore; + + /* + * If the FHIR service is in InitialImportMode. + */ + @JsonProperty(value = "initialImportMode") + private Boolean initialImportMode; + + /* + * If the import operation is enabled. + */ + @JsonProperty(value = "enabled") + private Boolean enabled; + + /** + * Get the integrationDataStore property: The name of the default integration storage account. + * + * @return the integrationDataStore value. + */ + public String integrationDataStore() { + return this.integrationDataStore; + } + + /** + * Set the integrationDataStore property: The name of the default integration storage account. + * + * @param integrationDataStore the integrationDataStore value to set. + * @return the FhirServiceImportConfiguration object itself. + */ + public FhirServiceImportConfiguration withIntegrationDataStore(String integrationDataStore) { + this.integrationDataStore = integrationDataStore; + return this; + } + + /** + * Get the initialImportMode property: If the FHIR service is in InitialImportMode. + * + * @return the initialImportMode value. + */ + public Boolean initialImportMode() { + return this.initialImportMode; + } + + /** + * Set the initialImportMode property: If the FHIR service is in InitialImportMode. + * + * @param initialImportMode the initialImportMode value to set. + * @return the FhirServiceImportConfiguration object itself. + */ + public FhirServiceImportConfiguration withInitialImportMode(Boolean initialImportMode) { + this.initialImportMode = initialImportMode; + return this; + } + + /** + * Get the enabled property: If the import operation is enabled. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: If the import operation is enabled. + * + * @param enabled the enabled value to set. + * @return the FhirServiceImportConfiguration object itself. + */ + public FhirServiceImportConfiguration withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirServiceKind.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirServiceKind.java index 4b5799c529954..c57e196c0b24f 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirServiceKind.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirServiceKind.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for FhirServiceKind. */ +/** The kind of the service. */ public final class FhirServiceKind extends ExpandableStringEnum { /** Static value fhir-Stu3 for FhirServiceKind. */ public static final FhirServiceKind FHIR_STU3 = fromString("fhir-Stu3"); @@ -27,7 +27,11 @@ public static FhirServiceKind fromString(String name) { return fromString(name, FhirServiceKind.class); } - /** @return known FhirServiceKind values. */ + /** + * Gets known FhirServiceKind values. + * + * @return known FhirServiceKind values. + */ public static Collection values() { return values(FhirServiceKind.class); } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirServicePatchResource.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirServicePatchResource.java index 022a113b82076..5e080b70661c7 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirServicePatchResource.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirServicePatchResource.java @@ -12,8 +12,7 @@ @Fluent public final class FhirServicePatchResource extends ResourceTags { /* - * Setting indicating whether the service has a managed identity associated - * with it. + * Setting indicating whether the service has a managed identity associated with it. */ @JsonProperty(value = "identity") private ServiceManagedIdentityIdentity identity; diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirServiceVersion.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirServiceVersion.java new file mode 100644 index 0000000000000..6c64439891ac7 --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/FhirServiceVersion.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** The kind of FHIR Service. */ +public final class FhirServiceVersion extends ExpandableStringEnum { + /** Static value STU3 for FhirServiceVersion. */ + public static final FhirServiceVersion STU3 = fromString("STU3"); + + /** Static value R4 for FhirServiceVersion. */ + public static final FhirServiceVersion R4 = fromString("R4"); + + /** + * Creates or finds a FhirServiceVersion from its string representation. + * + * @param name a name to look for. + * @return the corresponding FhirServiceVersion. + */ + @JsonCreator + public static FhirServiceVersion fromString(String name) { + return fromString(name, FhirServiceVersion.class); + } + + /** + * Gets known FhirServiceVersion values. + * + * @return known FhirServiceVersion values. + */ + public static Collection values() { + return values(FhirServiceVersion.class); + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/IotConnector.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/IotConnector.java index 47af832c62076..2bc2755870e9d 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/IotConnector.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/IotConnector.java @@ -103,6 +103,13 @@ public interface IotConnector { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.healthcareapis.fluent.models.IotConnectorInner object. * diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/IotConnectorPatchResource.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/IotConnectorPatchResource.java index 4765c2866ace6..017f4462ea405 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/IotConnectorPatchResource.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/IotConnectorPatchResource.java @@ -12,8 +12,7 @@ @Fluent public final class IotConnectorPatchResource extends ResourceTags { /* - * Setting indicating whether the service has a managed identity associated - * with it. + * Setting indicating whether the service has a managed identity associated with it. */ @JsonProperty(value = "identity") private ServiceManagedIdentityIdentity identity; diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/IotFhirDestination.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/IotFhirDestination.java index 87ab6a66e1968..883b9ef8004da 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/IotFhirDestination.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/IotFhirDestination.java @@ -89,6 +89,13 @@ public interface IotFhirDestination { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.healthcareapis.fluent.models.IotFhirDestinationInner object. * diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/IotIdentityResolutionType.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/IotIdentityResolutionType.java index a99f43d7bcc8b..6bb806737c760 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/IotIdentityResolutionType.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/IotIdentityResolutionType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for IotIdentityResolutionType. */ +/** The type of IoT identity resolution to use with the destination. */ public final class IotIdentityResolutionType extends ExpandableStringEnum { /** Static value Create for IotIdentityResolutionType. */ public static final IotIdentityResolutionType CREATE = fromString("Create"); @@ -27,7 +27,11 @@ public static IotIdentityResolutionType fromString(String name) { return fromString(name, IotIdentityResolutionType.class); } - /** @return known IotIdentityResolutionType values. */ + /** + * Gets known IotIdentityResolutionType values. + * + * @return known IotIdentityResolutionType values. + */ public static Collection values() { return values(IotIdentityResolutionType.class); } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/Kind.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/Kind.java index b133633c06c88..8ba4e89d8d2fe 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/Kind.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/Kind.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for Kind. */ +/** The kind of the service. */ public enum Kind { /** Enum value fhir. */ FHIR("fhir"), @@ -33,6 +33,9 @@ public enum Kind { */ @JsonCreator public static Kind fromString(String value) { + if (value == null) { + return null; + } Kind[] items = Kind.values(); for (Kind item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -42,6 +45,7 @@ public static Kind fromString(String value) { return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ManagedServiceIdentityType.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ManagedServiceIdentityType.java index 483826c6654c5..03eddca2f8aa3 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ManagedServiceIdentityType.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ManagedServiceIdentityType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ManagedServiceIdentityType. */ +/** Type of identity being specified, currently SystemAssigned and None are allowed. */ public final class ManagedServiceIdentityType extends ExpandableStringEnum { /** Static value SystemAssigned for ManagedServiceIdentityType. */ public static final ManagedServiceIdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned"); @@ -27,7 +27,11 @@ public static ManagedServiceIdentityType fromString(String name) { return fromString(name, ManagedServiceIdentityType.class); } - /** @return known ManagedServiceIdentityType values. */ + /** + * Gets known ManagedServiceIdentityType values. + * + * @return known ManagedServiceIdentityType values. + */ public static Collection values() { return values(ManagedServiceIdentityType.class); } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/MetricDimension.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/MetricDimension.java index 5e34d6e344eb5..02fbe1af05b27 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/MetricDimension.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/MetricDimension.java @@ -23,8 +23,7 @@ public final class MetricDimension { private String displayName; /* - * Whether this dimension should be included for the Shoebox export - * scenario + * Whether this dimension should be included for the Shoebox export scenario */ @JsonProperty(value = "toBeExportedForShoebox") private Boolean toBeExportedForShoebox; diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/MetricSpecification.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/MetricSpecification.java index b78bbc2c0e501..c4c9fe0b7a112 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/MetricSpecification.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/MetricSpecification.java @@ -36,15 +36,13 @@ public final class MetricSpecification { private String unit; /* - * Name of the metric category that the metric belongs to. A metric can - * only belong to a single category. + * Name of the metric category that the metric belongs to. A metric can only belong to a single category. */ @JsonProperty(value = "category") private String category; /* - * Only provide one value for this field. Valid values: Average, Minimum, - * Maximum, Total, Count. + * Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. */ @JsonProperty(value = "aggregationType") private String aggregationType; @@ -62,12 +60,17 @@ public final class MetricSpecification { private List supportedTimeGrainTypes; /* - * Optional. If set to true, then zero will be returned for time duration - * where no metric is emitted/published. + * Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published. */ @JsonProperty(value = "fillGapWithZero") private Boolean fillGapWithZero; + /* + * Pattern for the filter of the metric. + */ + @JsonProperty(value = "metricFilterPattern") + private String metricFilterPattern; + /* * Dimensions of the metric */ @@ -75,11 +78,35 @@ public final class MetricSpecification { private List dimensions; /* - * Name of the MDM namespace. Optional. + * Whether the metric is internal. + */ + @JsonProperty(value = "isInternal") + private Boolean isInternal; + + /* + * The source MDM account. + */ + @JsonProperty(value = "sourceMdmAccount") + private String sourceMdmAccount; + + /* + * The source MDM namespace. */ @JsonProperty(value = "sourceMdmNamespace") private String sourceMdmNamespace; + /* + * Whether regional MDM account enabled. + */ + @JsonProperty(value = "enableRegionalMdmAccount") + private Boolean enableRegionalMdmAccount; + + /* + * The resource Id dimension name override. + */ + @JsonProperty(value = "resourceIdDimensionNameOverride") + private String resourceIdDimensionNameOverride; + /** * Get the name property: Name of the metric. * @@ -266,6 +293,26 @@ public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero) { return this; } + /** + * Get the metricFilterPattern property: Pattern for the filter of the metric. + * + * @return the metricFilterPattern value. + */ + public String metricFilterPattern() { + return this.metricFilterPattern; + } + + /** + * Set the metricFilterPattern property: Pattern for the filter of the metric. + * + * @param metricFilterPattern the metricFilterPattern value to set. + * @return the MetricSpecification object itself. + */ + public MetricSpecification withMetricFilterPattern(String metricFilterPattern) { + this.metricFilterPattern = metricFilterPattern; + return this; + } + /** * Get the dimensions property: Dimensions of the metric. * @@ -287,7 +334,47 @@ public MetricSpecification withDimensions(List dimensions) { } /** - * Get the sourceMdmNamespace property: Name of the MDM namespace. Optional. + * Get the isInternal property: Whether the metric is internal. + * + * @return the isInternal value. + */ + public Boolean isInternal() { + return this.isInternal; + } + + /** + * Set the isInternal property: Whether the metric is internal. + * + * @param isInternal the isInternal value to set. + * @return the MetricSpecification object itself. + */ + public MetricSpecification withIsInternal(Boolean isInternal) { + this.isInternal = isInternal; + return this; + } + + /** + * Get the sourceMdmAccount property: The source MDM account. + * + * @return the sourceMdmAccount value. + */ + public String sourceMdmAccount() { + return this.sourceMdmAccount; + } + + /** + * Set the sourceMdmAccount property: The source MDM account. + * + * @param sourceMdmAccount the sourceMdmAccount value to set. + * @return the MetricSpecification object itself. + */ + public MetricSpecification withSourceMdmAccount(String sourceMdmAccount) { + this.sourceMdmAccount = sourceMdmAccount; + return this; + } + + /** + * Get the sourceMdmNamespace property: The source MDM namespace. * * @return the sourceMdmNamespace value. */ @@ -296,7 +383,7 @@ public String sourceMdmNamespace() { } /** - * Set the sourceMdmNamespace property: Name of the MDM namespace. Optional. + * Set the sourceMdmNamespace property: The source MDM namespace. * * @param sourceMdmNamespace the sourceMdmNamespace value to set. * @return the MetricSpecification object itself. @@ -306,6 +393,46 @@ public MetricSpecification withSourceMdmNamespace(String sourceMdmNamespace) { return this; } + /** + * Get the enableRegionalMdmAccount property: Whether regional MDM account enabled. + * + * @return the enableRegionalMdmAccount value. + */ + public Boolean enableRegionalMdmAccount() { + return this.enableRegionalMdmAccount; + } + + /** + * Set the enableRegionalMdmAccount property: Whether regional MDM account enabled. + * + * @param enableRegionalMdmAccount the enableRegionalMdmAccount value to set. + * @return the MetricSpecification object itself. + */ + public MetricSpecification withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount) { + this.enableRegionalMdmAccount = enableRegionalMdmAccount; + return this; + } + + /** + * Get the resourceIdDimensionNameOverride property: The resource Id dimension name override. + * + * @return the resourceIdDimensionNameOverride value. + */ + public String resourceIdDimensionNameOverride() { + return this.resourceIdDimensionNameOverride; + } + + /** + * Set the resourceIdDimensionNameOverride property: The resource Id dimension name override. + * + * @param resourceIdDimensionNameOverride the resourceIdDimensionNameOverride value to set. + * @return the MetricSpecification object itself. + */ + public MetricSpecification withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride) { + this.resourceIdDimensionNameOverride = resourceIdDimensionNameOverride; + return this; + } + /** * Validates the instance. * diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/OperationResultStatus.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/OperationResultStatus.java index bb516d41fe224..7f687bbd0b20b 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/OperationResultStatus.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/OperationResultStatus.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for OperationResultStatus. */ +/** The status of the operation being performed. */ public final class OperationResultStatus extends ExpandableStringEnum { /** Static value Canceled for OperationResultStatus. */ public static final OperationResultStatus CANCELED = fromString("Canceled"); @@ -36,7 +36,11 @@ public static OperationResultStatus fromString(String name) { return fromString(name, OperationResultStatus.class); } - /** @return known OperationResultStatus values. */ + /** + * Gets known OperationResultStatus values. + * + * @return known OperationResultStatus values. + */ public static Collection values() { return values(OperationResultStatus.class); } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/PrivateEndpointConnectionDescription.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/PrivateEndpointConnectionDescription.java index ebe028cae92f8..122f3a08486a3 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/PrivateEndpointConnectionDescription.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/PrivateEndpointConnectionDescription.java @@ -60,6 +60,13 @@ public interface PrivateEndpointConnectionDescription { */ SystemData systemData(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.healthcareapis.fluent.models.PrivateEndpointConnectionDescriptionInner * object. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/PrivateEndpointConnectionProvisioningState.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/PrivateEndpointConnectionProvisioningState.java index a5faca9737437..89a19654acf2a 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/PrivateEndpointConnectionProvisioningState.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/PrivateEndpointConnectionProvisioningState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for PrivateEndpointConnectionProvisioningState. */ +/** The current provisioning state. */ public final class PrivateEndpointConnectionProvisioningState extends ExpandableStringEnum { /** Static value Succeeded for PrivateEndpointConnectionProvisioningState. */ @@ -34,7 +34,11 @@ public static PrivateEndpointConnectionProvisioningState fromString(String name) return fromString(name, PrivateEndpointConnectionProvisioningState.class); } - /** @return known PrivateEndpointConnectionProvisioningState values. */ + /** + * Gets known PrivateEndpointConnectionProvisioningState values. + * + * @return known PrivateEndpointConnectionProvisioningState values. + */ public static Collection values() { return values(PrivateEndpointConnectionProvisioningState.class); } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/PrivateEndpointServiceConnectionStatus.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/PrivateEndpointServiceConnectionStatus.java index 9aeb39957d00e..074cb7cea144f 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/PrivateEndpointServiceConnectionStatus.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/PrivateEndpointServiceConnectionStatus.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for PrivateEndpointServiceConnectionStatus. */ +/** The private endpoint connection status. */ public final class PrivateEndpointServiceConnectionStatus extends ExpandableStringEnum { /** Static value Pending for PrivateEndpointServiceConnectionStatus. */ @@ -31,7 +31,11 @@ public static PrivateEndpointServiceConnectionStatus fromString(String name) { return fromString(name, PrivateEndpointServiceConnectionStatus.class); } - /** @return known PrivateEndpointServiceConnectionStatus values. */ + /** + * Gets known PrivateEndpointServiceConnectionStatus values. + * + * @return known PrivateEndpointServiceConnectionStatus values. + */ public static Collection values() { return values(PrivateEndpointServiceConnectionStatus.class); } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/PrivateLinkServiceConnectionState.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/PrivateLinkServiceConnectionState.java index 575f3624058c6..770c02e866f24 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/PrivateLinkServiceConnectionState.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/PrivateLinkServiceConnectionState.java @@ -11,8 +11,7 @@ @Fluent public final class PrivateLinkServiceConnectionState { /* - * Indicates whether the connection has been Approved/Rejected/Removed by - * the owner of the service. + * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ @JsonProperty(value = "status") private PrivateEndpointServiceConnectionStatus status; @@ -24,8 +23,7 @@ public final class PrivateLinkServiceConnectionState { private String description; /* - * A message indicating if changes on the service provider require any - * updates on the consumer. + * A message indicating if changes on the service provider require any updates on the consumer. */ @JsonProperty(value = "actionsRequired") private String actionsRequired; diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ProvisioningState.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ProvisioningState.java index 6ed103cab9eef..1beb079db5065 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ProvisioningState.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ProvisioningState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ProvisioningState. */ +/** The provisioning state. */ public final class ProvisioningState extends ExpandableStringEnum { /** Static value Deleting for ProvisioningState. */ public static final ProvisioningState DELETING = fromString("Deleting"); @@ -60,7 +60,11 @@ public static ProvisioningState fromString(String name) { return fromString(name, ProvisioningState.class); } - /** @return known ProvisioningState values. */ + /** + * Gets known ProvisioningState values. + * + * @return known ProvisioningState values. + */ public static Collection values() { return values(ProvisioningState.class); } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/PublicNetworkAccess.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/PublicNetworkAccess.java index ad77b7e7f9d70..c1a5f3ed2b0fd 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/PublicNetworkAccess.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/PublicNetworkAccess.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for PublicNetworkAccess. */ +/** Control permission for data plane traffic coming from public networks while private endpoint is enabled. */ public final class PublicNetworkAccess extends ExpandableStringEnum { /** Static value Enabled for PublicNetworkAccess. */ public static final PublicNetworkAccess ENABLED = fromString("Enabled"); @@ -27,7 +27,11 @@ public static PublicNetworkAccess fromString(String name) { return fromString(name, PublicNetworkAccess.class); } - /** @return known PublicNetworkAccess values. */ + /** + * Gets known PublicNetworkAccess values. + * + * @return known PublicNetworkAccess values. + */ public static Collection values() { return values(PublicNetworkAccess.class); } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ResourceCore.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ResourceCore.java index 0bb3a63590fc5..660568a4c5ca2 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ResourceCore.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ResourceCore.java @@ -12,8 +12,7 @@ @Fluent public class ResourceCore extends ProxyResource { /* - * An etag associated with the resource, used for optimistic concurrency - * when editing it. + * An etag associated with the resource, used for optimistic concurrency when editing it. */ @JsonProperty(value = "etag") private String etag; diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceAccessPolicyEntry.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceAccessPolicyEntry.java index eb6e58dc179e2..8a1e278431630 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceAccessPolicyEntry.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceAccessPolicyEntry.java @@ -12,8 +12,7 @@ @Fluent public final class ServiceAccessPolicyEntry { /* - * An Azure AD object ID (User or Apps) that is allowed access to the FHIR - * service. + * An Azure AD object ID (User or Apps) that is allowed access to the FHIR service. */ @JsonProperty(value = "objectId", required = true) private String objectId; diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceEventState.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceEventState.java index 7a755582cf268..e286842cf4a18 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceEventState.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceEventState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ServiceEventState. */ +/** Indicates the current status of event support for the resource. */ public final class ServiceEventState extends ExpandableStringEnum { /** Static value Disabled for ServiceEventState. */ public static final ServiceEventState DISABLED = fromString("Disabled"); @@ -30,7 +30,11 @@ public static ServiceEventState fromString(String name) { return fromString(name, ServiceEventState.class); } - /** @return known ServiceEventState values. */ + /** + * Gets known ServiceEventState values. + * + * @return known ServiceEventState values. + */ public static Collection values() { return values(ServiceEventState.class); } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceImportConfigurationInfo.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceImportConfigurationInfo.java new file mode 100644 index 0000000000000..a2b412319dbf9 --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceImportConfigurationInfo.java @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Import operation configuration information. */ +@Fluent +public final class ServiceImportConfigurationInfo { + /* + * The name of the default integration storage account. + */ + @JsonProperty(value = "integrationDataStore") + private String integrationDataStore; + + /* + * If the FHIR service is in InitialImportMode. + */ + @JsonProperty(value = "initialImportMode") + private Boolean initialImportMode; + + /* + * If the import operation is enabled. + */ + @JsonProperty(value = "enabled") + private Boolean enabled; + + /** + * Get the integrationDataStore property: The name of the default integration storage account. + * + * @return the integrationDataStore value. + */ + public String integrationDataStore() { + return this.integrationDataStore; + } + + /** + * Set the integrationDataStore property: The name of the default integration storage account. + * + * @param integrationDataStore the integrationDataStore value to set. + * @return the ServiceImportConfigurationInfo object itself. + */ + public ServiceImportConfigurationInfo withIntegrationDataStore(String integrationDataStore) { + this.integrationDataStore = integrationDataStore; + return this; + } + + /** + * Get the initialImportMode property: If the FHIR service is in InitialImportMode. + * + * @return the initialImportMode value. + */ + public Boolean initialImportMode() { + return this.initialImportMode; + } + + /** + * Set the initialImportMode property: If the FHIR service is in InitialImportMode. + * + * @param initialImportMode the initialImportMode value to set. + * @return the ServiceImportConfigurationInfo object itself. + */ + public ServiceImportConfigurationInfo withInitialImportMode(Boolean initialImportMode) { + this.initialImportMode = initialImportMode; + return this; + } + + /** + * Get the enabled property: If the import operation is enabled. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: If the import operation is enabled. + * + * @param enabled the enabled value to set. + * @return the ServiceImportConfigurationInfo object itself. + */ + public ServiceImportConfigurationInfo withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceManagedIdentity.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceManagedIdentity.java index 96ff0b60664d9..4b362943d505a 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceManagedIdentity.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceManagedIdentity.java @@ -11,8 +11,7 @@ @Fluent public class ServiceManagedIdentity { /* - * Setting indicating whether the service has a managed identity associated - * with it. + * Setting indicating whether the service has a managed identity associated with it. */ @JsonProperty(value = "identity") private ServiceManagedIdentityIdentity identity; diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceManagedIdentityIdentity.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceManagedIdentityIdentity.java index ef543b02126d1..41cce728c2ec6 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceManagedIdentityIdentity.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceManagedIdentityIdentity.java @@ -15,30 +15,28 @@ @Fluent public class ServiceManagedIdentityIdentity { /* - * Type of identity being specified, currently SystemAssigned and None are - * allowed. + * Type of identity being specified, currently SystemAssigned and None are allowed. */ @JsonProperty(value = "type", required = true) private ServiceManagedIdentityType type; /* - * The service principal ID of the system assigned identity. This property - * will only be provided for a system assigned identity. + * The service principal ID of the system assigned identity. This property will only be provided for a system + * assigned identity. */ @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) private UUID principalId; /* - * The tenant ID of the system assigned identity. This property will only - * be provided for a system assigned identity. + * The tenant ID of the system assigned identity. This property will only be provided for a system assigned + * identity. */ @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY) private UUID tenantId; /* - * The set of user assigned identities associated with the resource. The - * userAssignedIdentities dictionary keys will be ARM resource ids in the - * form: + * The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys + * will be ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. * The dictionary values can be empty objects ({}) in requests. */ diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceManagedIdentityType.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceManagedIdentityType.java index 5967c1e1c9378..08c3c8c75c96f 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceManagedIdentityType.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceManagedIdentityType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ServiceManagedIdentityType. */ +/** Type of identity being specified, currently SystemAssigned and None are allowed. */ public final class ServiceManagedIdentityType extends ExpandableStringEnum { /** Static value None for ServiceManagedIdentityType. */ public static final ServiceManagedIdentityType NONE = fromString("None"); @@ -34,7 +34,11 @@ public static ServiceManagedIdentityType fromString(String name) { return fromString(name, ServiceManagedIdentityType.class); } - /** @return known ServiceManagedIdentityType values. */ + /** + * Gets known ServiceManagedIdentityType values. + * + * @return known ServiceManagedIdentityType values. + */ public static Collection values() { return values(ServiceManagedIdentityType.class); } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceNameUnavailabilityReason.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceNameUnavailabilityReason.java index 8da06d7ec5514..b232265ad43f3 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceNameUnavailabilityReason.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServiceNameUnavailabilityReason.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for ServiceNameUnavailabilityReason. */ +/** The reason for unavailability. */ public enum ServiceNameUnavailabilityReason { /** Enum value Invalid. */ INVALID("Invalid"), @@ -30,6 +30,9 @@ public enum ServiceNameUnavailabilityReason { */ @JsonCreator public static ServiceNameUnavailabilityReason fromString(String value) { + if (value == null) { + return null; + } ServiceNameUnavailabilityReason[] items = ServiceNameUnavailabilityReason.values(); for (ServiceNameUnavailabilityReason item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -39,6 +42,7 @@ public static ServiceNameUnavailabilityReason fromString(String value) { return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServicesDescription.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServicesDescription.java index 1a1ed4abdb2ba..e0684c3835c5e 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServicesDescription.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServicesDescription.java @@ -96,6 +96,13 @@ public interface ServicesDescription { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.healthcareapis.fluent.models.ServicesDescriptionInner object. * diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServicesProperties.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServicesProperties.java index a1babf875f104..522ba742e0707 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServicesProperties.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServicesProperties.java @@ -48,26 +48,29 @@ public final class ServicesProperties { private ServiceExportConfigurationInfo exportConfiguration; /* - * The list of private endpoint connections that are set up for this - * resource. + * The list of private endpoint connections that are set up for this resource. */ @JsonProperty(value = "privateEndpointConnections") private List privateEndpointConnections; /* - * Control permission for data plane traffic coming from public networks - * while private endpoint is enabled. + * Control permission for data plane traffic coming from public networks while private endpoint is enabled. */ @JsonProperty(value = "publicNetworkAccess") private PublicNetworkAccess publicNetworkAccess; /* - * The azure container registry settings used for convert data operation of - * the service instance. + * The azure container registry settings used for convert data operation of the service instance. */ @JsonProperty(value = "acrConfiguration") private ServiceAcrConfigurationInfo acrConfiguration; + /* + * The settings for the import operation of the service instance. + */ + @JsonProperty(value = "importConfiguration") + private ServiceImportConfigurationInfo importConfiguration; + /** * Get the provisioningState property: The provisioning state. * @@ -245,6 +248,26 @@ public ServicesProperties withAcrConfiguration(ServiceAcrConfigurationInfo acrCo return this; } + /** + * Get the importConfiguration property: The settings for the import operation of the service instance. + * + * @return the importConfiguration value. + */ + public ServiceImportConfigurationInfo importConfiguration() { + return this.importConfiguration; + } + + /** + * Set the importConfiguration property: The settings for the import operation of the service instance. + * + * @param importConfiguration the importConfiguration value to set. + * @return the ServicesProperties object itself. + */ + public ServicesProperties withImportConfiguration(ServiceImportConfigurationInfo importConfiguration) { + this.importConfiguration = importConfiguration; + return this; + } + /** * Validates the instance. * @@ -272,5 +295,8 @@ public void validate() { if (acrConfiguration() != null) { acrConfiguration().validate(); } + if (importConfiguration() != null) { + importConfiguration().validate(); + } } } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServicesResource.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServicesResource.java index 9c7840db5d3bb..eb799a1b588ca 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServicesResource.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServicesResource.java @@ -20,15 +20,13 @@ public class ServicesResource extends Resource { private Kind kind; /* - * An etag associated with the resource, used for optimistic concurrency - * when editing it. + * An etag associated with the resource, used for optimistic concurrency when editing it. */ @JsonProperty(value = "etag") private String etag; /* - * Setting indicating whether the service has a managed identity associated - * with it. + * Setting indicating whether the service has a managed identity associated with it. */ @JsonProperty(value = "identity") private ServicesResourceIdentity identity; diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServicesResourceIdentity.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServicesResourceIdentity.java index da0301c269f01..01790c8d48fbe 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServicesResourceIdentity.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/ServicesResourceIdentity.java @@ -23,8 +23,7 @@ public class ServicesResourceIdentity { private String tenantId; /* - * Type of identity being specified, currently SystemAssigned and None are - * allowed. + * Type of identity being specified, currently SystemAssigned and None are allowed. */ @JsonProperty(value = "type") private ManagedServiceIdentityType type; diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/Workspace.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/Workspace.java index 134915af23d8c..a744326725989 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/Workspace.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/Workspace.java @@ -82,6 +82,13 @@ public interface Workspace { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.healthcareapis.fluent.models.WorkspaceInner object. * diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/WorkspaceProperties.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/WorkspaceProperties.java index 1f1c74c03382c..f364500ae2953 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/WorkspaceProperties.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/main/java/com/azure/resourcemanager/healthcareapis/models/WorkspaceProperties.java @@ -18,15 +18,13 @@ public final class WorkspaceProperties { private ProvisioningState provisioningState; /* - * The list of private endpoint connections that are set up for this - * resource. + * The list of private endpoint connections that are set up for this resource. */ @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY) private List privateEndpointConnections; /* - * Control permission for data plane traffic coming from public networks - * while private endpoint is enabled. + * Control permission for data plane traffic coming from public networks while private endpoint is enabled. */ @JsonProperty(value = "publicNetworkAccess") private PublicNetworkAccess publicNetworkAccess; diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/AnalyticsConnectorOperationUpdateSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/AnalyticsConnectorOperationUpdateSamples.java new file mode 100644 index 0000000000000..d290ade26001d --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/AnalyticsConnectorOperationUpdateSamples.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorPatchResource; +import java.util.HashMap; +import java.util.Map; + +/** Samples for AnalyticsConnectorOperation Update. */ +public final class AnalyticsConnectorOperationUpdateSamples { + /* + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/analyticsconnectors/AnalyticsConnectors_Patch.json + */ + /** + * Sample code: Update a Analytics Connector Service. + * + * @param manager Entry point to HealthcareApisManager. + */ + public static void updateAAnalyticsConnectorService( + com.azure.resourcemanager.healthcareapis.HealthcareApisManager manager) { + manager + .analyticsConnectorOperations() + .update( + "testRG", + "workspace1", + "exampleconnector", + new AnalyticsConnectorPatchResource().withTags(mapOf("tagKey", "tagValue")), + Context.NONE); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/AnalyticsConnectorsCreateOrUpdateSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/AnalyticsConnectorsCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..556ad7e2df88f --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/AnalyticsConnectorsCreateOrUpdateSamples.java @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.generated; + +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorDataLakeDataDestination; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorFhirServiceDataSource; +import com.azure.resourcemanager.healthcareapis.models.AnalyticsConnectorFhirToParquetMapping; +import com.azure.resourcemanager.healthcareapis.models.FhirServiceVersion; + +/** Samples for AnalyticsConnectors CreateOrUpdate. */ +public final class AnalyticsConnectorsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/analyticsconnectors/AnalyticsConnectors_Create.json + */ + /** + * Sample code: Create or update a Analytics Connectors Service. + * + * @param manager Entry point to HealthcareApisManager. + */ + public static void createOrUpdateAAnalyticsConnectorsService( + com.azure.resourcemanager.healthcareapis.HealthcareApisManager manager) { + manager + .analyticsConnectors() + .define("exampleconnector") + .withExistingWorkspace("testRG", "workspace1") + .withRegion("westus") + .withDataSourceConfiguration( + new AnalyticsConnectorFhirServiceDataSource() + .withUrl("https://workspace-examplefhir.fhir.azurehealthcareapis.com") + .withKind(FhirServiceVersion.R4)) + .withDataMappingConfiguration( + new AnalyticsConnectorFhirToParquetMapping() + .withFilterConfigurationReference("acrexample.azurecr.io/blah@sha256xxx") + .withExtensionSchemaReference("acrexample.azurecr.io/blah@sha256aaa/Extension") + .withTransformationSchemaReference("acrexample.azurecr.io/blah@sha256bbb") + .withAnonymizationSchemaReference("acrexample.azurecr.io/blah@sha256ccc")) + .withDataDestinationConfiguration( + new AnalyticsConnectorDataLakeDataDestination().withDataLakeName("exampledatalake")) + .create(); + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/AnalyticsConnectorsDeleteSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/AnalyticsConnectorsDeleteSamples.java new file mode 100644 index 0000000000000..7ce711dfabd6a --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/AnalyticsConnectorsDeleteSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.generated; + +import com.azure.core.util.Context; + +/** Samples for AnalyticsConnectors Delete. */ +public final class AnalyticsConnectorsDeleteSamples { + /* + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/analyticsconnectors/AnalyticsConnectors_Delete.json + */ + /** + * Sample code: Delete a Analytics Connectors. + * + * @param manager Entry point to HealthcareApisManager. + */ + public static void deleteAAnalyticsConnectors( + com.azure.resourcemanager.healthcareapis.HealthcareApisManager manager) { + manager.analyticsConnectors().delete("testRG", "workspace1", "exampleconnector", Context.NONE); + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/AnalyticsConnectorsGetSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/AnalyticsConnectorsGetSamples.java new file mode 100644 index 0000000000000..55b0ae0a51551 --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/AnalyticsConnectorsGetSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.generated; + +import com.azure.core.util.Context; + +/** Samples for AnalyticsConnectors Get. */ +public final class AnalyticsConnectorsGetSamples { + /* + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/analyticsconnectors/AnalyticsConnectors_Get.json + */ + /** + * Sample code: Get a Analytics Connector Service. + * + * @param manager Entry point to HealthcareApisManager. + */ + public static void getAAnalyticsConnectorService( + com.azure.resourcemanager.healthcareapis.HealthcareApisManager manager) { + manager.analyticsConnectors().getWithResponse("testRG", "workspace1", "exampleconnector", Context.NONE); + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/AnalyticsConnectorsListByWorkspaceSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/AnalyticsConnectorsListByWorkspaceSamples.java new file mode 100644 index 0000000000000..26b86bac658ff --- /dev/null +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/AnalyticsConnectorsListByWorkspaceSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.healthcareapis.generated; + +import com.azure.core.util.Context; + +/** Samples for AnalyticsConnectors ListByWorkspace. */ +public final class AnalyticsConnectorsListByWorkspaceSamples { + /* + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/analyticsconnectors/AnalyticsConnectors_List.json + */ + /** + * Sample code: List Analytics Connectors. + * + * @param manager Entry point to HealthcareApisManager. + */ + public static void listAnalyticsConnectors(com.azure.resourcemanager.healthcareapis.HealthcareApisManager manager) { + manager.analyticsConnectors().listByWorkspace("testRG", "workspace1", Context.NONE); + } +} diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/DicomServicesCreateOrUpdateSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/DicomServicesCreateOrUpdateSamples.java index 6fa055adff1a3..19630ccf65aaf 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/DicomServicesCreateOrUpdateSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/DicomServicesCreateOrUpdateSamples.java @@ -7,7 +7,7 @@ /** Samples for DicomServices CreateOrUpdate. */ public final class DicomServicesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/dicomservices/DicomServices_Create.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/dicomservices/DicomServices_Create.json */ /** * Sample code: Create or update a Dicom Service. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/DicomServicesDeleteSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/DicomServicesDeleteSamples.java index e679789fb4abb..45105489bb605 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/DicomServicesDeleteSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/DicomServicesDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for DicomServices Delete. */ public final class DicomServicesDeleteSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/dicomservices/DicomServices_Delete.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/dicomservices/DicomServices_Delete.json */ /** * Sample code: Delete a dicomservice. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/DicomServicesGetSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/DicomServicesGetSamples.java index 4cb552cd0cbf7..24777047beaa2 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/DicomServicesGetSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/DicomServicesGetSamples.java @@ -9,7 +9,7 @@ /** Samples for DicomServices Get. */ public final class DicomServicesGetSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/dicomservices/DicomServices_Get.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/dicomservices/DicomServices_Get.json */ /** * Sample code: Get a dicomservice. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/DicomServicesListByWorkspaceSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/DicomServicesListByWorkspaceSamples.java index 02cc6ee14861e..e082800c9c127 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/DicomServicesListByWorkspaceSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/DicomServicesListByWorkspaceSamples.java @@ -9,7 +9,7 @@ /** Samples for DicomServices ListByWorkspace. */ public final class DicomServicesListByWorkspaceSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/dicomservices/DicomServices_List.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/dicomservices/DicomServices_List.json */ /** * Sample code: List dicomservices. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/DicomServicesUpdateSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/DicomServicesUpdateSamples.java index 9ab21e916d06a..87c4ad1c4bdf4 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/DicomServicesUpdateSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/DicomServicesUpdateSamples.java @@ -12,7 +12,7 @@ /** Samples for DicomServices Update. */ public final class DicomServicesUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/dicomservices/DicomServices_Patch.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/dicomservices/DicomServices_Patch.json */ /** * Sample code: Update a dicomservice. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirDestinationsListByIotConnectorSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirDestinationsListByIotConnectorSamples.java index 03a29370868b4..35e78aaa012dd 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirDestinationsListByIotConnectorSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirDestinationsListByIotConnectorSamples.java @@ -9,7 +9,7 @@ /** Samples for FhirDestinations ListByIotConnector. */ public final class FhirDestinationsListByIotConnectorSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_fhirdestination_List.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/iotconnectors/iotconnector_fhirdestination_List.json */ /** * Sample code: List IoT Connectors. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirServicesCreateOrUpdateSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirServicesCreateOrUpdateSamples.java index fc8aefa086d8e..530222a0a0019 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirServicesCreateOrUpdateSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirServicesCreateOrUpdateSamples.java @@ -9,6 +9,7 @@ import com.azure.resourcemanager.healthcareapis.models.FhirServiceAuthenticationConfiguration; import com.azure.resourcemanager.healthcareapis.models.FhirServiceCorsConfiguration; import com.azure.resourcemanager.healthcareapis.models.FhirServiceExportConfiguration; +import com.azure.resourcemanager.healthcareapis.models.FhirServiceImportConfiguration; import com.azure.resourcemanager.healthcareapis.models.FhirServiceKind; import com.azure.resourcemanager.healthcareapis.models.ServiceManagedIdentityIdentity; import com.azure.resourcemanager.healthcareapis.models.ServiceManagedIdentityType; @@ -19,7 +20,7 @@ /** Samples for FhirServices CreateOrUpdate. */ public final class FhirServicesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/fhirservices/FhirServices_Create.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/fhirservices/FhirServices_Create.json */ /** * Sample code: Create or update a Fhir Service. @@ -56,6 +57,11 @@ public static void createOrUpdateAFhirService( .withAllowCredentials(false)) .withExportConfiguration( new FhirServiceExportConfiguration().withStorageAccountName("existingStorageAccount")) + .withImportConfiguration( + new FhirServiceImportConfiguration() + .withIntegrationDataStore("existingStorageAccount") + .withInitialImportMode(false) + .withEnabled(false)) .create(); } diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirServicesDeleteSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirServicesDeleteSamples.java index c8ffac907e561..ad88ff56afbc2 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirServicesDeleteSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirServicesDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for FhirServices Delete. */ public final class FhirServicesDeleteSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/fhirservices/FhirServices_Delete.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/fhirservices/FhirServices_Delete.json */ /** * Sample code: Delete a Fhir Service. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirServicesGetSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirServicesGetSamples.java index aba4c2e3e1819..c9420df9f9cd1 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirServicesGetSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirServicesGetSamples.java @@ -9,7 +9,7 @@ /** Samples for FhirServices Get. */ public final class FhirServicesGetSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/fhirservices/FhirServices_Get.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/fhirservices/FhirServices_Get.json */ /** * Sample code: Get a Fhir Service. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirServicesListByWorkspaceSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirServicesListByWorkspaceSamples.java index 9ca69a7b364e4..deb269b1c68ef 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirServicesListByWorkspaceSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirServicesListByWorkspaceSamples.java @@ -9,7 +9,7 @@ /** Samples for FhirServices ListByWorkspace. */ public final class FhirServicesListByWorkspaceSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/fhirservices/FhirServices_List.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/fhirservices/FhirServices_List.json */ /** * Sample code: List fhirservices. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirServicesUpdateSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirServicesUpdateSamples.java index 30f6b6490f29e..2fe3a02c94813 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirServicesUpdateSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/FhirServicesUpdateSamples.java @@ -12,7 +12,7 @@ /** Samples for FhirServices Update. */ public final class FhirServicesUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/fhirservices/FhirServices_Patch.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/fhirservices/FhirServices_Patch.json */ /** * Sample code: Update a Fhir Service. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorFhirDestinationCreateOrUpdateSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorFhirDestinationCreateOrUpdateSamples.java index 8d01345481ac8..f0d9d1c24e367 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorFhirDestinationCreateOrUpdateSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorFhirDestinationCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ /** Samples for IotConnectorFhirDestination CreateOrUpdate. */ public final class IotConnectorFhirDestinationCreateOrUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_fhirdestination_Create.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/iotconnectors/iotconnector_fhirdestination_Create.json */ /** * Sample code: Create or update an Iot Connector FHIR destination. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorFhirDestinationDeleteSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorFhirDestinationDeleteSamples.java index 1ba49ade50b23..265b46e6a4ce8 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorFhirDestinationDeleteSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorFhirDestinationDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for IotConnectorFhirDestination Delete. */ public final class IotConnectorFhirDestinationDeleteSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_fhirdestination_Delete.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/iotconnectors/iotconnector_fhirdestination_Delete.json */ /** * Sample code: Delete an IoT Connector destination. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorFhirDestinationGetSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorFhirDestinationGetSamples.java index 1df0bc72c13dd..befadd91a71e6 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorFhirDestinationGetSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorFhirDestinationGetSamples.java @@ -9,7 +9,7 @@ /** Samples for IotConnectorFhirDestination Get. */ public final class IotConnectorFhirDestinationGetSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_fhirdestination_Get.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/iotconnectors/iotconnector_fhirdestination_Get.json */ /** * Sample code: Get an IoT Connector destination. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorsCreateOrUpdateSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorsCreateOrUpdateSamples.java index c48f90d2ec3b4..3ad05e59db8f3 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorsCreateOrUpdateSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorsCreateOrUpdateSamples.java @@ -17,7 +17,7 @@ /** Samples for IotConnectors CreateOrUpdate. */ public final class IotConnectorsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_Create.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/iotconnectors/iotconnector_Create.json */ /** * Sample code: Create an IoT Connector. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorsDeleteSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorsDeleteSamples.java index 0180d5571b736..1aaf5ff1a9011 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorsDeleteSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for IotConnectors Delete. */ public final class IotConnectorsDeleteSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_Delete.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/iotconnectors/iotconnector_Delete.json */ /** * Sample code: Delete an IoT Connector. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorsGetSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorsGetSamples.java index d5c33ba230d23..615ae66185a35 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorsGetSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for IotConnectors Get. */ public final class IotConnectorsGetSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_Get.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/iotconnectors/iotconnector_Get.json */ /** * Sample code: Get an IoT Connector. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorsListByWorkspaceSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorsListByWorkspaceSamples.java index 06ee399ce4d4f..9c0df0a663a9a 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorsListByWorkspaceSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorsListByWorkspaceSamples.java @@ -9,7 +9,7 @@ /** Samples for IotConnectors ListByWorkspace. */ public final class IotConnectorsListByWorkspaceSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_List.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/iotconnectors/iotconnector_List.json */ /** * Sample code: List iotconnectors. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorsUpdateSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorsUpdateSamples.java index 154465e3c7c11..4540e92c8c49f 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorsUpdateSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/IotConnectorsUpdateSamples.java @@ -14,7 +14,7 @@ /** Samples for IotConnectors Update. */ public final class IotConnectorsUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_Patch.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/iotconnectors/iotconnector_Patch.json */ /** * Sample code: Patch an IoT Connector. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/OperationResultsGetSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/OperationResultsGetSamples.java index 455069cb9ada7..f7beae0fdca39 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/OperationResultsGetSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/OperationResultsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for OperationResults Get. */ public final class OperationResultsGetSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/OperationResultsGet.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/OperationResultsGet.json */ /** * Sample code: Get operation result. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/OperationsListSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/OperationsListSamples.java index a60489f57f755..2353bc74e2a7b 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/OperationsListSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/OperationsList.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/OperationsList.json */ /** * Sample code: List operations. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java index 8b23ac90dfc76..2b76cee7aecd9 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java @@ -10,7 +10,7 @@ /** Samples for PrivateEndpointConnections CreateOrUpdate. */ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceCreatePrivateEndpointConnection.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/ServiceCreatePrivateEndpointConnection.json */ /** * Sample code: PrivateEndpointConnection_CreateOrUpdate. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateEndpointConnectionsDeleteSamples.java index 09c0b9e46c8b5..3c31999eb5f68 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateEndpointConnections Delete. */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceDeletePrivateEndpointConnection.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/ServiceDeletePrivateEndpointConnection.json */ /** * Sample code: PrivateEndpointConnections_Delete. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateEndpointConnectionsGetSamples.java index b5896a7eeab32..4b26b0c51bae6 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateEndpointConnectionsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateEndpointConnections Get. */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceGetPrivateEndpointConnection.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/ServiceGetPrivateEndpointConnection.json */ /** * Sample code: PrivateEndpointConnection_GetConnection. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateEndpointConnectionsListByServiceSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateEndpointConnectionsListByServiceSamples.java index f742572ab9673..0135f5ab4d553 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateEndpointConnectionsListByServiceSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateEndpointConnectionsListByServiceSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateEndpointConnections ListByService. */ public final class PrivateEndpointConnectionsListByServiceSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceListPrivateEndpointConnections.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/ServiceListPrivateEndpointConnections.json */ /** * Sample code: PrivateEndpointConnection_List. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateLinkResourcesGetSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateLinkResourcesGetSamples.java index 659a7ccce0876..22389bda780ca 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateLinkResourcesGetSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateLinkResourcesGetSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateLinkResources Get. */ public final class PrivateLinkResourcesGetSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/PrivateLinkResourceGet.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/PrivateLinkResourceGet.json */ /** * Sample code: PrivateLinkResources_Get. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateLinkResourcesListByServiceSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateLinkResourcesListByServiceSamples.java index a7db5c08c934e..6e20428936ebc 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateLinkResourcesListByServiceSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/PrivateLinkResourcesListByServiceSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateLinkResources ListByService. */ public final class PrivateLinkResourcesListByServiceSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/PrivateLinkResourcesListByService.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/PrivateLinkResourcesListByService.json */ /** * Sample code: PrivateLinkResources_ListGroupIds. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesCheckNameAvailabilitySamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesCheckNameAvailabilitySamples.java index 3afd2585bb0e2..883005f7745ed 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesCheckNameAvailabilitySamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesCheckNameAvailabilitySamples.java @@ -10,7 +10,7 @@ /** Samples for Services CheckNameAvailability. */ public final class ServicesCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/CheckNameAvailabilityPost.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/CheckNameAvailabilityPost.json */ /** * Sample code: Check name availability. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesCreateOrUpdateSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesCreateOrUpdateSamples.java index 3ce996dd053ac..5b8f181892a75 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesCreateOrUpdateSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesCreateOrUpdateSamples.java @@ -21,7 +21,7 @@ /** Samples for Services CreateOrUpdate. */ public final class ServicesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceCreate.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/ServiceCreate.json */ /** * Sample code: Create or Update a service with all parameters. @@ -69,7 +69,7 @@ public static void createOrUpdateAServiceWithAllParameters( } /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceCreateMinimum.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/ServiceCreateMinimum.json */ /** * Sample code: Create or Update a service with minimum parameters. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesDeleteSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesDeleteSamples.java index 44f252014ea43..b812b7f18df12 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesDeleteSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for Services Delete. */ public final class ServicesDeleteSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceDelete.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/ServiceDelete.json */ /** * Sample code: Delete service. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesGetByResourceGroupSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesGetByResourceGroupSamples.java index 0d9062455a278..311a63110fff5 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesGetByResourceGroupSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for Services GetByResourceGroup. */ public final class ServicesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceGet.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/ServiceGet.json */ /** * Sample code: Get metadata. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesListByResourceGroupSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesListByResourceGroupSamples.java index 50cdb3431da94..5ddb0b8b67a01 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesListByResourceGroupSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesListByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for Services ListByResourceGroup. */ public final class ServicesListByResourceGroupSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceListByResourceGroup.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/ServiceListByResourceGroup.json */ /** * Sample code: List all services in resource group. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesListSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesListSamples.java index 2a7f33273a084..b276266739cf0 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesListSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesListSamples.java @@ -9,7 +9,7 @@ /** Samples for Services List. */ public final class ServicesListSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceList.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/ServiceList.json */ /** * Sample code: List all services in subscription. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesUpdateSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesUpdateSamples.java index e5fb5dc45c0f5..5060ddeaa384e 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesUpdateSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/ServicesUpdateSamples.java @@ -12,7 +12,7 @@ /** Samples for Services Update. */ public final class ServicesUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServicePatch.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/legacy/ServicePatch.json */ /** * Sample code: Patch service. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateEndpointConnectionsCreateOrUpdateSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateEndpointConnectionsCreateOrUpdateSamples.java index abbeeea4f9199..2d46d2ed0ec5e 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateEndpointConnectionsCreateOrUpdateSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateEndpointConnectionsCreateOrUpdateSamples.java @@ -12,7 +12,7 @@ /** Samples for WorkspacePrivateEndpointConnections CreateOrUpdate. */ public final class WorkspacePrivateEndpointConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/privatelink/WorkspaceCreatePrivateEndpointConnection.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/privatelink/WorkspaceCreatePrivateEndpointConnection.json */ /** * Sample code: WorkspacePrivateEndpointConnection_CreateOrUpdate. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateEndpointConnectionsDeleteSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateEndpointConnectionsDeleteSamples.java index ec7d6ad818377..ac56bb4a87c54 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateEndpointConnectionsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for WorkspacePrivateEndpointConnections Delete. */ public final class WorkspacePrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/privatelink/WorkspaceDeletePrivateEndpointConnection.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/privatelink/WorkspaceDeletePrivateEndpointConnection.json */ /** * Sample code: WorkspacePrivateEndpointConnections_Delete. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateEndpointConnectionsGetSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateEndpointConnectionsGetSamples.java index a8a13c1c4fed1..6ce6ee5e48475 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateEndpointConnectionsGetSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateEndpointConnectionsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for WorkspacePrivateEndpointConnections Get. */ public final class WorkspacePrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/privatelink/WorkspaceGetPrivateEndpointConnection.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/privatelink/WorkspaceGetPrivateEndpointConnection.json */ /** * Sample code: WorkspacePrivateEndpointConnection_GetConnection. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateEndpointConnectionsListByWorkspaceSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateEndpointConnectionsListByWorkspaceSamples.java index c27396a1447a8..ae98fbb8a4c02 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateEndpointConnectionsListByWorkspaceSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateEndpointConnectionsListByWorkspaceSamples.java @@ -9,7 +9,7 @@ /** Samples for WorkspacePrivateEndpointConnections ListByWorkspace. */ public final class WorkspacePrivateEndpointConnectionsListByWorkspaceSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/privatelink/WorkspaceListPrivateEndpointConnections.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/privatelink/WorkspaceListPrivateEndpointConnections.json */ /** * Sample code: WorkspacePrivateEndpointConnection_List. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateLinkResourcesGetSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateLinkResourcesGetSamples.java index f7723401f8058..dd31107939579 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateLinkResourcesGetSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateLinkResourcesGetSamples.java @@ -9,7 +9,7 @@ /** Samples for WorkspacePrivateLinkResources Get. */ public final class WorkspacePrivateLinkResourcesGetSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/privatelink/WorkspacePrivateLinkResourceGet.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/privatelink/WorkspacePrivateLinkResourceGet.json */ /** * Sample code: WorkspacePrivateLinkResources_Get. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateLinkResourcesListByWorkspaceSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateLinkResourcesListByWorkspaceSamples.java index 0f2468d0b9b02..4fe76584191db 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateLinkResourcesListByWorkspaceSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacePrivateLinkResourcesListByWorkspaceSamples.java @@ -9,7 +9,7 @@ /** Samples for WorkspacePrivateLinkResources ListByWorkspace. */ public final class WorkspacePrivateLinkResourcesListByWorkspaceSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/privatelink/PrivateLinkResourcesListByWorkspace.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/privatelink/PrivateLinkResourcesListByWorkspace.json */ /** * Sample code: WorkspacePrivateLinkResources_ListGroupIds. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesCreateOrUpdateSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesCreateOrUpdateSamples.java index c2a602cf6cb1c..6fcb32dbd3845 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesCreateOrUpdateSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesCreateOrUpdateSamples.java @@ -9,7 +9,7 @@ /** Samples for Workspaces CreateOrUpdate. */ public final class WorkspacesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/workspaces/Workspaces_Create.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/workspaces/Workspaces_Create.json */ /** * Sample code: Create or update a workspace. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesDeleteSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesDeleteSamples.java index 49b0a3ce5dac0..de31d57f72338 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesDeleteSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for Workspaces Delete. */ public final class WorkspacesDeleteSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/workspaces/Workspaces_Delete.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/workspaces/Workspaces_Delete.json */ /** * Sample code: Delete a workspace. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesGetByResourceGroupSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesGetByResourceGroupSamples.java index ca4b44cd7dadd..047a36661ad80 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesGetByResourceGroupSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for Workspaces GetByResourceGroup. */ public final class WorkspacesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/workspaces/Workspaces_Get.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/workspaces/Workspaces_Get.json */ /** * Sample code: Get workspace. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesListByResourceGroupSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesListByResourceGroupSamples.java index a4ab24aa54dcd..0f0b16c72b328 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesListByResourceGroupSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesListByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for Workspaces ListByResourceGroup. */ public final class WorkspacesListByResourceGroupSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/workspaces/Workspaces_ListByResourceGroup.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/workspaces/Workspaces_ListByResourceGroup.json */ /** * Sample code: Get workspaces by resource group. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesListSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesListSamples.java index 6a4388bb61645..195e9d93a7875 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesListSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesListSamples.java @@ -9,7 +9,7 @@ /** Samples for Workspaces List. */ public final class WorkspacesListSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/workspaces/Workspaces_ListBySubscription.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/workspaces/Workspaces_ListBySubscription.json */ /** * Sample code: Get workspaces by subscription. diff --git a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesUpdateSamples.java b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesUpdateSamples.java index ffab21aab4297..3576f612d1043 100644 --- a/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesUpdateSamples.java +++ b/sdk/healthcareapis/azure-resourcemanager-healthcareapis/src/samples/java/com/azure/resourcemanager/healthcareapis/generated/WorkspacesUpdateSamples.java @@ -12,7 +12,7 @@ /** Samples for Workspaces Update. */ public final class WorkspacesUpdateSamples { /* - * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/workspaces/Workspaces_Patch.json + * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2022-10-01-preview/examples/workspaces/Workspaces_Patch.json */ /** * Sample code: Update a workspace.