Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-resourcemanager-healthbot] Fix CSharp output folder for Azure Health Bot SDK. #7884

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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion sdk/healthbot/azure-resourcemanager-healthbot/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Release History

## 1.0.0-beta.1 (2021-03-18)

- 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).

## 1.0.0-beta.2 (2021-02-09)


## 1.0.0-beta.1 (2021-01-07)

- 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).
- 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).
18 changes: 17 additions & 1 deletion sdk/healthbot/azure-resourcemanager-healthbot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ 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).

## We'd love to hear your feedback

We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.

If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.

Thank you in advance for your collaboration. We really appreciate your time!

## Documentation

Various documentation is available to help you get started

- [API reference documentation][docs]

## Getting started

### Prerequisites
Expand All @@ -18,7 +32,7 @@ This package contains Microsoft Azure SDK for Healthbot Management SDK. Microsof
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-healthbot</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down Expand Up @@ -75,6 +89,8 @@ For details on contributing to this repository, see the [contributing guide](htt
1. Create new Pull Request

<!-- LINKS -->
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
[docs]: https://azure.github.io/azure-sdk-for-java/
[jdk]: https://docs.microsoft.com/java/azure/jdk/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/identity/azure-identity
Expand Down
7 changes: 6 additions & 1 deletion sdk/healthbot/azure-resourcemanager-healthbot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for Healthbot Management</name>
<description>This package contains Microsoft Azure SDK for Healthbot Management SDK. 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>
<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>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down Expand Up @@ -41,6 +41,11 @@
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
</properties>
<dependencies>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core</artifactId>
<version>1.14.0</version> <!-- {x-version-update;com.azure:azure-core;dependency} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-management</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,17 +160,31 @@ public HealthbotManager authenticate(TokenCredential credential, AzureProfile pr
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");

StringBuilder userAgentBuilder = new StringBuilder();
userAgentBuilder
.append("azsdk-java")
.append("-")
.append("com.azure.resourcemanager.healthbot")
.append("/")
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
.append("; ")
.append(Configuration.getGlobalConfiguration().get("os.name"))
.append("; ")
.append(Configuration.getGlobalConfiguration().get("os.version"))
.append("; auto-generated)");
} else {
userAgentBuilder.append(" (auto-generated)");
}

if (retryPolicy == null) {
retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
}
List<HttpPipelinePolicy> policies = new ArrayList<>();
policies
.add(
new UserAgentPolicy(
null,
"com.azure.resourcemanager.healthbot",
"1.0.0-beta.1",
Configuration.getGlobalConfiguration()));
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new RequestIdPolicy());
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import com.azure.core.http.rest.SimpleResponse;
import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.healthbot.HealthbotManager;
import com.azure.resourcemanager.healthbot.fluent.BotsClient;
import com.azure.resourcemanager.healthbot.fluent.models.HealthBotInner;
import com.azure.resourcemanager.healthbot.models.Bots;
Expand All @@ -21,9 +20,9 @@ public final class BotsImpl implements Bots {

private final BotsClient innerClient;

private final HealthbotManager serviceManager;
private final com.azure.resourcemanager.healthbot.HealthbotManager serviceManager;

public BotsImpl(BotsClient innerClient, HealthbotManager serviceManager) {
public BotsImpl(BotsClient innerClient, com.azure.resourcemanager.healthbot.HealthbotManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
Expand Down Expand Up @@ -62,22 +61,22 @@ public void delete(String resourceGroupName, String botName, Context context) {

public PagedIterable<HealthBot> listByResourceGroup(String resourceGroupName) {
PagedIterable<HealthBotInner> inner = this.serviceClient().listByResourceGroup(resourceGroupName);
return inner.mapPage(inner1 -> new HealthBotImpl(inner1, this.manager()));
return Utils.mapPage(inner, inner1 -> new HealthBotImpl(inner1, this.manager()));
}

public PagedIterable<HealthBot> listByResourceGroup(String resourceGroupName, Context context) {
PagedIterable<HealthBotInner> inner = this.serviceClient().listByResourceGroup(resourceGroupName, context);
return inner.mapPage(inner1 -> new HealthBotImpl(inner1, this.manager()));
return Utils.mapPage(inner, inner1 -> new HealthBotImpl(inner1, this.manager()));
}

public PagedIterable<HealthBot> list() {
PagedIterable<HealthBotInner> inner = this.serviceClient().list();
return inner.mapPage(inner1 -> new HealthBotImpl(inner1, this.manager()));
return Utils.mapPage(inner, inner1 -> new HealthBotImpl(inner1, this.manager()));
}

public PagedIterable<HealthBot> list(Context context) {
PagedIterable<HealthBotInner> inner = this.serviceClient().list(context);
return inner.mapPage(inner1 -> new HealthBotImpl(inner1, this.manager()));
return Utils.mapPage(inner, inner1 -> new HealthBotImpl(inner1, this.manager()));
}

public HealthBot getById(String id) {
Expand Down Expand Up @@ -160,7 +159,7 @@ private BotsClient serviceClient() {
return this.innerClient;
}

private HealthbotManager manager() {
private com.azure.resourcemanager.healthbot.HealthbotManager manager() {
return this.serviceManager;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import com.azure.core.management.Region;
import com.azure.core.util.Context;
import com.azure.resourcemanager.healthbot.HealthbotManager;
import com.azure.resourcemanager.healthbot.fluent.models.HealthBotInner;
import com.azure.resourcemanager.healthbot.models.HealthBot;
import com.azure.resourcemanager.healthbot.models.HealthBotProperties;
Expand All @@ -18,7 +17,7 @@
public final class HealthBotImpl implements HealthBot, HealthBot.Definition, HealthBot.Update {
private HealthBotInner innerObject;

private final HealthbotManager serviceManager;
private final com.azure.resourcemanager.healthbot.HealthbotManager serviceManager;

public String id() {
return this.innerModel().id();
Expand Down Expand Up @@ -65,7 +64,7 @@ public HealthBotInner innerModel() {
return this.innerObject;
}

private HealthbotManager manager() {
private com.azure.resourcemanager.healthbot.HealthbotManager manager() {
return this.serviceManager;
}

Expand Down Expand Up @@ -95,7 +94,7 @@ public HealthBot create(Context context) {
return this;
}

HealthBotImpl(String name, HealthbotManager serviceManager) {
HealthBotImpl(String name, com.azure.resourcemanager.healthbot.HealthbotManager serviceManager) {
this.innerObject = new HealthBotInner();
this.serviceManager = serviceManager;
this.botName = name;
Expand Down Expand Up @@ -126,7 +125,7 @@ public HealthBot apply(Context context) {
return this;
}

HealthBotImpl(HealthBotInner innerObject, HealthbotManager serviceManager) {
HealthBotImpl(HealthBotInner innerObject, com.azure.resourcemanager.healthbot.HealthbotManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public <T, U> Mono<U> getLroFinalResultOrError(AsyncPollResponse<PollResult<T>,
if (managementError.getCode() == null || managementError.getMessage() == null) {
managementError = null;
}
} catch (IOException ioe) {
} catch (IOException | RuntimeException ioe) {
logger.logThrowableAsWarning(ioe);
}
}
Expand Down Expand Up @@ -273,7 +273,7 @@ private static final class HttpResponseImpl extends HttpResponse {
super(null);
this.statusCode = statusCode;
this.httpHeaders = httpHeaders;
this.responseBody = responseBody.getBytes(StandardCharsets.UTF_8);
this.responseBody = responseBody == null ? null : responseBody.getBytes(StandardCharsets.UTF_8);
}

public int getStatusCode() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@

package com.azure.resourcemanager.healthbot.implementation;

import com.azure.resourcemanager.healthbot.HealthbotManager;
import com.azure.resourcemanager.healthbot.fluent.models.OperationDetailInner;
import com.azure.resourcemanager.healthbot.models.OperationDetail;
import com.azure.resourcemanager.healthbot.models.OperationDisplay;

public final class OperationDetailImpl implements OperationDetail {
private OperationDetailInner innerObject;

private final HealthbotManager serviceManager;
private final com.azure.resourcemanager.healthbot.HealthbotManager serviceManager;

OperationDetailImpl(OperationDetailInner innerObject, HealthbotManager serviceManager) {
OperationDetailImpl(
OperationDetailInner innerObject, com.azure.resourcemanager.healthbot.HealthbotManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
Expand Down Expand Up @@ -43,7 +43,7 @@ public OperationDetailInner innerModel() {
return this.innerObject;
}

private HealthbotManager manager() {
private com.azure.resourcemanager.healthbot.HealthbotManager manager() {
return this.serviceManager;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.healthbot.HealthbotManager;
import com.azure.resourcemanager.healthbot.fluent.OperationsClient;
import com.azure.resourcemanager.healthbot.fluent.models.OperationDetailInner;
import com.azure.resourcemanager.healthbot.models.OperationDetail;
Expand All @@ -19,28 +18,29 @@ public final class OperationsImpl implements Operations {

private final OperationsClient innerClient;

private final HealthbotManager serviceManager;
private final com.azure.resourcemanager.healthbot.HealthbotManager serviceManager;

public OperationsImpl(OperationsClient innerClient, HealthbotManager serviceManager) {
public OperationsImpl(
OperationsClient innerClient, com.azure.resourcemanager.healthbot.HealthbotManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}

public PagedIterable<OperationDetail> list() {
PagedIterable<OperationDetailInner> inner = this.serviceClient().list();
return inner.mapPage(inner1 -> new OperationDetailImpl(inner1, this.manager()));
return Utils.mapPage(inner, inner1 -> new OperationDetailImpl(inner1, this.manager()));
}

public PagedIterable<OperationDetail> list(Context context) {
PagedIterable<OperationDetailInner> inner = this.serviceClient().list(context);
return inner.mapPage(inner1 -> new OperationDetailImpl(inner1, this.manager()));
return Utils.mapPage(inner, inner1 -> new OperationDetailImpl(inner1, this.manager()));
}

private OperationsClient serviceClient() {
return this.innerClient;
}

private HealthbotManager manager() {
private com.azure.resourcemanager.healthbot.HealthbotManager manager() {
return this.serviceManager;
}
}
Loading