forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 16925 in Azure/azure-rest-api-specs
Track2 modify readme.go.md 5 (Azure#16925)
- Loading branch information
SDKAuto
committed
Jan 5, 2022
1 parent
09a1a88
commit 01e43b0
Showing
41 changed files
with
1,248 additions
and
525 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
199 changes: 199 additions & 0 deletions
199
sdk/healthbot/azure-resourcemanager-healthbot/SAMPLE.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,199 @@ | ||
# Code snippets and samples | ||
|
||
|
||
## Bots | ||
|
||
- [Create](#bots_create) | ||
- [Delete](#bots_delete) | ||
- [GetByResourceGroup](#bots_getbyresourcegroup) | ||
- [List](#bots_list) | ||
- [ListByResourceGroup](#bots_listbyresourcegroup) | ||
- [Update](#bots_update) | ||
|
||
## Operations | ||
|
||
- [List](#operations_list) | ||
### 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/2021-06-10/examples/ResourceCreationPut.json | ||
*/ | ||
/** | ||
* Sample code: BotCreate. | ||
* | ||
* @param manager Entry point to HealthbotManager. | ||
*/ | ||
public static void botCreate(com.azure.resourcemanager.healthbot.HealthbotManager manager) { | ||
manager | ||
.bots() | ||
.define("samplebotname") | ||
.withRegion("East US") | ||
.withExistingResourceGroup("healthbotClient") | ||
.withSku(new Sku().withName(SkuName.F0)) | ||
.withIdentity( | ||
new Identity() | ||
.withType(ResourceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) | ||
.withUserAssignedIdentities( | ||
mapOf( | ||
"/subscriptions/subscription-id/resourcegroups/myrg/providers/microsoft.managedidentity/userassignedidentities/my-mi", | ||
new UserAssignedIdentity(), | ||
"/subscriptions/subscription-id/resourcegroups/myrg/providers/microsoft.managedidentity/userassignedidentities/my-mi2", | ||
new UserAssignedIdentity()))) | ||
.create(); | ||
} | ||
|
||
@SuppressWarnings("unchecked") | ||
private static <T> Map<String, T> mapOf(Object... inputs) { | ||
Map<String, T> map = new HashMap<>(); | ||
for (int i = 0; i < inputs.length; i += 2) { | ||
String key = (String) inputs[i]; | ||
T value = (T) inputs[i + 1]; | ||
map.put(key, value); | ||
} | ||
return map; | ||
} | ||
} | ||
``` | ||
|
||
### Bots_Delete | ||
|
||
```java | ||
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/2021-06-10/examples/ResourceDeletionDelete.json | ||
*/ | ||
/** | ||
* Sample code: BotDelete. | ||
* | ||
* @param manager Entry point to HealthbotManager. | ||
*/ | ||
public static void botDelete(com.azure.resourcemanager.healthbot.HealthbotManager manager) { | ||
manager.bots().delete("healthbotClient", "samplebotname", Context.NONE); | ||
} | ||
} | ||
``` | ||
|
||
### Bots_GetByResourceGroup | ||
|
||
```java | ||
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/2021-06-10/examples/ResourceInfoGet.json | ||
*/ | ||
/** | ||
* Sample code: ResourceInfoGet. | ||
* | ||
* @param manager Entry point to HealthbotManager. | ||
*/ | ||
public static void resourceInfoGet(com.azure.resourcemanager.healthbot.HealthbotManager manager) { | ||
manager.bots().getByResourceGroupWithResponse("healthbotClient", "samplebotname", Context.NONE); | ||
} | ||
} | ||
``` | ||
|
||
### Bots_List | ||
|
||
```java | ||
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/2021-06-10/examples/ListBotsBySubscription.json | ||
*/ | ||
/** | ||
* Sample code: List Bots by Subscription. | ||
* | ||
* @param manager Entry point to HealthbotManager. | ||
*/ | ||
public static void listBotsBySubscription(com.azure.resourcemanager.healthbot.HealthbotManager manager) { | ||
manager.bots().list(Context.NONE); | ||
} | ||
} | ||
``` | ||
|
||
### Bots_ListByResourceGroup | ||
|
||
```java | ||
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/2021-06-10/examples/ListBotsByResourceGroup.json | ||
*/ | ||
/** | ||
* Sample code: List Bots by Resource Group. | ||
* | ||
* @param manager Entry point to HealthbotManager. | ||
*/ | ||
public static void listBotsByResourceGroup(com.azure.resourcemanager.healthbot.HealthbotManager manager) { | ||
manager.bots().listByResourceGroup("OneResourceGroupName", Context.NONE); | ||
} | ||
} | ||
``` | ||
|
||
### Bots_Update | ||
|
||
```java | ||
import com.azure.core.util.Context; | ||
import com.azure.resourcemanager.healthbot.models.HealthBot; | ||
import com.azure.resourcemanager.healthbot.models.Sku; | ||
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/2021-06-10/examples/ResourceUpdatePatch.json | ||
*/ | ||
/** | ||
* Sample code: BotUpdate. | ||
* | ||
* @param manager Entry point to HealthbotManager. | ||
*/ | ||
public static void botUpdate(com.azure.resourcemanager.healthbot.HealthbotManager manager) { | ||
HealthBot resource = | ||
manager.bots().getByResourceGroupWithResponse("healthbotClient", "samplebotname", Context.NONE).getValue(); | ||
resource.update().withSku(new Sku().withName(SkuName.F0)).apply(); | ||
} | ||
} | ||
``` | ||
|
||
### Operations_List | ||
|
||
```java | ||
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/2021-06-10/examples/GetOperations.json | ||
*/ | ||
/** | ||
* Sample code: Get Operations. | ||
* | ||
* @param manager Entry point to HealthbotManager. | ||
*/ | ||
public static void getOperations(com.azure.resourcemanager.healthbot.HealthbotManager manager) { | ||
manager.operations().list(Context.NONE); | ||
} | ||
} | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,81 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>com.azure</groupId> | ||
<artifactId>azure-client-sdk-parent</artifactId> | ||
<version>1.7.0</version> <!-- {x-version-update;com.azure:azure-client-sdk-parent;current} --> | ||
<relativePath>../../parents/azure-client-sdk-parent</relativePath> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>com.azure</groupId> | ||
<artifactId>azure-client-sdk-parent</artifactId> | ||
<version>1.7.0</version> <!-- {x-version-update;com.azure:azure-client-sdk-parent;current} --> | ||
<relativePath>../../parents/azure-client-sdk-parent</relativePath> | ||
</parent> | ||
|
||
<groupId>com.azure.resourcemanager</groupId> | ||
<artifactId>azure-resourcemanager-healthbot</artifactId> | ||
<version>1.0.0-beta.2</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-healthbot;current} --> | ||
<packaging>jar</packaging> | ||
<groupId>com.azure.resourcemanager</groupId> | ||
<artifactId>azure-resourcemanager-healthbot</artifactId> | ||
<version>1.0.0-beta.2</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-healthbot;current} --> | ||
<packaging>jar</packaging> | ||
|
||
<name>Microsoft Azure SDK for Healthbot Management</name> | ||
<description>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 https://aka.ms/azsdk/java/mgmt</description> | ||
<url>https://github.com/Azure/azure-sdk-for-java</url> | ||
<name>Microsoft Azure SDK for Healthbot Management</name> | ||
<description>This package contains Microsoft Azure SDK for Healthbot Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Health Bot is a cloud platform that empowers developers in Healthcare organizations to build and deploy their compliant, AI-powered virtual health assistants and health bots, that help them improve processes and reduce costs. Package tag package-2021-06-10.</description> | ||
<url>https://github.com/Azure/azure-sdk-for-java</url> | ||
|
||
<licenses> | ||
<license> | ||
<name>The MIT License (MIT)</name> | ||
<url>http://opensource.org/licenses/MIT</url> | ||
<distribution>repo</distribution> | ||
</license> | ||
</licenses> | ||
<licenses> | ||
<license> | ||
<name>The MIT License (MIT)</name> | ||
<url>http://opensource.org/licenses/MIT</url> | ||
<distribution>repo</distribution> | ||
</license> | ||
</licenses> | ||
|
||
<scm> | ||
<url>https://github.com/Azure/azure-sdk-for-java</url> | ||
<connection>scm:git:git@github.com:Azure/azure-sdk-for-java.git</connection> | ||
<developerConnection>scm:git:git@github.com:Azure/azure-sdk-for-java.git</developerConnection> | ||
<tag>HEAD</tag> | ||
</scm> | ||
<developers> | ||
<developer> | ||
<id>microsoft</id> | ||
<name>Microsoft</name> | ||
</developer> | ||
</developers> | ||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<jacoco.skip>true</jacoco.skip> | ||
<scm> | ||
<url>https://github.com/Azure/azure-sdk-for-java</url> | ||
<connection>scm:git:git@github.com:Azure/azure-sdk-for-java.git</connection> | ||
<developerConnection>scm:git:git@github.com:Azure/azure-sdk-for-java.git</developerConnection> | ||
<tag>HEAD</tag> | ||
</scm> | ||
<developers> | ||
<developer> | ||
<id>microsoft</id> | ||
<name>Microsoft</name> | ||
</developer> | ||
</developers> | ||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<jacoco.skip>true</jacoco.skip> | ||
<codesnippet.skip>false</codesnippet.skip> | ||
<javadocDoclet></javadocDoclet> | ||
<javadocDocletOptions></javadocDocletOptions> | ||
</properties> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.azure</groupId> | ||
<artifactId>azure-core-management</artifactId> | ||
<version>1.4.4</version> <!-- {x-version-update;com.azure:azure-core-management;dependency} --> | ||
</dependency> | ||
</dependencies> | ||
</properties> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.azure</groupId> | ||
<artifactId>azure-core</artifactId> | ||
<version>1.23.1</version> <!-- {x-version-update;com.azure:azure-core;dependency} --> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.azure</groupId> | ||
<artifactId>azure-core-management</artifactId> | ||
<version>1.4.4</version> <!-- {x-version-update;com.azure:azure-core-management;dependency} --> | ||
</dependency> | ||
</dependencies> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.revapi</groupId> | ||
<artifactId>revapi-maven-plugin</artifactId> | ||
<version>0.11.2</version> <!-- {x-version-update;org.revapi:revapi-maven-plugin;external_dependency} --> | ||
<configuration> | ||
<analysisConfiguration> | ||
<revapi.ignore> | ||
<item> | ||
<code>java.method.addedToInterface</code> | ||
</item> | ||
<item> | ||
<regex>true</regex> | ||
<code>.*</code> | ||
<package>com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)*</package> | ||
</item> | ||
</revapi.ignore> | ||
</analysisConfiguration> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
Oops, something went wrong.