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
54 changes: 50 additions & 4 deletions sdk/healthbot/azure-resourcemanager-healthbot/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,60 @@
# Release History

## 1.1.0-beta.1 (Unreleased)
## 1.0.0-beta.1 (2025-04-30)

- 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-2024-02. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

### Breaking Changes
* `models.UserAssignedIdentity` was added

### Bugs Fixed
* `models.HealthBotKey` was added

### Other Changes
* `models.ResourceIdentityType` was added

* `models.Identity` was added

* `models.KeyVaultProperties` was added

* `models.HealthBotKeysResponse` was added

#### `models.HealthBotUpdateParameters` was modified

* `identity()` was added
* `withProperties(models.HealthBotProperties)` was added
* `location()` was added
* `withIdentity(models.Identity)` was added
* `properties()` was added
* `withLocation(java.lang.String)` was added

#### `models.HealthBot$Definition` was modified

* `withIdentity(models.Identity)` was added

#### `models.HealthBotProperties` was modified

* `keyVaultProperties()` was added
* `withKeyVaultProperties(models.KeyVaultProperties)` was added

#### `models.HealthBot` was modified

* `listSecrets()` was added
* `regenerateApiJwtSecret()` was added
* `regenerateApiJwtSecretWithResponse(com.azure.core.util.Context)` was added
* `identity()` was added
* `listSecretsWithResponse(com.azure.core.util.Context)` was added

#### `models.Bots` was modified

