Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sdk/healthbot/azure-resourcemanager-healthbot/CHANGELOG.md
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-07-26)

- Azure Resource Manager Healthbot client library for Java. This package contains Microsoft Azure SDK for Healthbot Management SDK. Azure Health Bot is a cloud platform that empowers developers in Healthcare organizations to build and deploy their compliant, AI-powered virtual health assistants and health bots, that help them improve processes and reduce costs. Package tag package-2021-06-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
4 changes: 2 additions & 2 deletions sdk/healthbot/azure-resourcemanager-healthbot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager Healthbot client library for Java.

This package contains Microsoft Azure SDK for Healthbot Management SDK. Microsoft Healthcare Bot is a cloud platform that empowers developers in Healthcare organizations to build and deploy their compliant, AI-powered virtual health assistants and health bots, that help them improve processes and reduce costs. Package tag package-2020-12-08. 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 Healthbot Management SDK. Azure Health Bot is a cloud platform that empowers developers in Healthcare organizations to build and deploy their compliant, AI-powered virtual health assistants and health bots, that help them improve processes and reduce costs. Package tag package-2021-06-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-healthbot</artifactId>
<version>1.0.0-beta.2</version>
<version>1.0.0-beta.3</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
39 changes: 32 additions & 7 deletions sdk/healthbot/azure-resourcemanager-healthbot/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,18 @@
### Bots_Create

```java
import com.azure.resourcemanager.healthbot.models.Identity;
import com.azure.resourcemanager.healthbot.models.ResourceIdentityType;
import com.azure.resourcemanager.healthbot.models.Sku;
import com.azure.resourcemanager.healthbot.models.SkuName;
import com.azure.resourcemanager.healthbot.models.UserAssignedIdentity;
import java.util.HashMap;
import java.util.Map;

/** Samples for Bots Create. */
public final class BotsCreateSamples {
/*
* x-ms-original-file: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2020-12-08/examples/ResourceCreationPut.json
* x-ms-original-file: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2021-06-10/examples/ResourceCreationPut.json
*/
/**
* Sample code: BotCreate.
Expand All @@ -36,8 +41,28 @@ public final class BotsCreateSamples {
.withRegion("East US")
.withExistingResourceGroup("healthbotClient")
.withSku(new Sku().withName(SkuName.F0))
.withIdentity(
new Identity()
.withType(ResourceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
.withUserAssignedIdentities(
mapOf(
"/subscriptions/subscription-id/resourcegroups/myrg/providers/microsoft.managedidentity/userassignedidentities/my-mi",
new UserAssignedIdentity(),
"/subscriptions/subscription-id/resourcegroups/myrg/providers/microsoft.managedidentity/userassignedidentities/my-mi2",
new UserAssignedIdentity())))
.create();
}

@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> 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;
}
}
```

