Skip to content

Commit d507656

Browse files
author
SDKAuto
committed
CodeGen from PR 34371 in Azure/azure-rest-api-specs
Merge 5a991e1ddde01c1ad3021a5d06676272f2ac00f5 into 37e1a52a30c527b6ad2d7ef09a9c82ad4491e8a2
1 parent 24808f3 commit d507656

File tree

60 files changed

+2150
-829
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+2150
-829
lines changed

sdk/healthbot/azure-resourcemanager-healthbot/CHANGELOG.md

Lines changed: 50 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,60 @@
11
# Release History
22

3-
## 1.1.0-beta.1 (Unreleased)
3+
## 1.0.0-beta.1 (2025-04-30)
4+
5+
- Azure Resource Manager Healthbot client library for Java. This package contains Microsoft Azure SDK for Healthbot Management SDK. Azure Health Bot is a cloud platform that empowers developers in Healthcare organizations to build and deploy their compliant, AI-powered virtual health assistants and health bots, that help them improve processes and reduce costs. Package tag package-2024-02. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
46

57
### Features Added
68

7-
### Breaking Changes
9+
* `models.UserAssignedIdentity` was added
810

9-
### Bugs Fixed
11+
* `models.HealthBotKey` was added
1012

11-
### Other Changes
13+
* `models.ResourceIdentityType` was added
14+
15+
* `models.Identity` was added
16+
17+
* `models.KeyVaultProperties` was added
18+
19+
* `models.HealthBotKeysResponse` was added
20+
21+
#### `models.HealthBotUpdateParameters` was modified
22+
23+
* `identity()` was added
24+
* `withProperties(models.HealthBotProperties)` was added
25+
* `location()` was added
26+
* `withIdentity(models.Identity)` was added
27+
* `properties()` was added
28+
* `withLocation(java.lang.String)` was added
29+
30+
#### `models.HealthBot$Definition` was modified
31+
32+
* `withIdentity(models.Identity)` was added
33+
34+
#### `models.HealthBotProperties` was modified
35+
36+
* `keyVaultProperties()` was added
37+
* `withKeyVaultProperties(models.KeyVaultProperties)` was added
38+
39+
#### `models.HealthBot` was modified
40+
41+
* `listSecrets()` was added
42+
* `regenerateApiJwtSecret()` was added
43+
* `regenerateApiJwtSecretWithResponse(com.azure.core.util.Context)` was added
44+
* `identity()` was added
45+
* `listSecretsWithResponse(com.azure.core.util.Context)` was added
46+
47+
#### `models.Bots` was modified
48+
49+
* `listSecretsWithResponse(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
50+
* `listSecrets(java.lang.String,java.lang.String)` was added
51+
* `regenerateApiJwtSecret(java.lang.String,java.lang.String)` was added
52+
* `regenerateApiJwtSecretWithResponse(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
53+
54+
#### `models.HealthBot$Update` was modified
55+
56+
* `withProperties(models.HealthBotProperties)` was added
57+
* `withIdentity(models.Identity)` was added
1258

1359
## 1.0.0 (2024-12-23)
1460

sdk/healthbot/azure-resourcemanager-healthbot/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager Healthbot client library for Java.
44

5-
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).
5+
This package contains Microsoft Azure SDK for Healthbot Management SDK. Azure Health Bot is a cloud platform that empowers developers in Healthcare organizations to build and deploy their compliant, AI-powered virtual health assistants and health bots, that help them improve processes and reduce costs. Package tag package-2024-02. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
## We'd love to hear your feedback
88

@@ -52,15 +52,15 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
5252
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
5353

5454
```java
55-
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
55+
AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
5656
TokenCredential credential = new DefaultAzureCredentialBuilder()
5757
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
5858
.build();
5959
HealthbotManager manager = HealthbotManager
6060
.authenticate(credential, profile);
6161
```
6262

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

6565
See [Authentication][authenticate] for more options.
6666

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

sdk/healthbot/azure-resourcemanager-healthbot/SAMPLE.md

