Skip to content

[AutoPR azure-resourcemanager-recoveryservicesbackup] Swagger update for AFS vaulted backup policy #6934

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

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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.3.0-beta.1 (Unreleased)
## 1.0.0-beta.1 (2023-10-30)

- Azure Resource Manager RecoveryServicesBackup client library for Java. This package contains Microsoft Azure SDK for RecoveryServicesBackup Management SDK. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package tag package-2023-06. 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 @@ -2,7 +2,7 @@

Azure Resource Manager RecoveryServicesBackup client library for Java.

This package contains Microsoft Azure SDK for RecoveryServicesBackup Management SDK. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package tag package-2023-04. 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 RecoveryServicesBackup Management SDK. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package tag package-2023-06. 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

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-recoveryservicesbackup</artifactId>
<version>1.2.0</version>
<version>1.3.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand All @@ -45,7 +45,7 @@ Azure Management Libraries require a `TokenCredential` implementation for authen

### Authentication

By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables.
By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables.

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
Expand Down Expand Up @@ -191,7 +191,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
<!-- 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/
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for RecoveryServicesBackup Management</name>
<description>This package contains Microsoft Azure SDK for RecoveryServicesBackup Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package tag package-2023-04.</description>
<description>This package contains Microsoft Azure SDK for RecoveryServicesBackup Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package tag package-2023-06.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
import com.azure.resourcemanager.recoveryservicesbackup.implementation.DeletedProtectionContainersImpl;
import com.azure.resourcemanager.recoveryservicesbackup.implementation.ExportJobsOperationResultsImpl;
import com.azure.resourcemanager.recoveryservicesbackup.implementation.FeatureSupportsImpl;
import com.azure.resourcemanager.recoveryservicesbackup.implementation.FetchTieringCostsImpl;
import com.azure.resourcemanager.recoveryservicesbackup.implementation.GetTieringCostOperationResultsImpl;
import com.azure.resourcemanager.recoveryservicesbackup.implementation.ItemLevelRecoveryConnectionsImpl;
import com.azure.resourcemanager.recoveryservicesbackup.implementation.JobCancellationsImpl;
import com.azure.resourcemanager.recoveryservicesbackup.implementation.JobDetailsImpl;
Expand Down Expand Up @@ -72,6 +74,7 @@
import com.azure.resourcemanager.recoveryservicesbackup.implementation.ResourceProvidersImpl;
import com.azure.resourcemanager.recoveryservicesbackup.implementation.RestoresImpl;
import com.azure.resourcemanager.recoveryservicesbackup.implementation.SecurityPINsImpl;
import com.azure.resourcemanager.recoveryservicesbackup.implementation.TieringCostOperationStatusImpl;
import com.azure.resourcemanager.recoveryservicesbackup.implementation.ValidateOperationResultsImpl;
import com.azure.resourcemanager.recoveryservicesbackup.implementation.ValidateOperationStatusesImpl;
import com.azure.resourcemanager.recoveryservicesbackup.implementation.ValidateOperationsImpl;
Expand All @@ -95,6 +98,8 @@
import com.azure.resourcemanager.recoveryservicesbackup.models.DeletedProtectionContainers;
import com.azure.resourcemanager.recoveryservicesbackup.models.ExportJobsOperationResults;
import com.azure.resourcemanager.recoveryservicesbackup.models.FeatureSupports;
import com.azure.resourcemanager.recoveryservicesbackup.models.FetchTieringCosts;
import com.azure.resourcemanager.recoveryservicesbackup.models.GetTieringCostOperationResults;
import com.azure.resourcemanager.recoveryservicesbackup.models.ItemLevelRecoveryConnections;
import com.azure.resourcemanager.recoveryservicesbackup.models.JobCancellations;
import com.azure.resourcemanager.recoveryservicesbackup.models.JobDetails;
Expand Down Expand Up @@ -122,6 +127,7 @@
import com.azure.resourcemanager.recoveryservicesbackup.models.ResourceProviders;
import com.azure.resourcemanager.recoveryservicesbackup.models.Restores;
import com.azure.resourcemanager.recoveryservicesbackup.models.SecurityPINs;
import com.azure.resourcemanager.recoveryservicesbackup.models.TieringCostOperationStatus;
import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperationResults;
import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperationStatuses;
import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperations;
Expand Down Expand Up @@ -234,6 +240,12 @@ public final class RecoveryServicesBackupManager {

private ResourceGuardProxyOperations resourceGuardProxyOperations;

private FetchTieringCosts fetchTieringCosts;

private GetTieringCostOperationResults getTieringCostOperationResults;

private TieringCostOperationStatus tieringCostOperationStatus;

private final RecoveryServicesBackupClient clientObject;

private RecoveryServicesBackupManager(
Expand Down Expand Up @@ -401,7 +413,7 @@ public RecoveryServicesBackupManager authenticate(TokenCredential credential, Az
.append("-")
.append("com.azure.resourcemanager.recoveryservicesbackup")
.append("/")
.append("1.2.0");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -1084,6 +1096,44 @@ public ResourceGuardProxyOperations resourceGuardProxyOperations() {
return resourceGuardProxyOperations;
}

/**
* Gets the resource collection API of FetchTieringCosts.
*
* @return Resource collection API of FetchTieringCosts.
*/
public FetchTieringCosts fetchTieringCosts() {
if (this.fetchTieringCosts == null) {
this.fetchTieringCosts = new FetchTieringCostsImpl(clientObject.getFetchTieringCosts(), this);
}
return fetchTieringCosts;
}

/**
* Gets the resource collection API of GetTieringCostOperationResults.
*
* @return Resource collection API of GetTieringCostOperationResults.
*/
public GetTieringCostOperationResults getTieringCostOperationResults() {
if (this.getTieringCostOperationResults == null) {
this.getTieringCostOperationResults =
new GetTieringCostOperationResultsImpl(clientObject.getGetTieringCostOperationResults(), this);
}
return getTieringCostOperationResults;
}

/**
* Gets the resource collection API of TieringCostOperationStatus.
*
* @return Resource collection API of TieringCostOperationStatus.
*/
public TieringCostOperationStatus tieringCostOperationStatus() {
if (this.tieringCostOperationStatus == null) {
this.tieringCostOperationStatus =
new TieringCostOperationStatusImpl(clientObject.getTieringCostOperationStatus(), this);
}
return tieringCostOperationStatus;
}

/**
* Gets wrapped service client RecoveryServicesBackupClient providing direct access to the underlying auto-generated
* API implementation, based on Azure REST API.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.recoveryservicesbackup.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.TieringCostInfoInner;
import com.azure.resourcemanager.recoveryservicesbackup.models.FetchTieringCostInfoRequest;

/** An instance of this class provides access to all the operations defined in FetchTieringCostsClient. */
public interface FetchTieringCostsClient {
/**
* Provides the details of the tiering related sizes and cost. Status of the operation can be fetched using
* GetTieringCostOperationStatus API and result using GetTieringCostOperationResult API.
*
* @param resourceGroupName The name of the resource group where the recovery services vault is present.
* @param vaultName The name of the recovery services vault.
* @param parameters Fetch Tiering Cost Request.
* @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 base class for tiering cost response.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<TieringCostInfoInner>, TieringCostInfoInner> beginPost(
String resourceGroupName, String vaultName, FetchTieringCostInfoRequest parameters);

/**
* Provides the details of the tiering related sizes and cost. Status of the operation can be fetched using
* GetTieringCostOperationStatus API and result using GetTieringCostOperationResult API.
*
* @param resourceGroupName The name of the resource group where the recovery services vault is present.
* @param vaultName The name of the recovery services vault.
* @param parameters Fetch Tiering Cost Request.
* @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 base class for tiering cost response.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<TieringCostInfoInner>, TieringCostInfoInner> beginPost(
String resourceGroupName, String vaultName, FetchTieringCostInfoRequest parameters, Context context);

/**
* Provides the details of the tiering related sizes and cost. Status of the operation can be fetched using
* GetTieringCostOperationStatus API and result using GetTieringCostOperationResult API.
*
* @param resourceGroupName The name of the resource group where the recovery services vault is present.
* @param vaultName The name of the recovery services vault.
* @param parameters Fetch Tiering Cost Request.
* @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 base class for tiering cost response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
TieringCostInfoInner post(String resourceGroupName, String vaultName, FetchTieringCostInfoRequest parameters);

/**
* Provides the details of the tiering related sizes and cost. Status of the operation can be fetched using
* GetTieringCostOperationStatus API and result using GetTieringCostOperationResult API.
*
* @param resourceGroupName The name of the resource group where the recovery services vault is present.
* @param vaultName The name of the recovery services vault.
* @param parameters Fetch Tiering Cost Request.
* @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 base class for tiering cost response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
TieringCostInfoInner post(
String resourceGroupName, String vaultName, FetchTieringCostInfoRequest parameters, Context context);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.recoveryservicesbackup.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.TieringCostInfoInner;

/** An instance of this class provides access to all the operations defined in GetTieringCostOperationResultsClient. */
public interface GetTieringCostOperationResultsClient {
/**
* Gets the result of async operation for tiering cost.
*
* @param resourceGroupName The name of the resource group where the recovery services vault is present.
* @param vaultName The name of the recovery services vault.
* @param operationId The operationId parameter.
* @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 result of async operation for tiering cost along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<TieringCostInfoInner> getWithResponse(
String resourceGroupName, String vaultName, String operationId, Context context);

/**
* Gets the result of async operation for tiering cost.
*
* @param resourceGroupName The name of the resource group where the recovery services vault is present.
* @param vaultName The name of the recovery services vault.
* @param operationId The operationId parameter.
* @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 result of async operation for tiering cost.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
TieringCostInfoInner get(String resourceGroupName, String vaultName, String operationId);
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ValidateOperationsResponseInner;
import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperationRequest;
import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperationRequestResource;

/** An instance of this class provides access to all the operations defined in OperationOperationsClient. */
public interface OperationOperationsClient {
Expand All @@ -27,7 +27,7 @@ public interface OperationOperationsClient {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ValidateOperationsResponseInner> validateWithResponse(
String vaultName, String resourceGroupName, ValidateOperationRequest parameters, Context context);
String vaultName, String resourceGroupName, ValidateOperationRequestResource parameters, Context context);

/**
* Validate operation for specified backed up item. This is a synchronous operation.
Expand All @@ -42,5 +42,5 @@ Response<ValidateOperationsResponseInner> validateWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ValidateOperationsResponseInner validate(
String vaultName, String resourceGroupName, ValidateOperationRequest parameters);
String vaultName, String resourceGroupName, ValidateOperationRequestResource parameters);
}
Original file line number Diff line number Diff line change
Expand Up @@ -393,4 +393,25 @@ public interface RecoveryServicesBackupClient {
* @return the ResourceGuardProxyOperationsClient object.
*/
ResourceGuardProxyOperationsClient getResourceGuardProxyOperations();

/**
* Gets the FetchTieringCostsClient object to access its operations.
*
* @return the FetchTieringCostsClient object.
*/
FetchTieringCostsClient getFetchTieringCosts();

/**
* Gets the GetTieringCostOperationResultsClient object to access its operations.
*
* @return the GetTieringCostOperationResultsClient object.
*/
GetTieringCostOperationResultsClient getGetTieringCostOperationResults();

/**
* Gets the TieringCostOperationStatusClient object to access its operations.
*
* @return the TieringCostOperationStatusClient object.
*/
TieringCostOperationStatusClient getTieringCostOperationStatus();
}
Loading