Skip to content

Commit

Permalink
CodeGen from PR 19948 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge bf9e2c9820f17adae7f07b9a10a9ca7c6e7a9ca1 into fdd4e5c9b9225698c7f26c75c4b26be5c57e60f8
  • Loading branch information
SDKAuto committed Oct 25, 2022
1 parent 9b365d0 commit 2e51a75
Show file tree
Hide file tree
Showing 231 changed files with 6,297 additions and 772 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.3 (Unreleased)
## 1.0.0-beta.1 (2022-10-25)

- 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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-healthcareapis</artifactId>
<version>1.0.0-beta.2</version>
<version>1.0.0-beta.3</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand All @@ -41,19 +41,19 @@ Various documentation is available to help you get started

Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.

[Azure Identity][azure_identity] and [Azure Core Netty HTTP][azure_core_http_netty] packages provide the default implementation.
[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.

### Authentication

By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables.
By default, Azure Active Directory token authentication depends on correct configure of following environment variables.

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.

In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.

With above configuration, `azure` client can be authenticated using the following code:
With above configuration, `azure` client can be authenticated by following code:

```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
Expand Down
259 changes: 212 additions & 47 deletions sdk/healthcareapis/azure-resourcemanager-healthcareapis/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for HealthcareApis Management</name>
<description>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.</description>
<description>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.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -82,6 +86,10 @@ public final class HealthcareApisManager {

private WorkspacePrivateLinkResources workspacePrivateLinkResources;

private AnalyticsConnectors analyticsConnectors;

private AnalyticsConnectorOperations analyticsConnectorOperations;

private Operations operations;

private OperationResults operationResults;
Expand Down Expand Up @@ -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(" (")
Expand Down Expand Up @@ -308,15 +316,23 @@ 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);
}
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 =
Expand All @@ -325,47 +341,71 @@ 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);
}
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);
}
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);
}
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);
}
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);
}
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 =
Expand All @@ -374,15 +414,23 @@ 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);
}
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 =
Expand All @@ -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 =
Expand All @@ -401,15 +453,48 @@ 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);
}
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);
Expand Down
Original file line number Diff line number Diff line change
@@ -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<PollResult<AnalyticsConnectorInner>, 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<PollResult<AnalyticsConnectorInner>, 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);
}
Loading

0 comments on commit 2e51a75

Please sign in to comment.