Lines changed: 116 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
- [GetByResourceGroup](#bots_getbyresourcegroup)
99
- [List](#bots_list)
1010
- [ListByResourceGroup](#bots_listbyresourcegroup)
11+
- [ListSecrets](#bots_listsecrets)
12+
- [RegenerateApiJwtSecret](#bots_regenerateapijwtsecret)
1113
- [Update](#bots_update)
1214

1315
## Operations
@@ -16,29 +18,22 @@
1618
### Bots_Create
1719

1820
```java
19-
import com.azure.resourcemanager.healthbot.models.Sku;
20-
import com.azure.resourcemanager.healthbot.models.SkuName;
21-
2221
/**
23-
* Samples for Bots Create.
22+
* Samples for Bots ListByResourceGroup.
2423
*/
25-
public final class BotsCreateSamples {
24+
public final class BotsListByResourceGroupSamples {
2625
/*
2726
* x-ms-original-file:
28-
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2020-12-08/examples/ResourceCreationPut.json
27+
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2024-02-01/examples/ListBotsByResourceGroup.
28+
* json
2929
*/
3030
/**
31-
* Sample code: BotCreate.
31+
* Sample code: List Bots by Resource Group.
3232
*
3333
* @param manager Entry point to HealthbotManager.
3434
*/
35-
public static void botCreate(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
36-
manager.bots()
37-
.define("samplebotname")
38-
.withRegion("East US")
39-
.withExistingResourceGroup("healthbotClient")
40-
.withSku(new Sku().withName(SkuName.F0))
41-
.create();
35+
public static void listBotsByResourceGroup(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
36+
manager.bots().listByResourceGroup("OneResourceGroupName", com.azure.core.util.Context.NONE);
4237
}
4338
}
4439
```
@@ -52,7 +47,7 @@ public final class BotsCreateSamples {
5247
public final class BotsDeleteSamples {
5348
/*
5449
* x-ms-original-file:
55-
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2020-12-08/examples/ResourceDeletionDelete.
50+
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2024-02-01/examples/ResourceDeletionDelete.
5651
* json
5752
*/
5853
/**
@@ -69,22 +64,28 @@ public final class BotsDeleteSamples {
6964
### Bots_GetByResourceGroup
7065

7166
```java
67+
import com.azure.resourcemanager.healthbot.models.HealthBot;
68+
import com.azure.resourcemanager.healthbot.models.Sku;
69+
import com.azure.resourcemanager.healthbot.models.SkuName;
70+
7271
/**
73-
* Samples for Bots GetByResourceGroup.
72+
* Samples for Bots Update.
7473
*/
75-
public final class BotsGetByResourceGroupSamples {
74+
public final class BotsUpdateSamples {
7675
/*
7776
* x-ms-original-file:
78-
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2020-12-08/examples/ResourceInfoGet.json
77+
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2024-02-01/examples/ResourceUpdatePatch.json
7978
*/
8079
/**
81-
* Sample code: ResourceInfoGet.
80+
* Sample code: BotUpdate.
8281
*
8382
* @param manager Entry point to HealthbotManager.
8483
*/
85-
public static void resourceInfoGet(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
86-
manager.bots()
87-
.getByResourceGroupWithResponse("healthbotClient", "samplebotname", com.azure.core.util.Context.NONE);
84+
public static void botUpdate(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
85+
HealthBot resource = manager.bots()
86+
.getByResourceGroupWithResponse("healthbotClient", "samplebotname", com.azure.core.util.Context.NONE)
87+
.getValue();
88+
resource.update().withSku(new Sku().withName(SkuName.F0)).apply();
8889
}
8990
}
9091
```
@@ -98,7 +99,7 @@ public final class BotsGetByResourceGroupSamples {
9899
public final class BotsListSamples {
99100
/*
100101
* x-ms-original-file:
101-
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2020-12-08/examples/ListBotsBySubscription.
102+
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2024-02-01/examples/ListBotsBySubscription.
102103
* json
103104
*/
104105
/**
@@ -116,50 +117,119 @@ public final class BotsListSamples {
116117

117118
```java
118119
/**
119-
* Samples for Bots ListByResourceGroup.
120+
* Samples for Bots RegenerateApiJwtSecret.
120121
*/
121-
public final class BotsListByResourceGroupSamples {
122+
public final class BotsRegenerateApiJwtSecretSamples {
122123
/*
123124
* x-ms-original-file:
124-
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2020-12-08/examples/ListBotsByResourceGroup.
125+
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2024-02-01/examples/RegenerateApiJwtSecret.
125126
* json
126127
*/
127128
/**
128-
* Sample code: List Bots by Resource Group.
129+
* Sample code: Bot Regenerate API JWT Secret.
129130
*
130131
* @param manager Entry point to HealthbotManager.
131132
*/
132-
public static void listBotsByResourceGroup(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
133-
manager.bots().listByResourceGroup("OneResourceGroupName", com.azure.core.util.Context.NONE);
133+
public static void botRegenerateAPIJWTSecret(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
134+
manager.bots()
135+
.regenerateApiJwtSecretWithResponse("healthbotClient", "samplebotname", com.azure.core.util.Context.NONE);
136+
}
137+
}
138+
```
139+
140+
### Bots_ListSecrets
141+
142+
```java
143+
/**
144+
* Samples for Operations List.
145+
*/
146+
public final class OperationsListSamples {
147+
/*
148+
* x-ms-original-file:
149+
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2024-02-01/examples/GetOperations.json
150+
*/
151+
/**
152+
* Sample code: Get Operations.
153+
*
154+
* @param manager Entry point to HealthbotManager.
155+
*/
156+
public static void getOperations(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
157+
manager.operations().list(com.azure.core.util.Context.NONE);
158+
}
159+
}
160+
```
161+
162+
### Bots_RegenerateApiJwtSecret
163+
164+
```java
165+
/**
166+
* Samples for Bots ListSecrets.
167+
*/
168+
public final class BotsListSecretsSamples {
169+
/*
170+
* x-ms-original-file:
171+
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2024-02-01/examples/ListSecrets.json
172+
*/
173+
/**
174+
* Sample code: Bot List Secrets.
175+
*
176+
* @param manager Entry point to HealthbotManager.
177+
*/
178+
public static void botListSecrets(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
179+
manager.bots().listSecretsWithResponse("healthbotClient", "samplebotname", com.azure.core.util.Context.NONE);
134180
}
135181
}
136182
```
137183

138184
### Bots_Update
139185

140186
```java
141-
import com.azure.resourcemanager.healthbot.models.HealthBot;
187+
import com.azure.resourcemanager.healthbot.models.Identity;
188+
import com.azure.resourcemanager.healthbot.models.ResourceIdentityType;
142189
import com.azure.resourcemanager.healthbot.models.Sku;
143190
import com.azure.resourcemanager.healthbot.models.SkuName;
191+
import com.azure.resourcemanager.healthbot.models.UserAssignedIdentity;
192+
import java.util.HashMap;
193+
import java.util.Map;
144194

145195
/**
146-
* Samples for Bots Update.
196+
* Samples for Bots Create.
147197
*/
148-
public final class BotsUpdateSamples {
198+
public final class BotsCreateSamples {
149199
/*
150200
* x-ms-original-file:
151-
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2020-12-08/examples/ResourceUpdatePatch.json
201+
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2024-02-01/examples/ResourceCreationPut.json
152202
*/
153203
/**
154-
* Sample code: BotUpdate.
204+
* Sample code: BotCreate.
155205
*
156206
* @param manager Entry point to HealthbotManager.
157207
*/
158-
public static void botUpdate(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
159-
HealthBot resource = manager.bots()
160-
.getByResourceGroupWithResponse("healthbotClient", "samplebotname", com.azure.core.util.Context.NONE)
161-
.getValue();
162-
resource.update().withSku(new Sku().withName(SkuName.F0)).apply();
208+
public static void botCreate(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
209+
manager.bots()
210+
.define("samplebotname")
211+
.withRegion("East US")
212+
.withExistingResourceGroup("healthbotClient")
213+
.withSku(new Sku().withName(SkuName.F0))
214+
.withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
215+
.withUserAssignedIdentities(mapOf(
216+
"/subscriptions/subscription-id/resourcegroups/myrg/providers/microsoft.managedidentity/userassignedidentities/my-mi",
217+
new UserAssignedIdentity(),
218+
"/subscriptions/subscription-id/resourcegroups/myrg/providers/microsoft.managedidentity/userassignedidentities/my-mi2",
219+
new UserAssignedIdentity())))
220+
.create();
221+
}
222+
223+
// Use "Map.of" if available
224+
@SuppressWarnings("unchecked")
225+
private static <T> Map<String, T> mapOf(Object... inputs) {
226+
Map<String, T> map = new HashMap<>();
227+
for (int i = 0; i < inputs.length; i += 2) {
228+
String key = (String) inputs[i];
229+
T value = (T) inputs[i + 1];
230+
map.put(key, value);
231+
}
232+
return map;
163233
}
164234
}
165235
```
@@ -168,20 +238,21 @@ public final class BotsUpdateSamples {
168238

169239
```java
170240
/**
171-
* Samples for Operations List.
241+
* Samples for Bots GetByResourceGroup.
172242
*/
173-
public final class OperationsListSamples {
243+
public final class BotsGetByResourceGroupSamples {
174244
/*
175245
* x-ms-original-file:
176-
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2020-12-08/examples/GetOperations.json
246+
* specification/healthbot/resource-manager/Microsoft.HealthBot/stable/2024-02-01/examples/ResourceInfoGet.json
177247
*/
178248
/**
179-
* Sample code: Get Operations.
249+
* Sample code: ResourceInfoGet.
180250
*
181251
* @param manager Entry point to HealthbotManager.
182252
*/
183-
public static void getOperations(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
184-
manager.operations().list(com.azure.core.util.Context.NONE);
253+
public static void resourceInfoGet(com.azure.resourcemanager.healthbot.HealthbotManager manager) {
254+
manager.bots()
255+
.getByResourceGroupWithResponse("healthbotClient", "samplebotname", com.azure.core.util.Context.NONE);
185256
}
186257
}
187258
```

sdk/healthbot/azure-resourcemanager-healthbot/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<packaging>jar</packaging>
1919

2020
<name>Microsoft Azure SDK for Healthbot Management</name>
21-
<description>This package contains Microsoft Azure SDK for Healthbot Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft Healthcare Bot is a cloud platform that empowers developers in Healthcare organizations to build and deploy their compliant, AI-powered virtual health assistants and health bots, that help them improve processes and reduce costs. Package tag package-2020-12-08.</description>
21+
<description>This package contains Microsoft Azure SDK for Healthbot Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Health Bot is a cloud platform that empowers developers in Healthcare organizations to build and deploy their compliant, AI-powered virtual health assistants and health bots, that help them improve processes and reduce costs. Package tag package-2024-02.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>
@@ -45,7 +45,7 @@
4545
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4646
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
4747
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
48-
<spotless.skip>false</spotless.skip>
48+
<revapi.skip>true</revapi.skip>
4949
</properties>
5050
<dependencies>
5151
<dependency>

0 commit comments

Comments
 (0)