Expand All @@ -49,7 +74,7 @@ import com.azure.core.util.Context;
/** Samples for Bots Delete. */
public final class BotsDeleteSamples {
/*
* x-ms-original-file: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2020-12-08/examples/ResourceDeletionDelete.json
* x-ms-original-file: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2021-06-10/examples/ResourceDeletionDelete.json
*/
/**
* Sample code: BotDelete.
Expand All @@ -70,7 +95,7 @@ import com.azure.core.util.Context;
/** Samples for Bots GetByResourceGroup. */
public final class BotsGetByResourceGroupSamples {
/*
* x-ms-original-file: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2020-12-08/examples/ResourceInfoGet.json
* x-ms-original-file: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2021-06-10/examples/ResourceInfoGet.json
*/
/**
* Sample code: ResourceInfoGet.
Expand All @@ -91,7 +116,7 @@ import com.azure.core.util.Context;
/** Samples for Bots List. */
public final class BotsListSamples {
/*
* x-ms-original-file: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2020-12-08/examples/ListBotsBySubscription.json
* x-ms-original-file: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2021-06-10/examples/ListBotsBySubscription.json
*/
/**
* Sample code: List Bots by Subscription.
Expand All @@ -112,7 +137,7 @@ import com.azure.core.util.Context;
/** Samples for Bots ListByResourceGroup. */
public final class BotsListByResourceGroupSamples {
/*
* x-ms-original-file: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2020-12-08/examples/ListBotsByResourceGroup.json
* x-ms-original-file: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2021-06-10/examples/ListBotsByResourceGroup.json
*/
/**
* Sample code: List Bots by Resource Group.
Expand All @@ -136,7 +161,7 @@ import com.azure.resourcemanager.healthbot.models.SkuName;
/** Samples for Bots Update. */
public final class BotsUpdateSamples {
/*
* x-ms-original-file: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2020-12-08/examples/ResourceUpdatePatch.json
* x-ms-original-file: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2021-06-10/examples/ResourceUpdatePatch.json
*/
/**
* Sample code: BotUpdate.
Expand All @@ -159,7 +184,7 @@ import com.azure.core.util.Context;
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
* x-ms-original-file: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2020-12-08/examples/GetOperations.json
* x-ms-original-file: specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2021-06-10/examples/GetOperations.json
*/
/**
* Sample code: Get Operations.
Expand Down
2 changes: 1 addition & 1 deletion sdk/healthbot/azure-resourcemanager-healthbot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for Healthbot Management</name>
<description>This package contains Microsoft Azure SDK for Healthbot Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft Healthcare Bot is a cloud platform that empowers developers in Healthcare organizations to build and deploy their compliant, AI-powered virtual health assistants and health bots, that help them improve processes and reduce costs. Package tag package-2020-12-08.</description>
<description>This package contains Microsoft Azure SDK for Healthbot Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Health Bot is a cloud platform that empowers developers in Healthcare organizations to build and deploy their compliant, AI-powered virtual health assistants and health bots, that help them improve processes and reduce costs. Package tag package-2021-06-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 @@ -37,7 +37,7 @@
import java.util.stream.Collectors;

/**
* Entry point to HealthbotManager. Microsoft Healthcare Bot is a cloud platform that empowers developers in Healthcare
* Entry point to HealthbotManager. Azure Health Bot is a cloud platform that empowers developers in Healthcare
* organizations to build and deploy their compliant, AI-powered virtual health assistants and health bots, that help
* them improve processes and reduce costs.
*/
Expand Down Expand Up @@ -211,7 +211,7 @@ public HealthbotManager authenticate(TokenCredential credential, AzureProfile pr
.append("-")
.append("com.azure.resourcemanager.healthbot")
.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
Original file line number Diff line number Diff line change
Expand Up @@ -17,61 +17,61 @@
/** An instance of this class provides access to all the operations defined in BotsClient. */
public interface BotsClient {
/**
* Create a new HealthBot.
* Create a new Azure Health Bot.
*
* @param resourceGroupName The name of the Bot resource group in the user subscription.
* @param botName The name of the Bot resource.
* @param parameters The parameters to provide for the created bot.
* @param parameters The parameters to provide for the created Azure Health Bot.
* @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 healthBot resource definition.
* @return the {@link SyncPoller} for polling of azure Health Bot resource definition.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<HealthBotInner>, HealthBotInner> beginCreate(
String resourceGroupName, String botName, HealthBotInner parameters);

/**
* Create a new HealthBot.
* Create a new Azure Health Bot.
*
* @param resourceGroupName The name of the Bot resource group in the user subscription.
* @param botName The name of the Bot resource.
* @param parameters The parameters to provide for the created bot.
* @param parameters The parameters to provide for the created Azure Health Bot.
* @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 healthBot resource definition.
* @return the {@link SyncPoller} for polling of azure Health Bot resource definition.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<HealthBotInner>, HealthBotInner> beginCreate(
String resourceGroupName, String botName, HealthBotInner parameters, Context context);

/**
* Create a new HealthBot.
* Create a new Azure Health Bot.
*
* @param resourceGroupName The name of the Bot resource group in the user subscription.
* @param botName The name of the Bot resource.
* @param parameters The parameters to provide for the created bot.
* @param parameters The parameters to provide for the created Azure Health Bot.
* @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 healthBot resource definition.
* @return azure Health Bot resource definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
HealthBotInner create(String resourceGroupName, String botName, HealthBotInner parameters);

/**
* Create a new HealthBot.
* Create a new Azure Health Bot.
*
* @param resourceGroupName The name of the Bot resource group in the user subscription.
* @param botName The name of the Bot resource.
* @param parameters The parameters to provide for the created bot.
* @param parameters The parameters to provide for the created Azure Health Bot.
* @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 healthBot resource definition.
* @return azure Health Bot resource definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
HealthBotInner create(String resourceGroupName, String botName, HealthBotInner parameters, Context context);
Expand Down Expand Up @@ -108,11 +108,11 @@ SyncPoller<PollResult<HealthBotInner>, HealthBotInner> beginCreate(
*
* @param resourceGroupName The name of the Bot resource group in the user subscription.
* @param botName The name of the Bot resource.
* @param parameters The parameters to provide for the required bot.
* @param parameters The parameters to provide for the required Azure Health Bot.
* @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 healthBot resource definition.
* @return azure Health Bot resource definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
HealthBotInner update(String resourceGroupName, String botName, HealthBotUpdateParameters parameters);
Expand All @@ -122,12 +122,12 @@ SyncPoller<PollResult<HealthBotInner>, HealthBotInner> beginCreate(
*
* @param resourceGroupName The name of the Bot resource group in the user subscription.
* @param botName The name of the Bot resource.
* @param parameters The parameters to provide for the required bot.
* @param parameters The parameters to provide for the required Azure Health Bot.
* @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 healthBot resource definition along with {@link Response}.
* @return azure Health Bot resource definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<HealthBotInner> updateWithResponse(
Expand Down Expand Up @@ -192,7 +192,7 @@ Response<HealthBotInner> updateWithResponse(
* @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 list of Healthbot operation response as paginated response with {@link PagedIterable}.
* @return the list of Azure Health Bot operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<HealthBotInner> listByResourceGroup(String resourceGroupName);
Expand All @@ -205,7 +205,7 @@ Response<HealthBotInner> updateWithResponse(
* @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 list of Healthbot operation response as paginated response with {@link PagedIterable}.
* @return the list of Azure Health Bot operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<HealthBotInner> listByResourceGroup(String resourceGroupName, Context context);
Expand All @@ -215,7 +215,7 @@ Response<HealthBotInner> updateWithResponse(
*
* @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 list of Healthbot operation response as paginated response with {@link PagedIterable}.
* @return the list of Azure Health Bot operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<HealthBotInner> list();
Expand All @@ -227,7 +227,7 @@ Response<HealthBotInner> updateWithResponse(
* @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 list of Healthbot operation response as paginated response with {@link PagedIterable}.
* @return the list of Azure Health Bot operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<HealthBotInner> list(Context context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/** An instance of this class provides access to all the operations defined in OperationsClient. */
public interface OperationsClient {
/**
* Lists all the available HealthBot operations.
* Lists all the available Azure Health Bot operations.
*
* @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.
Expand All @@ -23,7 +23,7 @@ public interface OperationsClient {
PagedIterable<OperationDetailInner> list();

/**
* Lists all the available HealthBot operations.
* Lists all the available Azure Health Bot operations.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
Expand Down
Loading