diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/CHANGELOG.md b/sdk/healthbot/azure-resourcemanager-healthbot/CHANGELOG.md
index 1f877453d25b..46dfa8984981 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/CHANGELOG.md
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/CHANGELOG.md
@@ -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
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/README.md b/sdk/healthbot/azure-resourcemanager-healthbot/README.md
index f247dcc4d254..6a06cde2c03b 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/README.md
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/README.md
@@ -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
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-healthbot
- 1.0.0-beta.2
+ 1.0.0-beta.3
```
[//]: # ({x-version-update-end})
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/SAMPLE.md b/sdk/healthbot/azure-resourcemanager-healthbot/SAMPLE.md
index 121f8fa1cc96..4894a7c36d30 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/SAMPLE.md
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/SAMPLE.md
@@ -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.
@@ -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 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;
+ }
}
```
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/pom.xml b/sdk/healthbot/azure-resourcemanager-healthbot/pom.xml
index 8bb5aad3c818..28545c98e164 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/pom.xml
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/pom.xml
@@ -13,7 +13,7 @@
jar
Microsoft Azure SDK for Healthbot Management
- 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.
+ 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.
https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/HealthbotManager.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/HealthbotManager.java
index d52fbd472476..6ea62c02cc64 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/HealthbotManager.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/HealthbotManager.java
@@ -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.
*/
@@ -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(" (")
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/fluent/BotsClient.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/fluent/BotsClient.java
index 1fd30bfda0c4..1fd0408306f2 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/fluent/BotsClient.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/fluent/BotsClient.java
@@ -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, 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, 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);
@@ -108,11 +108,11 @@ SyncPoller, 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);
@@ -122,12 +122,12 @@ SyncPoller, 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 updateWithResponse(
@@ -192,7 +192,7 @@ Response 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 listByResourceGroup(String resourceGroupName);
@@ -205,7 +205,7 @@ Response 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 listByResourceGroup(String resourceGroupName, Context context);
@@ -215,7 +215,7 @@ Response 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 list();
@@ -227,7 +227,7 @@ Response 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 list(Context context);
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/fluent/OperationsClient.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/fluent/OperationsClient.java
index 05ddc2bab42a..20baba14fcc4 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/fluent/OperationsClient.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/fluent/OperationsClient.java
@@ -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.
@@ -23,7 +23,7 @@ public interface OperationsClient {
PagedIterable 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.
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/fluent/models/HealthBotInner.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/fluent/models/HealthBotInner.java
index fba4b25486eb..a01eead7fe53 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/fluent/models/HealthBotInner.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/fluent/models/HealthBotInner.java
@@ -8,28 +8,35 @@
import com.azure.core.management.Resource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.healthbot.models.HealthBotProperties;
+import com.azure.resourcemanager.healthbot.models.Identity;
import com.azure.resourcemanager.healthbot.models.Sku;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
-/** HealthBot resource definition. */
+/** Azure Health Bot resource definition. */
@Fluent
public final class HealthBotInner extends Resource {
/*
- * SKU of the HealthBot.
+ * SKU of the Azure Health Bot.
*/
@JsonProperty(value = "sku", required = true)
private Sku sku;
/*
- * HealthBotProperties The set of properties specific to Healthbot
+ * The identity of the Azure Health Bot.
+ */
+ @JsonProperty(value = "identity")
+ private Identity identity;
+
+ /*
+ * HealthBotProperties The set of properties specific to Azure Health Bot
* resource.
*/
@JsonProperty(value = "properties")
private HealthBotProperties properties;
/**
- * Get the sku property: SKU of the HealthBot.
+ * Get the sku property: SKU of the Azure Health Bot.
*
* @return the sku value.
*/
@@ -38,7 +45,7 @@ public Sku sku() {
}
/**
- * Set the sku property: SKU of the HealthBot.
+ * Set the sku property: SKU of the Azure Health Bot.
*
* @param sku the sku value to set.
* @return the HealthBotInner object itself.
@@ -49,7 +56,27 @@ public HealthBotInner withSku(Sku sku) {
}
/**
- * Get the properties property: HealthBotProperties The set of properties specific to Healthbot resource.
+ * Get the identity property: The identity of the Azure Health Bot.
+ *
+ * @return the identity value.
+ */
+ public Identity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The identity of the Azure Health Bot.
+ *
+ * @param identity the identity value to set.
+ * @return the HealthBotInner object itself.
+ */
+ public HealthBotInner withIdentity(Identity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the properties property: HealthBotProperties The set of properties specific to Azure Health Bot resource.
*
* @return the properties value.
*/
@@ -58,7 +85,7 @@ public HealthBotProperties properties() {
}
/**
- * Set the properties property: HealthBotProperties The set of properties specific to Healthbot resource.
+ * Set the properties property: HealthBotProperties The set of properties specific to Azure Health Bot resource.
*
* @param properties the properties value to set.
* @return the HealthBotInner object itself.
@@ -95,6 +122,9 @@ public void validate() {
} else {
sku().validate();
}
+ if (identity() != null) {
+ identity().validate();
+ }
if (properties() != null) {
properties().validate();
}
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/fluent/models/package-info.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/fluent/models/package-info.java
index 54b6d2f08cd3..b0fc562deb15 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/fluent/models/package-info.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/fluent/models/package-info.java
@@ -3,8 +3,8 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the inner data models for HealthbotClient. 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 containing the inner data models for HealthbotClient. 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 com.azure.resourcemanager.healthbot.fluent.models;
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/fluent/package-info.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/fluent/package-info.java
index ba5755fdd6fe..82366856f48f 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/fluent/package-info.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/fluent/package-info.java
@@ -3,8 +3,8 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the service clients for HealthbotClient. 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 containing the service clients for HealthbotClient. 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 com.azure.resourcemanager.healthbot.fluent;
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/implementation/BotsClientImpl.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/implementation/BotsClientImpl.java
index 978c70dc5cc1..07543c5c0d25 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/implementation/BotsClientImpl.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/implementation/BotsClientImpl.java
@@ -174,15 +174,16 @@ Mono> listNext(
}
/**
- * 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 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} on successful completion of {@link Mono}.
+ * @return azure Health Bot resource definition along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createWithResponseAsync(
@@ -229,16 +230,17 @@ private Mono>> createWithResponseAsync(
}
/**
- * 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 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} on successful completion of {@link Mono}.
+ * @return azure Health Bot resource definition along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createWithResponseAsync(
@@ -282,15 +284,15 @@ private Mono>> createWithResponseAsync(
}
/**
- * 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 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 healthBot resource definition.
+ * @return the {@link PollerFlux} for polling of azure Health Bot resource definition.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, HealthBotInner> beginCreateAsync(
@@ -307,16 +309,16 @@ private PollerFlux, HealthBotInner> beginCreateAsync(
}
/**
- * 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 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 healthBot resource definition.
+ * @return the {@link PollerFlux} for polling of azure Health Bot resource definition.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, HealthBotInner> beginCreateAsync(
@@ -331,15 +333,15 @@ private PollerFlux, HealthBotInner> beginCreateAsync(
}
/**
- * 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 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)
public SyncPoller, HealthBotInner> beginCreate(
@@ -348,16 +350,16 @@ public SyncPoller, HealthBotInner> beginCreate(
}
/**
- * 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 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)
public SyncPoller, HealthBotInner> beginCreate(
@@ -366,15 +368,15 @@ public SyncPoller, HealthBotInner> beginCreate(
}
/**
- * 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 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 on successful completion of {@link Mono}.
+ * @return azure Health Bot resource definition on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createAsync(String resourceGroupName, String botName, HealthBotInner parameters) {
@@ -384,16 +386,16 @@ private Mono createAsync(String resourceGroupName, String botNam
}
/**
- * 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 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 on successful completion of {@link Mono}.
+ * @return azure Health Bot resource definition on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createAsync(
@@ -404,15 +406,15 @@ private Mono createAsync(
}
/**
- * 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 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)
public HealthBotInner create(String resourceGroupName, String botName, HealthBotInner parameters) {
@@ -420,16 +422,16 @@ public HealthBotInner create(String resourceGroupName, String botName, HealthBot
}
/**
- * 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 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)
public HealthBotInner create(String resourceGroupName, String botName, HealthBotInner parameters, Context context) {
@@ -583,11 +585,12 @@ public Response getByResourceGroupWithResponse(
*
* @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 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} on successful completion of {@link Mono}.
+ * @return azure Health Bot resource definition along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(
@@ -638,12 +641,13 @@ private Mono> updateWithResponseAsync(
*
* @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 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} on successful completion of {@link Mono}.
+ * @return azure Health Bot resource definition along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(
@@ -691,11 +695,11 @@ private Mono> updateWithResponseAsync(
*
* @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 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 on successful completion of {@link Mono}.
+ * @return azure Health Bot resource definition on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(
@@ -709,11 +713,11 @@ private Mono updateAsync(
*
* @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 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)
public HealthBotInner update(String resourceGroupName, String botName, HealthBotUpdateParameters parameters) {
@@ -725,12 +729,12 @@ public HealthBotInner update(String resourceGroupName, String botName, HealthBot
*
* @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 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)
public Response updateWithResponse(
@@ -971,8 +975,8 @@ public void delete(String resourceGroupName, String botName, Context context) {
* @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 list of Healthbot operation response along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * @return the list of Azure Health Bot operation response along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) {
@@ -1024,8 +1028,8 @@ private Mono> listByResourceGroupSinglePageAsync(S
* @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 list of Healthbot operation response along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * @return the list of Azure Health Bot operation response along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(
@@ -1074,7 +1078,7 @@ private Mono> listByResourceGroupSinglePageAsync(
* @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 list of Healthbot operation response as paginated response with {@link PagedFlux}.
+ * @return the list of Azure Health Bot operation response as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
@@ -1091,7 +1095,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupN
* @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 list of Healthbot operation response as paginated response with {@link PagedFlux}.
+ * @return the list of Azure Health Bot operation response as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) {
@@ -1107,7 +1111,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupN
* @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 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)
public PagedIterable listByResourceGroup(String resourceGroupName) {
@@ -1122,7 +1126,7 @@ public PagedIterable listByResourceGroup(String resourceGroupNam
* @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 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)
public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
@@ -1134,8 +1138,8 @@ public PagedIterable listByResourceGroup(String resourceGroupNam
*
* @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 list of Healthbot operation response along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * @return the list of Azure Health Bot operation response along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync() {
@@ -1181,8 +1185,8 @@ private Mono> listSinglePageAsync() {
* @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 list of Healthbot operation response along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * @return the list of Azure Health Bot operation response along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Context context) {
@@ -1223,7 +1227,7 @@ private Mono> listSinglePageAsync(Context context)
*
* @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 list of Healthbot operation response as paginated response with {@link PagedFlux}.
+ * @return the list of Azure Health Bot operation response as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
@@ -1237,7 +1241,7 @@ private PagedFlux listAsync() {
* @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 list of Healthbot operation response as paginated response with {@link PagedFlux}.
+ * @return the list of Azure Health Bot operation response as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(Context context) {
@@ -1250,7 +1254,7 @@ private PagedFlux listAsync(Context context) {
*
* @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 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)
public PagedIterable list() {
@@ -1264,7 +1268,7 @@ public PagedIterable list() {
* @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 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)
public PagedIterable list(Context context) {
@@ -1278,8 +1282,8 @@ public PagedIterable list(Context context) {
* @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 list of Healthbot operation response along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * @return the list of Azure Health Bot operation response along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
@@ -1316,8 +1320,8 @@ private Mono> listByResourceGroupNextSinglePageAsy
* @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 list of Healthbot operation response along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * @return the list of Azure Health Bot operation response along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupNextSinglePageAsync(
@@ -1353,8 +1357,8 @@ private Mono> listByResourceGroupNextSinglePageAsy
* @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 list of Healthbot operation response along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * @return the list of Azure Health Bot operation response along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -1390,8 +1394,8 @@ private Mono> listNextSinglePageAsync(String nextL
* @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 list of Healthbot operation response along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * @return the list of Azure Health Bot operation response along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink, Context context) {
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/implementation/HealthBotImpl.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/implementation/HealthBotImpl.java
index a27f66cb8cda..95710f326a87 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/implementation/HealthBotImpl.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/implementation/HealthBotImpl.java
@@ -10,6 +10,7 @@
import com.azure.resourcemanager.healthbot.models.HealthBot;
import com.azure.resourcemanager.healthbot.models.HealthBotProperties;
import com.azure.resourcemanager.healthbot.models.HealthBotUpdateParameters;
+import com.azure.resourcemanager.healthbot.models.Identity;
import com.azure.resourcemanager.healthbot.models.Sku;
import java.util.Collections;
import java.util.Map;
@@ -48,6 +49,10 @@ public Sku sku() {
return this.innerModel().sku();
}
+ public Identity identity() {
+ return this.innerModel().identity();
+ }
+
public HealthBotProperties properties() {
return this.innerModel().properties();
}
@@ -186,6 +191,16 @@ public HealthBotImpl withTags(Map tags) {
}
}
+ public HealthBotImpl withIdentity(Identity identity) {
+ if (isInCreateMode()) {
+ this.innerModel().withIdentity(identity);
+ return this;
+ } else {
+ this.updateParameters.withIdentity(identity);
+ return this;
+ }
+ }
+
public HealthBotImpl withProperties(HealthBotProperties properties) {
this.innerModel().withProperties(properties);
return this;
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/implementation/HealthbotClientImpl.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/implementation/HealthbotClientImpl.java
index 9f29429c9f69..ecd8cc3e2ee2 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/implementation/HealthbotClientImpl.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/implementation/HealthbotClientImpl.java
@@ -155,7 +155,7 @@ public OperationsClient getOperations() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2020-12-08";
+ this.apiVersion = "2021-06-10";
this.bots = new BotsClientImpl(this);
this.operations = new OperationsClientImpl(this);
}
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/implementation/OperationsClientImpl.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/implementation/OperationsClientImpl.java
index 4013b1248309..7dc095cd5770 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/implementation/OperationsClientImpl.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/implementation/OperationsClientImpl.java
@@ -78,7 +78,7 @@ Mono> listNext(
}
/**
- * Lists all the available HealthBot operations.
+ * Lists all the available Azure Health Bot operations.
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -110,7 +110,7 @@ private Mono> listSinglePageAsync() {
}
/**
- * 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.
@@ -143,7 +143,7 @@ private Mono> listSinglePageAsync(Context co
}
/**
- * Lists all the available HealthBot operations.
+ * Lists all the available Azure Health Bot operations.
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -155,7 +155,7 @@ private PagedFlux listAsync() {
}
/**
- * 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.
@@ -170,7 +170,7 @@ private PagedFlux listAsync(Context context) {
}
/**
- * Lists all the available HealthBot operations.
+ * Lists all the available Azure Health Bot operations.
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -182,7 +182,7 @@ public PagedIterable 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.
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/implementation/package-info.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/implementation/package-info.java
index 548de7c70b12..7148b31d5985 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/implementation/package-info.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/implementation/package-info.java
@@ -3,8 +3,8 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the implementations for HealthbotClient. 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 containing the implementations for HealthbotClient. 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 com.azure.resourcemanager.healthbot.implementation;
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/BotResponseList.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/BotResponseList.java
index b8d6dab56a0b..a1ad332d6d75 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/BotResponseList.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/BotResponseList.java
@@ -9,7 +9,7 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** The list of Healthbot operation response. */
+/** The list of Azure Health Bot operation response. */
@Immutable
public final class BotResponseList {
/*
@@ -19,7 +19,7 @@ public final class BotResponseList {
private String nextLink;
/*
- * Gets the list of Healthbot results and their properties.
+ * Gets the list of Azure Health Bot results and their properties.
*/
@JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
private List value;
@@ -34,7 +34,7 @@ public String nextLink() {
}
/**
- * Get the value property: Gets the list of Healthbot results and their properties.
+ * Get the value property: Gets the list of Azure Health Bot results and their properties.
*
* @return the value value.
*/
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/Bots.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/Bots.java
index f335022bf587..c9b28d011532 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/Bots.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/Bots.java
@@ -65,7 +65,7 @@ public interface Bots {
* @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}.
*/
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -77,7 +77,7 @@ public interface Bots {
* @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}.
*/
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -86,7 +86,7 @@ public interface Bots {
*
* @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}.
*/
PagedIterable list();
@@ -97,7 +97,7 @@ public interface Bots {
* @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}.
*/
PagedIterable list(Context context);
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/HealthBot.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/HealthBot.java
index 39f10c55185d..d64c49c1cfef 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/HealthBot.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/HealthBot.java
@@ -47,14 +47,21 @@ public interface HealthBot {
Map tags();
/**
- * Gets the sku property: SKU of the HealthBot.
+ * Gets the sku property: SKU of the Azure Health Bot.
*
* @return the sku value.
*/
Sku sku();
/**
- * Gets the properties property: HealthBotProperties The set of properties specific to Healthbot resource.
+ * Gets the identity property: The identity of the Azure Health Bot.
+ *
+ * @return the identity value.
+ */
+ Identity identity();
+
+ /**
+ * Gets the properties property: HealthBotProperties The set of properties specific to Azure Health Bot resource.
*
* @return the properties value.
*/
@@ -132,9 +139,9 @@ interface WithResourceGroup {
/** The stage of the HealthBot definition allowing to specify sku. */
interface WithSku {
/**
- * Specifies the sku property: SKU of the HealthBot..
+ * Specifies the sku property: SKU of the Azure Health Bot..
*
- * @param sku SKU of the HealthBot.
+ * @param sku SKU of the Azure Health Bot.
* @return the next definition stage.
*/
WithCreate withSku(Sku sku);
@@ -143,7 +150,8 @@ interface WithSku {
* The stage of the HealthBot definition which contains all the minimum required properties for the resource to
* be created, but also allows for any other optional properties to be specified.
*/
- interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties {
+ interface WithCreate
+ extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, DefinitionStages.WithProperties {
/**
* Executes the create request.
*
@@ -169,13 +177,23 @@ interface WithTags {
*/
WithCreate withTags(Map tags);
}
+ /** The stage of the HealthBot definition allowing to specify identity. */
+ interface WithIdentity {
+ /**
+ * Specifies the identity property: The identity of the Azure Health Bot..
+ *
+ * @param identity The identity of the Azure Health Bot.
+ * @return the next definition stage.
+ */
+ WithCreate withIdentity(Identity identity);
+ }
/** The stage of the HealthBot definition allowing to specify properties. */
interface WithProperties {
/**
- * Specifies the properties property: HealthBotProperties The set of properties specific to Healthbot
+ * Specifies the properties property: HealthBotProperties The set of properties specific to Azure Health Bot
* resource..
*
- * @param properties HealthBotProperties The set of properties specific to Healthbot resource.
+ * @param properties HealthBotProperties The set of properties specific to Azure Health Bot resource.
* @return the next definition stage.
*/
WithCreate withProperties(HealthBotProperties properties);
@@ -189,7 +207,7 @@ interface WithProperties {
HealthBot.Update update();
/** The template for HealthBot update. */
- interface Update extends UpdateStages.WithTags, UpdateStages.WithSku {
+ interface Update extends UpdateStages.WithTags, UpdateStages.WithSku, UpdateStages.WithIdentity {
/**
* Executes the update request.
*
@@ -210,9 +228,9 @@ interface UpdateStages {
/** The stage of the HealthBot update allowing to specify tags. */
interface WithTags {
/**
- * Specifies the tags property: Tags for a HealthBot..
+ * Specifies the tags property: Tags for a Azure Health Bot..
*
- * @param tags Tags for a HealthBot.
+ * @param tags Tags for a Azure Health Bot.
* @return the next definition stage.
*/
Update withTags(Map tags);
@@ -220,13 +238,23 @@ interface WithTags {
/** The stage of the HealthBot update allowing to specify sku. */
interface WithSku {
/**
- * Specifies the sku property: SKU of the HealthBot..
+ * Specifies the sku property: SKU of the Azure Health Bot..
*
- * @param sku SKU of the HealthBot.
+ * @param sku SKU of the Azure Health Bot.
* @return the next definition stage.
*/
Update withSku(Sku sku);
}
+ /** The stage of the HealthBot update allowing to specify identity. */
+ interface WithIdentity {
+ /**
+ * Specifies the identity property: The identity of the Azure Health Bot..
+ *
+ * @param identity The identity of the Azure Health Bot.
+ * @return the next definition stage.
+ */
+ Update withIdentity(Identity identity);
+ }
}
/**
* Refreshes the resource to sync with Azure.
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/HealthBotProperties.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/HealthBotProperties.java
index 88f93e20775d..9ebd92dbd7a1 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/HealthBotProperties.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/HealthBotProperties.java
@@ -8,14 +8,14 @@
import com.fasterxml.jackson.annotation.JsonProperty;
/**
- * HealthBotProperties The properties of a HealthBot. The Health Bot Service is a cloud platform that empowers
+ * HealthBotProperties The properties of a Azure Health Bot. The Health Bot Service 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.
*/
@Immutable
public final class HealthBotProperties {
/*
- * The provisioning state of the Healthbot resource.
+ * The provisioning state of the Azure Health Bot resource.
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private String provisioningState;
@@ -27,7 +27,7 @@ public final class HealthBotProperties {
private String botManagementPortalLink;
/**
- * Get the provisioningState property: The provisioning state of the Healthbot resource.
+ * Get the provisioningState property: The provisioning state of the Azure Health Bot resource.
*
* @return the provisioningState value.
*/
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/HealthBotUpdateParameters.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/HealthBotUpdateParameters.java
index 661eae99c99b..25c93a5f63f6 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/HealthBotUpdateParameters.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/HealthBotUpdateParameters.java
@@ -9,24 +9,36 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
-/** Parameters for updating a HealthBot. */
+/** Parameters for updating a Azure Health Bot. */
@Fluent
public final class HealthBotUpdateParameters {
/*
- * Tags for a HealthBot.
+ * Tags for a Azure Health Bot.
*/
@JsonProperty(value = "tags")
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
/*
- * SKU of the HealthBot.
+ * SKU of the Azure Health Bot.
*/
@JsonProperty(value = "sku")
private Sku sku;
+ /*
+ * The identity of the Azure Health Bot.
+ */
+ @JsonProperty(value = "identity")
+ private Identity identity;
+
+ /*
+ * The location property.
+ */
+ @JsonProperty(value = "location")
+ private String location;
+
/**
- * Get the tags property: Tags for a HealthBot.
+ * Get the tags property: Tags for a Azure Health Bot.
*
* @return the tags value.
*/
@@ -35,7 +47,7 @@ public Map tags() {
}
/**
- * Set the tags property: Tags for a HealthBot.
+ * Set the tags property: Tags for a Azure Health Bot.
*
* @param tags the tags value to set.
* @return the HealthBotUpdateParameters object itself.
@@ -46,7 +58,7 @@ public HealthBotUpdateParameters withTags(Map tags) {
}
/**
- * Get the sku property: SKU of the HealthBot.
+ * Get the sku property: SKU of the Azure Health Bot.
*
* @return the sku value.
*/
@@ -55,7 +67,7 @@ public Sku sku() {
}
/**
- * Set the sku property: SKU of the HealthBot.
+ * Set the sku property: SKU of the Azure Health Bot.
*
* @param sku the sku value to set.
* @return the HealthBotUpdateParameters object itself.
@@ -65,6 +77,46 @@ public HealthBotUpdateParameters withSku(Sku sku) {
return this;
}
+ /**
+ * Get the identity property: The identity of the Azure Health Bot.
+ *
+ * @return the identity value.
+ */
+ public Identity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The identity of the Azure Health Bot.
+ *
+ * @param identity the identity value to set.
+ * @return the HealthBotUpdateParameters object itself.
+ */
+ public HealthBotUpdateParameters withIdentity(Identity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the location property: The location property.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set the location property: The location property.
+ *
+ * @param location the location value to set.
+ * @return the HealthBotUpdateParameters object itself.
+ */
+ public HealthBotUpdateParameters withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -74,5 +126,8 @@ public void validate() {
if (sku() != null) {
sku().validate();
}
+ if (identity() != null) {
+ identity().validate();
+ }
}
}
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/Identity.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/Identity.java
new file mode 100644
index 000000000000..1820b53e0b56
--- /dev/null
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/Identity.java
@@ -0,0 +1,132 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.healthbot.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Identity for the resource. */
+@Fluent
+public class Identity {
+ /*
+ * The principal ID of resource identity. This property will only be
+ * provided for a system assigned identity.
+ */
+ @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY)
+ private String principalId;
+
+ /*
+ * The tenant ID of resource. This property will only be provided for a
+ * system assigned identity.
+ */
+ @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY)
+ private String tenantId;
+
+ /*
+ * The identity type. The type 'SystemAssigned, UserAssigned' includes both
+ * an implicitly created identity and a set of user assigned identities.
+ * The type 'None' will remove any identities from the Azure Health Bot
+ */
+ @JsonProperty(value = "type")
+ private ResourceIdentityType type;
+
+ /*
+ * The list of user identities associated with the resource. The user
+ * identity dictionary key references will be ARM resource ids in the form:
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
+ *
+ */
+ @JsonProperty(value = "userAssignedIdentities")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map userAssignedIdentities;
+
+ /**
+ * Get the principalId property: The principal ID of resource identity. This property will only be provided for a
+ * system assigned identity.
+ *
+ * @return the principalId value.
+ */
+ public String principalId() {
+ return this.principalId;
+ }
+
+ /**
+ * Get the tenantId property: The tenant ID of resource. This property will only be provided for a system assigned
+ * identity.
+ *
+ * @return the tenantId value.
+ */
+ public String tenantId() {
+ return this.tenantId;
+ }
+
+ /**
+ * Get the type property: The identity type. The type 'SystemAssigned, UserAssigned' includes both an implicitly
+ * created identity and a set of user assigned identities. The type 'None' will remove any identities from the Azure
+ * Health Bot.
+ *
+ * @return the type value.
+ */
+ public ResourceIdentityType type() {
+ return this.type;
+ }
+
+ /**
+ * Set the type property: The identity type. The type 'SystemAssigned, UserAssigned' includes both an implicitly
+ * created identity and a set of user assigned identities. The type 'None' will remove any identities from the Azure
+ * Health Bot.
+ *
+ * @param type the type value to set.
+ * @return the Identity object itself.
+ */
+ public Identity withType(ResourceIdentityType type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get the userAssignedIdentities property: The list of user identities associated with the resource. The user
+ * identity dictionary key references will be ARM resource ids in the form:
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
+ *
+ * @return the userAssignedIdentities value.
+ */
+ public Map userAssignedIdentities() {
+ return this.userAssignedIdentities;
+ }
+
+ /**
+ * Set the userAssignedIdentities property: The list of user identities associated with the resource. The user
+ * identity dictionary key references will be ARM resource ids in the form:
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
+ *
+ * @param userAssignedIdentities the userAssignedIdentities value to set.
+ * @return the Identity object itself.
+ */
+ public Identity withUserAssignedIdentities(Map userAssignedIdentities) {
+ this.userAssignedIdentities = userAssignedIdentities;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (userAssignedIdentities() != null) {
+ userAssignedIdentities()
+ .values()
+ .forEach(
+ e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ }
+}
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/Operations.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/Operations.java
index 7941ed992509..ac0cab82852b 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/Operations.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/Operations.java
@@ -10,7 +10,7 @@
/** Resource collection API of Operations. */
public interface Operations {
/**
- * 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.
@@ -19,7 +19,7 @@ public interface Operations {
PagedIterable 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.
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/ResourceIdentityType.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/ResourceIdentityType.java
new file mode 100644
index 000000000000..d32cc3f90ba9
--- /dev/null
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/ResourceIdentityType.java
@@ -0,0 +1,53 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.healthbot.models;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/** Defines values for ResourceIdentityType. */
+public enum ResourceIdentityType {
+ /** Enum value SystemAssigned. */
+ SYSTEM_ASSIGNED("SystemAssigned"),
+
+ /** Enum value UserAssigned. */
+ USER_ASSIGNED("UserAssigned"),
+
+ /** Enum value SystemAssigned, UserAssigned. */
+ SYSTEM_ASSIGNED_USER_ASSIGNED("SystemAssigned, UserAssigned"),
+
+ /** Enum value None. */
+ NONE("None");
+
+ /** The actual serialized value for a ResourceIdentityType instance. */
+ private final String value;
+
+ ResourceIdentityType(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a ResourceIdentityType instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed ResourceIdentityType object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static ResourceIdentityType fromString(String value) {
+ ResourceIdentityType[] items = ResourceIdentityType.values();
+ for (ResourceIdentityType item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/Sku.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/Sku.java
index 47ee34fd9c42..066035a65617 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/Sku.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/Sku.java
@@ -12,13 +12,13 @@
@Fluent
public final class Sku {
/*
- * The name of the HealthBot SKU
+ * The name of the Azure Health Bot SKU
*/
@JsonProperty(value = "name", required = true)
private SkuName name;
/**
- * Get the name property: The name of the HealthBot SKU.
+ * Get the name property: The name of the Azure Health Bot SKU.
*
* @return the name value.
*/
@@ -27,7 +27,7 @@ public SkuName name() {
}
/**
- * Set the name property: The name of the HealthBot SKU.
+ * Set the name property: The name of the Azure Health Bot SKU.
*
* @param name the name value to set.
* @return the Sku object itself.
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/UserAssignedIdentity.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/UserAssignedIdentity.java
new file mode 100644
index 000000000000..f3ae0d8ec280
--- /dev/null
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/UserAssignedIdentity.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.healthbot.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The details of the user assigned managed identity used by the Video Analyzer resource. */
+@Immutable
+public class UserAssignedIdentity {
+ /*
+ * The principal ID of user assigned identity.
+ */
+ @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY)
+ private String principalId;
+
+ /*
+ * The client ID of user assigned identity.
+ */
+ @JsonProperty(value = "clientId", access = JsonProperty.Access.WRITE_ONLY)
+ private String clientId;
+
+ /**
+ * Get the principalId property: The principal ID of user assigned identity.
+ *
+ * @return the principalId value.
+ */
+ public String principalId() {
+ return this.principalId;
+ }
+
+ /**
+ * Get the clientId property: The client ID of user assigned identity.
+ *
+ * @return the clientId value.
+ */
+ public String clientId() {
+ return this.clientId;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/package-info.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/package-info.java
index 5db4a44c57a8..4ef4974e562b 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/package-info.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/models/package-info.java
@@ -3,8 +3,8 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the data models for HealthbotClient. 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 containing the data models for HealthbotClient. 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 com.azure.resourcemanager.healthbot.models;
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/package-info.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/package-info.java
index 39ba61b5bfe7..b93cad528386 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/package-info.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/main/java/com/azure/resourcemanager/healthbot/package-info.java
@@ -3,8 +3,8 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the classes for HealthbotClient. 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 containing the classes for HealthbotClient. 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 com.azure.resourcemanager.healthbot;
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsCreateSamples.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsCreateSamples.java
index 04c2dd12679e..4da738400182 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsCreateSamples.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsCreateSamples.java
@@ -4,13 +4,18 @@
package com.azure.resourcemanager.healthbot.generated;
+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.
@@ -24,6 +29,26 @@ public static void botCreate(com.azure.resourcemanager.healthbot.HealthbotManage
.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 Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
}
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsDeleteSamples.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsDeleteSamples.java
index ed0630bb544a..da17c540b72c 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsDeleteSamples.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsDeleteSamples.java
@@ -9,7 +9,7 @@
/** 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.
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsGetByResourceGroupSamples.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsGetByResourceGroupSamples.java
index 10ab4eca6132..903c03d0c74a 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsGetByResourceGroupSamples.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsGetByResourceGroupSamples.java
@@ -9,7 +9,7 @@
/** 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.
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsListByResourceGroupSamples.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsListByResourceGroupSamples.java
index 51ca94181159..c94b068385c7 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsListByResourceGroupSamples.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsListByResourceGroupSamples.java
@@ -9,7 +9,7 @@
/** 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.
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsListSamples.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsListSamples.java
index dc7af2432225..7f674b46a11d 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsListSamples.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsListSamples.java
@@ -9,7 +9,7 @@
/** 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.
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsUpdateSamples.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsUpdateSamples.java
index bb59c932228a..54d211d5bf4a 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsUpdateSamples.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/BotsUpdateSamples.java
@@ -12,7 +12,7 @@
/** 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.
diff --git a/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/OperationsListSamples.java b/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/OperationsListSamples.java
index 87a4903f3e2b..e517f05ca90e 100644
--- a/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/OperationsListSamples.java
+++ b/sdk/healthbot/azure-resourcemanager-healthbot/src/samples/java/com/azure/resourcemanager/healthbot/generated/OperationsListSamples.java
@@ -9,7 +9,7 @@
/** 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.