Skip to content

Commit d5d3bcf

Browse files
author
SDKAuto
committed
CodeGen from PR 18260 in Azure/azure-rest-api-specs
Merge bc3d58eee9db6ad49bd2477df133f8ab3f8ef8b0 into a1a224b54f05debfa94fd19477ed820c64f0f9fc
1 parent 8bfecc2 commit d5d3bcf

File tree

273 files changed

+6919
-2356
lines changed

Some content is hidden

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

273 files changed

+6919
-2356
lines changed

sdk/dataprotection/azure-resourcemanager-dataprotection/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.0.0-beta.2 (Unreleased)
3+
## 1.0.0-beta.1 (2022-04-04)
4+
5+
- Azure Resource Manager DataProtection client library for Java. This package contains Microsoft Azure SDK for DataProtection Management SDK. Open API 2.0 Specs for Azure Data Protection service. Package tag package-preview-2022-02. 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/dataprotection/azure-resourcemanager-dataprotection/README.md

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

33
Azure Resource Manager DataProtection client library for Java.
44

5-
This package contains Microsoft Azure SDK for DataProtection Management SDK. Open API 2.0 Specs for Azure Data Protection service. Package tag package-2021-07. 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 DataProtection Management SDK. Open API 2.0 Specs for Azure Data Protection service. Package tag package-preview-2022-02. 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-dataprotection</artifactId>
35-
<version>1.0.0-beta.1</version>
35+
<version>1.0.0-beta.2</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

Lines changed: 336 additions & 88 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<packaging>jar</packaging>
1414

1515
<name>Microsoft Azure SDK for DataProtection Management</name>
16-
<description>This package contains Microsoft Azure SDK for DataProtection 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 Data Protection service. Package tag package-2021-07.</description>
16+
<description>This package contains Microsoft Azure SDK for DataProtection 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 Data Protection service. Package tag package-preview-2022-02.</description>
1717
<url>https://github.com/Azure/azure-sdk-for-java</url>
1818

1919
<licenses>

sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/DataProtectionManager.java

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
import com.azure.resourcemanager.dataprotection.implementation.ExportJobsOperationResultsImpl;
3434
import com.azure.resourcemanager.dataprotection.implementation.JobsImpl;
3535
import com.azure.resourcemanager.dataprotection.implementation.OperationResultsImpl;
36+
import com.azure.resourcemanager.dataprotection.implementation.OperationStatusBackupVaultContextsImpl;
3637
import com.azure.resourcemanager.dataprotection.implementation.OperationStatusImpl;
38+
import com.azure.resourcemanager.dataprotection.implementation.OperationStatusResourceGroupContextsImpl;
3739
import com.azure.resourcemanager.dataprotection.implementation.RecoveryPointsImpl;
3840
import com.azure.resourcemanager.dataprotection.implementation.ResourceGuardsImpl;
3941
import com.azure.resourcemanager.dataprotection.implementation.RestorableTimeRangesImpl;
@@ -48,6 +50,8 @@
4850
import com.azure.resourcemanager.dataprotection.models.Jobs;
4951
import com.azure.resourcemanager.dataprotection.models.OperationResults;
5052
import com.azure.resourcemanager.dataprotection.models.OperationStatus;
53+
import com.azure.resourcemanager.dataprotection.models.OperationStatusBackupVaultContexts;
54+
import com.azure.resourcemanager.dataprotection.models.OperationStatusResourceGroupContexts;
5155
import com.azure.resourcemanager.dataprotection.models.RecoveryPoints;
5256
import com.azure.resourcemanager.dataprotection.models.ResourceGuards;
5357
import com.azure.resourcemanager.dataprotection.models.RestorableTimeRanges;
@@ -66,6 +70,10 @@ public final class DataProtectionManager {
6670

6771
private OperationStatus operationStatus;
6872

73+
private OperationStatusBackupVaultContexts operationStatusBackupVaultContexts;
74+
75+
private OperationStatusResourceGroupContexts operationStatusResourceGroupContexts;
76+
6977
private BackupVaultOperationResults backupVaultOperationResults;
7078

7179
private DataProtections dataProtections;
@@ -126,7 +134,7 @@ public static Configurable configure() {
126134

127135
/** The Configurable allowing configurations to be set. */
128136
public static final class Configurable {
129-
private final ClientLogger logger = new ClientLogger(Configurable.class);
137+
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
130138

131139
private HttpClient httpClient;
132140
private HttpLogOptions httpLogOptions;
@@ -200,9 +208,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
200208
* @return the configurable object itself.
201209
*/
202210
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
203-
this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
211+
this.defaultPollInterval =
212+
Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
204213
if (this.defaultPollInterval.isNegative()) {
205-
throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
214+
throw LOGGER
215+
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
206216
}
207217
return this;
208218
}
@@ -300,6 +310,25 @@ public OperationStatus operationStatus() {
300310
return operationStatus;
301311
}
302312

313+
/** @return Resource collection API of OperationStatusBackupVaultContexts. */
314+
public OperationStatusBackupVaultContexts operationStatusBackupVaultContexts() {
315+
if (this.operationStatusBackupVaultContexts == null) {
316+
this.operationStatusBackupVaultContexts =
317+
new OperationStatusBackupVaultContextsImpl(clientObject.getOperationStatusBackupVaultContexts(), this);
318+
}
319+
return operationStatusBackupVaultContexts;
320+
}
321+
322+
/** @return Resource collection API of OperationStatusResourceGroupContexts. */
323+
public OperationStatusResourceGroupContexts operationStatusResourceGroupContexts() {
324+
if (this.operationStatusResourceGroupContexts == null) {
325+
this.operationStatusResourceGroupContexts =
326+
new OperationStatusResourceGroupContextsImpl(
327+
clientObject.getOperationStatusResourceGroupContexts(), this);
328+
}
329+
return operationStatusResourceGroupContexts;
330+
}
331+
303332
/** @return Resource collection API of BackupVaultOperationResults. */
304333
public BackupVaultOperationResults backupVaultOperationResults() {
305334
if (this.backupVaultOperationResults == null) {

0 commit comments

Comments
 (0)