* `listSecretsWithResponse(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
* `listSecrets(java.lang.String,java.lang.String)` was added
* `regenerateApiJwtSecret(java.lang.String,java.lang.String)` was added
* `regenerateApiJwtSecretWithResponse(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added

#### `models.HealthBot$Update` was modified

* `withProperties(models.HealthBotProperties)` was added
* `withIdentity(models.Identity)` was added

## 1.0.0 (2024-12-23)

Expand Down
8 changes: 3 additions & 5 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-2024-02. 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 @@ -52,15 +52,15 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:

```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
HealthbotManager manager = HealthbotManager
.authenticate(credential, profile);
```

The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.

See [Authentication][authenticate] for more options.

Expand Down Expand Up @@ -100,5 +100,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/


161 changes: 116 additions & 45 deletions sdk/healthbot/azure-resourcemanager-healthbot/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
- [GetByResourceGroup](#bots_getbyresourcegroup)
- [List](#bots_list)
- [ListByResourceGroup](#bots_listbyresourcegroup)
- [ListSecrets](#bots_listsecrets)
- [RegenerateApiJwtSecret](#bots_regenerateapijwtsecret)
- [Update](#bots_update)

## Operations
Expand All @@ -16,29 +18,22 @@
### Bots_Create

```java
import com.azure.resourcemanager.healthbot.models.Sku;
import com.azure.resourcemanager.healthbot.models.SkuName;

/**
* Samples for Bots Create.
* Samples for Bots ListByResourceGroup.
*/
public final class BotsCreateSamples {
public final class BotsListByResourceGroupSamples {
/*
* x-ms-original-file:
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2020-12-08/examples/ResourceCreationPut.json
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2024-02-01/examples/ListBotsByResourceGroup.
* json
*/
/**
* Sample code: BotCreate.
* Sample code: List Bots by Resource Group.
*
* @param manager Entry point to HealthbotManager.
*/
public static void botCreate(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
manager.bots()
.define("samplebotname")
.withRegion("East US")
.withExistingResourceGroup("healthbotClient")
.withSku(new Sku().withName(SkuName.F0))
.create();
public static void listBotsByResourceGroup(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
manager.bots().listByResourceGroup("OneResourceGroupName", com.azure.core.util.Context.NONE);
}
}
```
Expand All @@ -52,7 +47,7 @@ public final class BotsCreateSamples {
public final class BotsDeleteSamples {
/*
* x-ms-original-file:
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2020-12-08/examples/ResourceDeletionDelete.
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2024-02-01/examples/ResourceDeletionDelete.
* json
*/
/**
Expand All @@ -69,22 +64,28 @@ public final class BotsDeleteSamples {
### Bots_GetByResourceGroup

```java
import com.azure.resourcemanager.healthbot.models.HealthBot;
import com.azure.resourcemanager.healthbot.models.Sku;
import com.azure.resourcemanager.healthbot.models.SkuName;

/**
* Samples for Bots GetByResourceGroup.
* Samples for Bots Update.
*/
public final class BotsGetByResourceGroupSamples {
public final class BotsUpdateSamples {
/*
* x-ms-original-file:
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2020-12-08/examples/ResourceInfoGet.json
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2024-02-01/examples/ResourceUpdatePatch.json
*/
/**
* Sample code: ResourceInfoGet.
* Sample code: BotUpdate.
*
* @param manager Entry point to HealthbotManager.
*/
public static void resourceInfoGet(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
manager.bots()
.getByResourceGroupWithResponse("healthbotClient", "samplebotname", com.azure.core.util.Context.NONE);
public static void botUpdate(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
HealthBot resource = manager.bots()
.getByResourceGroupWithResponse("healthbotClient", "samplebotname", com.azure.core.util.Context.NONE)
.getValue();
resource.update().withSku(new Sku().withName(SkuName.F0)).apply();
}
}
```
Expand All @@ -98,7 +99,7 @@ public final class BotsGetByResourceGroupSamples {
public final class BotsListSamples {
/*
* x-ms-original-file:
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2020-12-08/examples/ListBotsBySubscription.
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2024-02-01/examples/ListBotsBySubscription.
* json
*/
/**
Expand All @@ -116,50 +117,119 @@ public final class BotsListSamples {

```java
/**
* Samples for Bots ListByResourceGroup.
* Samples for Bots RegenerateApiJwtSecret.
*/
public final class BotsListByResourceGroupSamples {
public final class BotsRegenerateApiJwtSecretSamples {
/*
* x-ms-original-file:
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2020-12-08/examples/ListBotsByResourceGroup.
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2024-02-01/examples/RegenerateApiJwtSecret.
* json
*/
/**
* Sample code: List Bots by Resource Group.
* Sample code: Bot Regenerate API JWT Secret.
*
* @param manager Entry point to HealthbotManager.
*/
public static void listBotsByResourceGroup(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
manager.bots().listByResourceGroup("OneResourceGroupName", com.azure.core.util.Context.NONE);
public static void botRegenerateAPIJWTSecret(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
manager.bots()
.regenerateApiJwtSecretWithResponse("healthbotClient", "samplebotname", com.azure.core.util.Context.NONE);
}
}
```

### Bots_ListSecrets

```java
/**
* Samples for Operations List.
*/
public final class OperationsListSamples {
/*
* x-ms-original-file:
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2024-02-01/examples/GetOperations.json
*/
/**
* Sample code: Get Operations.
*
* @param manager Entry point to HealthbotManager.
*/
public static void getOperations(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
manager.operations().list(com.azure.core.util.Context.NONE);
}
}
```

### Bots_RegenerateApiJwtSecret

```java
/**
* Samples for Bots ListSecrets.
*/
public final class BotsListSecretsSamples {
/*
* x-ms-original-file:
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2024-02-01/examples/ListSecrets.json
*/
/**
* Sample code: Bot List Secrets.
*
* @param manager Entry point to HealthbotManager.
*/
public static void botListSecrets(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
manager.bots().listSecretsWithResponse("healthbotClient", "samplebotname", com.azure.core.util.Context.NONE);
}
}
```

### Bots_Update

```java
import com.azure.resourcemanager.healthbot.models.HealthBot;
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 Update.
* Samples for Bots Create.
*/
public final class BotsUpdateSamples {
public final class BotsCreateSamples {
/*
* x-ms-original-file:
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2020-12-08/examples/ResourceUpdatePatch.json
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2024-02-01/examples/ResourceCreationPut.json
*/
/**
* Sample code: BotUpdate.
* Sample code: BotCreate.
*
* @param manager Entry point to HealthbotManager.
*/
public static void botUpdate(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
HealthBot resource = manager.bots()
.getByResourceGroupWithResponse("healthbotClient", "samplebotname", com.azure.core.util.Context.NONE)
.getValue();
resource.update().withSku(new Sku().withName(SkuName.F0)).apply();
public static void botCreate(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
manager.bots()
.define("samplebotname")
.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();
}

// Use "Map.of" if available
@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 @@ -168,20 +238,21 @@ public final class BotsUpdateSamples {

```java
/**
* Samples for Operations List.
* Samples for Bots GetByResourceGroup.
*/
public final class OperationsListSamples {
public final class BotsGetByResourceGroupSamples {
/*
* x-ms-original-file:
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2020-12-08/examples/GetOperations.json
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2024-02-01/examples/ResourceInfoGet.json
*/
/**
* Sample code: Get Operations.
* Sample code: ResourceInfoGet.
*
* @param manager Entry point to HealthbotManager.
*/
public static void getOperations(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
manager.operations().list(com.azure.core.util.Context.NONE);
public static void resourceInfoGet(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
manager.bots()
.getByResourceGroupWithResponse("healthbotClient", "samplebotname", com.azure.core.util.Context.NONE);
}
}
```
Expand Down
4 changes: 2 additions & 2 deletions sdk/healthbot/azure-resourcemanager-healthbot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,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-2024-02.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -45,7 +45,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<spotless.skip>false</spotless.skip>
<revapi.skip>true</revapi.skip>
</properties>
<dependencies>
<dependency>
Expand Down
Loading