Skip to content

Commit be4c937

Browse files
author
SDKAuto
committed
CodeGen from PR 25791 in Azure/azure-rest-api-specs
Merge 9a7ae60a2f08e14fa02974631a7342614c2af506 into 58e92dd03733bc175e6a9540f4bc53703b57fcc9
1 parent b77fdaa commit be4c937

File tree

417 files changed

+5803
-18187
lines changed

Some content is hidden

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

417 files changed

+5803
-18187
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.3.0-beta.1 (Unreleased)
3+
## 1.0.0-beta.1 (2023-10-30)
4+
5+
- 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).
46

57
### Features Added
68

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

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

33
Azure Resource Manager RecoveryServicesBackup client library for Java.
44

5-
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).
5+
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).
66

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

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

4646
### Authentication
4747

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

5050
- `AZURE_CLIENT_ID` for Azure client ID.
5151
- `AZURE_TENANT_ID` for Azure tenant ID.
@@ -191,7 +191,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
191191
<!-- LINKS -->
192192
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
193193
[docs]: https://azure.github.io/azure-sdk-for-java/
194-
[jdk]: https://docs.microsoft.com/java/azure/jdk/
194+
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
195195
[azure_subscription]: https://azure.microsoft.com/free/
196196
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
197197
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty

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

Lines changed: 412 additions & 153 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<packaging>jar</packaging>
1919

