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.resourcemanagerazure-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 @@
jarMicrosoft 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