Skip to content
Draft
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
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2022-01-21)

- Azure Resource Manager BareMetalInfrastructure client library for Java. This package contains Microsoft Azure SDK for BareMetalInfrastructure Management SDK. The BareMetalInfrastructure Management client. Package tag package-2021-08-09. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-baremetalinfrastructure</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.azure.core.http.HttpClient;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
Expand All @@ -31,6 +32,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;

/** Entry point to BareMetalInfrastructureManager. The BareMetalInfrastructure Management client. */
public final class BareMetalInfrastructureManager {
Expand Down Expand Up @@ -199,11 +201,24 @@ public BareMetalInfrastructureManager authenticate(TokenCredential credential, A
List<HttpPipelinePolicy> policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new RequestIdPolicy());
policies
.addAll(
this
.policies
.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
.collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies);
policies
.addAll(
this
.policies
.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ public interface AzureBareMetalInstancesClient {
* @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 an Azure BareMetal instance for the specified subscription, resource group, and instance name.
* @return an Azure BareMetal instance for the specified subscription, resource group, and instance name along with
* {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<AzureBareMetalInstanceInner> getByResourceGroupWithResponse(
Expand Down Expand Up @@ -119,7 +120,8 @@ Response<AzureBareMetalInstanceInner> getByResourceGroupWithResponse(
* @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 azureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties).
* @return azureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties) along with {@link
* Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<AzureBareMetalInstanceInner> updateWithResponse(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ Mono<Response<AzureBareMetalInstancesListResult>> listByResourceGroupNext(
*
* @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 a list of AzureBareMetal instances in the specified subscription.
* @return a list of AzureBareMetal instances in the specified subscription along with {@link PagedResponse} on
* successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<PagedResponse<AzureBareMetalInstanceInner>> listSinglePageAsync() {
Expand Down Expand Up @@ -193,7 +194,8 @@ private Mono<PagedResponse<AzureBareMetalInstanceInner>> 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 a list of AzureBareMetal instances in the specified subscription.
* @return a list of AzureBareMetal instances in the specified subscription along with {@link PagedResponse} on
* successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<PagedResponse<AzureBareMetalInstanceInner>> listSinglePageAsync(Context context) {
Expand Down Expand Up @@ -295,7 +297,8 @@ public PagedIterable<AzureBareMetalInstanceInner> 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 a list of AzureBareMetal instances in the specified subscription and resource group.
* @return a list of AzureBareMetal instances in the specified subscription and resource group along with {@link
* PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<PagedResponse<AzureBareMetalInstanceInner>> listByResourceGroupSinglePageAsync(
Expand Down Expand Up @@ -349,7 +352,8 @@ private Mono<PagedResponse<AzureBareMetalInstanceInner>> listByResourceGroupSing
* @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 a list of AzureBareMetal instances in the specified subscription and resource group.
* @return a list of AzureBareMetal instances in the specified subscription and resource group along with {@link
* PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<PagedResponse<AzureBareMetalInstanceInner>> listByResourceGroupSinglePageAsync(
Expand Down Expand Up @@ -465,7 +469,8 @@ public PagedIterable<AzureBareMetalInstanceInner> listByResourceGroup(String res
* @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 an Azure BareMetal instance for the specified subscription, resource group, and instance name.
* @return an Azure BareMetal instance for the specified subscription, resource group, and instance name along with
* {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<Response<AzureBareMetalInstanceInner>> getByResourceGroupWithResponseAsync(
Expand Down Expand Up @@ -517,7 +522,8 @@ private Mono<Response<AzureBareMetalInstanceInner>> getByResourceGroupWithRespon
* @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 an Azure BareMetal instance for the specified subscription, resource group, and instance name.
* @return an Azure BareMetal instance for the specified subscription, resource group, and instance name along with
* {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<Response<AzureBareMetalInstanceInner>> getByResourceGroupWithResponseAsync(
Expand Down Expand Up @@ -565,7 +571,8 @@ private Mono<Response<AzureBareMetalInstanceInner>> getByResourceGroupWithRespon
* @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 an Azure BareMetal instance for the specified subscription, resource group, and instance name.
* @return an Azure BareMetal instance for the specified subscription, resource group, and instance name on
* successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<AzureBareMetalInstanceInner> getByResourceGroupAsync(
Expand Down Expand Up @@ -605,7 +612,8 @@ public AzureBareMetalInstanceInner getByResourceGroup(String resourceGroupName,
* @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 an Azure BareMetal instance for the specified subscription, resource group, and instance name.
* @return an Azure BareMetal instance for the specified subscription, resource group, and instance name along with
* {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response<AzureBareMetalInstanceInner> getByResourceGroupWithResponse(
Expand All @@ -623,7 +631,8 @@ public Response<AzureBareMetalInstanceInner> getByResourceGroupWithResponse(
* @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 azureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties).
* @return azureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties) along with {@link
* Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<Response<AzureBareMetalInstanceInner>> updateWithResponseAsync(
Expand Down Expand Up @@ -683,7 +692,8 @@ private Mono<Response<AzureBareMetalInstanceInner>> updateWithResponseAsync(
* @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 azureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties).
* @return azureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties) along with {@link
* Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<Response<AzureBareMetalInstanceInner>> updateWithResponseAsync(
Expand Down Expand Up @@ -739,7 +749,8 @@ private Mono<Response<AzureBareMetalInstanceInner>> updateWithResponseAsync(
* @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 azureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties).
* @return azureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties) on successful
* completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<AzureBareMetalInstanceInner> updateAsync(
Expand Down Expand Up @@ -784,7 +795,8 @@ public AzureBareMetalInstanceInner update(
* @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 azureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties).
* @return azureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties) along with {@link
* Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response<AzureBareMetalInstanceInner> updateWithResponse(
Expand All @@ -799,7 +811,8 @@ public Response<AzureBareMetalInstanceInner> updateWithResponse(
* @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 response from the List AzureBareMetal Instances operation.
* @return the response from the List AzureBareMetal Instances operation along with {@link PagedResponse} on
* successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<PagedResponse<AzureBareMetalInstanceInner>> listBySubscriptionNextSinglePageAsync(String nextLink) {
Expand Down Expand Up @@ -836,7 +849,8 @@ private Mono<PagedResponse<AzureBareMetalInstanceInner>> listBySubscriptionNextS
* @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 response from the List AzureBareMetal Instances operation.
* @return the response from the List AzureBareMetal Instances operation along with {@link PagedResponse} on
* successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<PagedResponse<AzureBareMetalInstanceInner>> listBySubscriptionNextSinglePageAsync(
Expand Down Expand Up @@ -872,7 +886,8 @@ private Mono<PagedResponse<AzureBareMetalInstanceInner>> listBySubscriptionNextS
* @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 response from the List AzureBareMetal Instances operation.
* @return the response from the List AzureBareMetal Instances operation along with {@link PagedResponse} on
* successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<PagedResponse<AzureBareMetalInstanceInner>> listByResourceGroupNextSinglePageAsync(String nextLink) {
Expand Down Expand Up @@ -909,7 +924,8 @@ private Mono<PagedResponse<AzureBareMetalInstanceInner>> listByResourceGroupNext
* @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 response from the List AzureBareMetal Instances operation.
* @return the response from the List AzureBareMetal Instances operation along with {@link PagedResponse} on
* successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<PagedResponse<AzureBareMetalInstanceInner>> listByResourceGroupNextSinglePageAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ Mono<Response<OperationList>> list(
*
* @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 a list of AzureBareMetal management operations.
* @return a list of AzureBareMetal management operations along with {@link PagedResponse} on successful completion
* of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<PagedResponse<OperationInner>> listSinglePageAsync() {
Expand Down Expand Up @@ -102,7 +103,8 @@ private Mono<PagedResponse<OperationInner>> 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 a list of AzureBareMetal management operations.
* @return a list of AzureBareMetal management operations along with {@link PagedResponse} on successful completion
* of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<PagedResponse<OperationInner>> listSinglePageAsync(Context context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ public interface AzureBareMetalInstances {
* @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 an Azure BareMetal instance for the specified subscription, resource group, and instance name.
* @return an Azure BareMetal instance for the specified subscription, resource group, and instance name along with
* {@link Response}.
*/
Response<AzureBareMetalInstance> getByResourceGroupWithResponse(
String resourceGroupName, String azureBareMetalInstanceName, Context context);
Expand Down Expand Up @@ -108,7 +109,8 @@ Response<AzureBareMetalInstance> getByResourceGroupWithResponse(
* @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 azureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties).
* @return azureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties) along with {@link
* Response}.
*/
Response<AzureBareMetalInstance> updateWithResponse(
String resourceGroupName, String azureBareMetalInstanceName, Tags tagsParameter, Context context);
Expand Down