2020
<name>Microsoft Azure SDK for RecoveryServicesBackup Management</name>
21-
<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>
21+
<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>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/RecoveryServicesBackupManager.java

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
import com.azure.resourcemanager.recoveryservicesbackup.implementation.DeletedProtectionContainersImpl;
4545
import com.azure.resourcemanager.recoveryservicesbackup.implementation.ExportJobsOperationResultsImpl;
4646
import com.azure.resourcemanager.recoveryservicesbackup.implementation.FeatureSupportsImpl;
47+
import com.azure.resourcemanager.recoveryservicesbackup.implementation.FetchTieringCostsImpl;
48+
import com.azure.resourcemanager.recoveryservicesbackup.implementation.GetTieringCostOperationResultsImpl;
4749
import com.azure.resourcemanager.recoveryservicesbackup.implementation.ItemLevelRecoveryConnectionsImpl;
4850
import com.azure.resourcemanager.recoveryservicesbackup.implementation.JobCancellationsImpl;
4951
import com.azure.resourcemanager.recoveryservicesbackup.implementation.JobDetailsImpl;
@@ -72,6 +74,7 @@
7274
import com.azure.resourcemanager.recoveryservicesbackup.implementation.ResourceProvidersImpl;
7375
import com.azure.resourcemanager.recoveryservicesbackup.implementation.RestoresImpl;
7476
import com.azure.resourcemanager.recoveryservicesbackup.implementation.SecurityPINsImpl;
77+
import com.azure.resourcemanager.recoveryservicesbackup.implementation.TieringCostOperationStatusImpl;
7578
import com.azure.resourcemanager.recoveryservicesbackup.implementation.ValidateOperationResultsImpl;
7679
import com.azure.resourcemanager.recoveryservicesbackup.implementation.ValidateOperationStatusesImpl;
7780
import com.azure.resourcemanager.recoveryservicesbackup.implementation.ValidateOperationsImpl;
@@ -95,6 +98,8 @@
9598
import com.azure.resourcemanager.recoveryservicesbackup.models.DeletedProtectionContainers;
9699
import com.azure.resourcemanager.recoveryservicesbackup.models.ExportJobsOperationResults;
97100
import com.azure.resourcemanager.recoveryservicesbackup.models.FeatureSupports;
101+
import com.azure.resourcemanager.recoveryservicesbackup.models.FetchTieringCosts;
102+
import com.azure.resourcemanager.recoveryservicesbackup.models.GetTieringCostOperationResults;
98103
import com.azure.resourcemanager.recoveryservicesbackup.models.ItemLevelRecoveryConnections;
99104
import com.azure.resourcemanager.recoveryservicesbackup.models.JobCancellations;
100105
import com.azure.resourcemanager.recoveryservicesbackup.models.JobDetails;
@@ -122,6 +127,7 @@
122127
import com.azure.resourcemanager.recoveryservicesbackup.models.ResourceProviders;
123128
import com.azure.resourcemanager.recoveryservicesbackup.models.Restores;
124129
import com.azure.resourcemanager.recoveryservicesbackup.models.SecurityPINs;
130+
import com.azure.resourcemanager.recoveryservicesbackup.models.TieringCostOperationStatus;
125131
import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperationResults;
126132
import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperationStatuses;
127133
import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperations;
@@ -234,6 +240,12 @@ public final class RecoveryServicesBackupManager {
234240

235241
private ResourceGuardProxyOperations resourceGuardProxyOperations;
236242

243+
private FetchTieringCosts fetchTieringCosts;
244+
245+
private GetTieringCostOperationResults getTieringCostOperationResults;
246+
247+
private TieringCostOperationStatus tieringCostOperationStatus;
248+
237249
private final RecoveryServicesBackupClient clientObject;
238250

239251
private RecoveryServicesBackupManager(
@@ -401,7 +413,7 @@ public RecoveryServicesBackupManager authenticate(TokenCredential credential, Az
401413
.append("-")
402414
.append("com.azure.resourcemanager.recoveryservicesbackup")
403415
.append("/")
404-
.append("1.2.0");
416+
.append("1.0.0-beta.1");
405417
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
406418
userAgentBuilder
407419
.append(" (")
@@ -1084,6 +1096,44 @@ public ResourceGuardProxyOperations resourceGuardProxyOperations() {
10841096
return resourceGuardProxyOperations;
10851097
}
10861098

1099+
/**
1100+
* Gets the resource collection API of FetchTieringCosts.
1101+
*
1102+
* @return Resource collection API of FetchTieringCosts.
1103+
*/
1104+
public FetchTieringCosts fetchTieringCosts() {
1105+
if (this.fetchTieringCosts == null) {
1106+
this.fetchTieringCosts = new FetchTieringCostsImpl(clientObject.getFetchTieringCosts(), this);
1107+
}
1108+
return fetchTieringCosts;
1109+
}
1110+
1111+
/**
1112+
* Gets the resource collection API of GetTieringCostOperationResults.
1113+
*
1114+
* @return Resource collection API of GetTieringCostOperationResults.
1115+
*/
1116+
public GetTieringCostOperationResults getTieringCostOperationResults() {
1117+
if (this.getTieringCostOperationResults == null) {
1118+
this.getTieringCostOperationResults =
1119+
new GetTieringCostOperationResultsImpl(clientObject.getGetTieringCostOperationResults(), this);
1120+
}
1121+
return getTieringCostOperationResults;
1122+
}
1123+
1124+
/**
1125+
* Gets the resource collection API of TieringCostOperationStatus.
1126+
*
1127+
* @return Resource collection API of TieringCostOperationStatus.
1128+
*/
1129+
public TieringCostOperationStatus tieringCostOperationStatus() {
1130+
if (this.tieringCostOperationStatus == null) {
1131+
this.tieringCostOperationStatus =
1132+
new TieringCostOperationStatusImpl(clientObject.getTieringCostOperationStatus(), this);
1133+
}
1134+
return tieringCostOperationStatus;
1135+
}
1136+
10871137
/**
10881138
* Gets wrapped service client RecoveryServicesBackupClient providing direct access to the underlying auto-generated
10891139
* API implementation, based on Azure REST API.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.recoveryservicesbackup.fluent;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.management.polling.PollResult;
10+
import com.azure.core.util.Context;
11+
import com.azure.core.util.polling.SyncPoller;
12+
import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.TieringCostInfoInner;
13+
import com.azure.resourcemanager.recoveryservicesbackup.models.FetchTieringCostInfoRequest;
14+
15+
/** An instance of this class provides access to all the operations defined in FetchTieringCostsClient. */
16+
public interface FetchTieringCostsClient {
17+
/**
18+
* Provides the details of the tiering related sizes and cost. Status of the operation can be fetched using
19+
* GetTieringCostOperationStatus API and result using GetTieringCostOperationResult API.
20+
*
21+
* @param resourceGroupName The name of the resource group where the recovery services vault is present.
22+
* @param vaultName The name of the recovery services vault.
23+
* @param parameters Fetch Tiering Cost Request.
24+
* @throws IllegalArgumentException thrown if parameters fail the validation.
25+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
26+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
27+
* @return the {@link SyncPoller} for polling of base class for tiering cost response.
28+
*/
29+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
30+
SyncPoller<PollResult<TieringCostInfoInner>, TieringCostInfoInner> beginPost(
31+
String resourceGroupName, String vaultName, FetchTieringCostInfoRequest parameters);
32+
33+
/**
34+
* Provides the details of the tiering related sizes and cost. Status of the operation can be fetched using
35+
* GetTieringCostOperationStatus API and result using GetTieringCostOperationResult API.
36+
*
37+
* @param resourceGroupName The name of the resource group where the recovery services vault is present.
38+
* @param vaultName The name of the recovery services vault.
39+
* @param parameters Fetch Tiering Cost Request.
40+
* @param context The context to associate with this operation.
41+
* @throws IllegalArgumentException thrown if parameters fail the validation.
42+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
43+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
44+
* @return the {@link SyncPoller} for polling of base class for tiering cost response.
45+
*/
46+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
47+
SyncPoller<PollResult<TieringCostInfoInner>, TieringCostInfoInner> beginPost(
48+
String resourceGroupName, String vaultName, FetchTieringCostInfoRequest parameters, Context context);
49+
50+
/**
51+
* Provides the details of the tiering related sizes and cost. Status of the operation can be fetched using
52+
* GetTieringCostOperationStatus API and result using GetTieringCostOperationResult API.
53+
*
54+
* @param resourceGroupName The name of the resource group where the recovery services vault is present.
55+
* @param vaultName The name of the recovery services vault.
56+
* @param parameters Fetch Tiering Cost Request.
57+
* @throws IllegalArgumentException thrown if parameters fail the validation.
58+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
59+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
60+
* @return base class for tiering cost response.
61+
*/
62+
@ServiceMethod(returns = ReturnType.SINGLE)
63+
TieringCostInfoInner post(String resourceGroupName, String vaultName, FetchTieringCostInfoRequest parameters);
64+
65+
/**
66+
* Provides the details of the tiering related sizes and cost. Status of the operation can be fetched using
67+
* GetTieringCostOperationStatus API and result using GetTieringCostOperationResult API.
68+
*
69+
* @param resourceGroupName The name of the resource group where the recovery services vault is present.
70+
* @param vaultName The name of the recovery services vault.
71+
* @param parameters Fetch Tiering Cost Request.
72+
* @param context The context to associate with this operation.
73+
* @throws IllegalArgumentException thrown if parameters fail the validation.
74+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
75+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
76+
* @return base class for tiering cost response.
77+
*/
78+
@ServiceMethod(returns = ReturnType.SINGLE)
79+
TieringCostInfoInner post(
80+
String resourceGroupName, String vaultName, FetchTieringCostInfoRequest parameters, Context context);
81+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.recoveryservicesbackup.fluent;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.http.rest.Response;
10+
import com.azure.core.util.Context;
11+
import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.TieringCostInfoInner;
12+
13+
/** An instance of this class provides access to all the operations defined in GetTieringCostOperationResultsClient. */
14+
public interface GetTieringCostOperationResultsClient {
15+
/**
16+
* Gets the result of async operation for tiering cost.
17+
*
18+
* @param resourceGroupName The name of the resource group where the recovery services vault is present.
19+
* @param vaultName The name of the recovery services vault.
20+
* @param operationId The operationId parameter.
21+
* @param context The context to associate with this operation.
22+
* @throws IllegalArgumentException thrown if parameters fail the validation.
23+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
24+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
25+
* @return the result of async operation for tiering cost along with {@link Response}.
26+
*/
27+
@ServiceMethod(returns = ReturnType.SINGLE)
28+
Response<TieringCostInfoInner> getWithResponse(
29+
String resourceGroupName, String vaultName, String operationId, Context context);
30+
31+
/**
32+
* Gets the result of async operation for tiering cost.
33+
*
34+
* @param resourceGroupName The name of the resource group where the recovery services vault is present.
35+
* @param vaultName The name of the recovery services vault.
36+
* @param operationId The operationId parameter.
37+
* @throws IllegalArgumentException thrown if parameters fail the validation.
38+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
39+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
40+
* @return the result of async operation for tiering cost.
41+
*/
42+
@ServiceMethod(returns = ReturnType.SINGLE)
43+
TieringCostInfoInner get(String resourceGroupName, String vaultName, String operationId);
44+
}

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/OperationOperationsClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import com.azure.core.http.rest.Response;
1010
import com.azure.core.util.Context;
1111
import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ValidateOperationsResponseInner;
12-
import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperationRequest;
12+
import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperationRequestResource;
1313

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

3232
/**
3333
* Validate operation for specified backed up item. This is a synchronous operation.
@@ -42,5 +42,5 @@ Response<ValidateOperationsResponseInner> validateWithResponse(
4242
*/
4343
@ServiceMethod(returns = ReturnType.SINGLE)
4444
ValidateOperationsResponseInner validate(
45-
String vaultName, String resourceGroupName, ValidateOperationRequest parameters);
45+
String vaultName, String resourceGroupName, ValidateOperationRequestResource parameters);
4646
}

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/RecoveryServicesBackupClient.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,4 +393,25 @@ public interface RecoveryServicesBackupClient {
393393
* @return the ResourceGuardProxyOperationsClient object.
394394
*/
395395
ResourceGuardProxyOperationsClient getResourceGuardProxyOperations();
396+
397+
/**
398+
* Gets the FetchTieringCostsClient object to access its operations.
399+
*
400+
* @return the FetchTieringCostsClient object.
401+
*/
402+
FetchTieringCostsClient getFetchTieringCosts();
403+
404+
/**
405+
* Gets the GetTieringCostOperationResultsClient object to access its operations.
406+
*
407+
* @return the GetTieringCostOperationResultsClient object.
408+
*/
409+
GetTieringCostOperationResultsClient getGetTieringCostOperationResults();
410+
411+
/**
412+
* Gets the TieringCostOperationStatusClient object to access its operations.
413+
*
414+
* @return the TieringCostOperationStatusClient object.
415+
*/
416+
TieringCostOperationStatusClient getTieringCostOperationStatus();
396417
}

0 commit comments

Comments
 (0)