Skip to content

Commit d060eb9

Browse files
author
SDKAuto
committed
CodeGen from PR 20823 in Azure/azure-rest-api-specs
Merge b503351dcd921a9006e589736180b86a71603623 into 73ca52b1207e2fa5f506ba71754a97153c6fdb87
1 parent 1c3ba25 commit d060eb9

File tree

342 files changed

+13253
-3839
lines changed

Some content is hidden

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

342 files changed

+13253
-3839
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-09-29)
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-09. 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-09. 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: 596 additions & 86 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-09.</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: 195 additions & 18 deletions
Large diffs are not rendered by default.

sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesClient.java

Lines changed: 419 additions & 73 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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.dataprotection.fluent;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.http.rest.PagedIterable;
10+
import com.azure.core.util.Context;
11+
import com.azure.resourcemanager.dataprotection.fluent.models.BackupInstanceResourceInner;
12+
13+
/**
14+
* An instance of this class provides access to all the operations defined in BackupInstancesExtensionRoutingsClient.
15+
*/
16+
public interface BackupInstancesExtensionRoutingsClient {
17+
/**
18+
* Gets a list backup instances associated with a tracked resource.
19+
*
20+
* @param resourceId ARM path of the resource to be protected using Microsoft.DataProtection.
21+
* @throws IllegalArgumentException thrown if parameters fail the validation.
22+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
23+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
24+
* @return a list backup instances associated with a tracked resource as paginated response with {@link
25+
* PagedIterable}.
26+
*/
27+
@ServiceMethod(returns = ReturnType.COLLECTION)
28+
PagedIterable<BackupInstanceResourceInner> list(String resourceId);
29+
30+
/**
31+
* Gets a list backup instances associated with a tracked resource.
32+
*
33+
* @param resourceId ARM path of the resource to be protected using Microsoft.DataProtection.
34+
* @param context The context to associate with this operation.
35+
* @throws IllegalArgumentException thrown if parameters fail the validation.
36+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
37+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
38+
* @return a list backup instances associated with a tracked resource as paginated response with {@link
39+
* PagedIterable}.
40+
*/
41+
@ServiceMethod(returns = ReturnType.COLLECTION)
42+
PagedIterable<BackupInstanceResourceInner> list(String resourceId, Context context);
43+
}

sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupPoliciesClient.java

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,65 +16,65 @@ public interface BackupPoliciesClient {
1616
/**
1717
* Returns list of backup policies belonging to a backup vault.
1818
*
19-
* @param vaultName The name of the backup vault.
2019
* @param resourceGroupName The name of the resource group where the backup vault is present.
20+
* @param vaultName The name of the backup vault.
2121
* @throws IllegalArgumentException thrown if parameters fail the validation.
2222
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2323
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
24-
* @return baseBackupPolicyResourceList.
24+
* @return baseBackupPolicyResourceList as paginated response with {@link PagedIterable}.
2525
*/
2626
@ServiceMethod(returns = ReturnType.COLLECTION)
27-
PagedIterable<BaseBackupPolicyResourceInner> list(String vaultName, String resourceGroupName);
27+
PagedIterable<BaseBackupPolicyResourceInner> list(String resourceGroupName, String vaultName);
2828

2929
/**
3030
* Returns list of backup policies belonging to a backup vault.
3131
*
32-
* @param vaultName The name of the backup vault.
3332
* @param resourceGroupName The name of the resource group where the backup vault is present.
33+
* @param vaultName The name of the backup vault.
3434
* @param context The context to associate with this operation.
3535
* @throws IllegalArgumentException thrown if parameters fail the validation.
3636
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3737
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
38-
* @return baseBackupPolicyResourceList.
38+
* @return baseBackupPolicyResourceList as paginated response with {@link PagedIterable}.
3939
*/
4040
@ServiceMethod(returns = ReturnType.COLLECTION)
41-
PagedIterable<BaseBackupPolicyResourceInner> list(String vaultName, String resourceGroupName, Context context);
41+
PagedIterable<BaseBackupPolicyResourceInner> list(String resourceGroupName, String vaultName, Context context);
4242

4343
/**
4444
* Gets a backup policy belonging to a backup vault.
4545
*
46-
* @param vaultName The name of the backup vault.
4746
* @param resourceGroupName The name of the resource group where the backup vault is present.
47+
* @param vaultName The name of the backup vault.
4848
* @param backupPolicyName The backupPolicyName parameter.
4949
* @throws IllegalArgumentException thrown if parameters fail the validation.
5050
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
5151
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
5252
* @return a backup policy belonging to a backup vault.
5353
*/
5454
@ServiceMethod(returns = ReturnType.SINGLE)
55-
BaseBackupPolicyResourceInner get(String vaultName, String resourceGroupName, String backupPolicyName);
55+
BaseBackupPolicyResourceInner get(String resourceGroupName, String vaultName, String backupPolicyName);
5656

5757
/**
5858
* Gets a backup policy belonging to a backup vault.
5959
*
60-
* @param vaultName The name of the backup vault.
6160
* @param resourceGroupName The name of the resource group where the backup vault is present.
61+
* @param vaultName The name of the backup vault.
6262
* @param backupPolicyName The backupPolicyName parameter.
6363
* @param context The context to associate with this operation.
6464
* @throws IllegalArgumentException thrown if parameters fail the validation.
6565
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
6666
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
67-
* @return a backup policy belonging to a backup vault.
67+
* @return a backup policy belonging to a backup vault along with {@link Response}.
6868
*/
6969
@ServiceMethod(returns = ReturnType.SINGLE)
7070
Response<BaseBackupPolicyResourceInner> getWithResponse(
71-
String vaultName, String resourceGroupName, String backupPolicyName, Context context);
71+
String resourceGroupName, String vaultName, String backupPolicyName, Context context);
7272

7373
/**
7474
* Creates or Updates a backup policy belonging to a backup vault.
7575
*
76-
* @param vaultName The name of the backup vault.
7776
* @param resourceGroupName The name of the resource group where the backup vault is present.
77+
* @param vaultName The name of the backup vault.
7878
* @param backupPolicyName Name of the policy.
7979
* @param parameters Request body for operation.
8080
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -84,55 +84,55 @@ Response<BaseBackupPolicyResourceInner> getWithResponse(
8484
*/
8585
@ServiceMethod(returns = ReturnType.SINGLE)
8686
BaseBackupPolicyResourceInner createOrUpdate(
87-
String vaultName, String resourceGroupName, String backupPolicyName, BaseBackupPolicyResourceInner parameters);
87+
String resourceGroupName, String vaultName, String backupPolicyName, BaseBackupPolicyResourceInner parameters);
8888

8989
/**
9090
* Creates or Updates a backup policy belonging to a backup vault.
9191
*
92-
* @param vaultName The name of the backup vault.
9392
* @param resourceGroupName The name of the resource group where the backup vault is present.
93+
* @param vaultName The name of the backup vault.
9494
* @param backupPolicyName Name of the policy.
9595
* @param parameters Request body for operation.
9696
* @param context The context to associate with this operation.
9797
* @throws IllegalArgumentException thrown if parameters fail the validation.
9898
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
9999
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
100-
* @return baseBackupPolicyResource.
100+
* @return baseBackupPolicyResource along with {@link Response}.
101101
*/
102102
@ServiceMethod(returns = ReturnType.SINGLE)
103103
Response<BaseBackupPolicyResourceInner> createOrUpdateWithResponse(
104-
String vaultName,
105104
String resourceGroupName,
105+
String vaultName,
106106
String backupPolicyName,
107107
BaseBackupPolicyResourceInner parameters,
108108
Context context);
109109

110110
/**
111111
* Deletes a backup policy belonging to a backup vault.
112112
*
113-
* @param vaultName The name of the backup vault.
114113
* @param resourceGroupName The name of the resource group where the backup vault is present.
114+
* @param vaultName The name of the backup vault.
115115
* @param backupPolicyName The backupPolicyName parameter.
116116
* @throws IllegalArgumentException thrown if parameters fail the validation.
117117
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
118118
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
119119
*/
120120
@ServiceMethod(returns = ReturnType.SINGLE)
121-
void delete(String vaultName, String resourceGroupName, String backupPolicyName);
121+
void delete(String resourceGroupName, String vaultName, String backupPolicyName);
122122

123123
/**
124124
* Deletes a backup policy belonging to a backup vault.
125125
*
126-
* @param vaultName The name of the backup vault.
127126
* @param resourceGroupName The name of the resource group where the backup vault is present.
127+
* @param vaultName The name of the backup vault.
128128
* @param backupPolicyName The backupPolicyName parameter.
129129
* @param context The context to associate with this operation.
130130
* @throws IllegalArgumentException thrown if parameters fail the validation.
131131
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
132132
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
133-
* @return the response.
133+
* @return the {@link Response}.
134134
*/
135135
@ServiceMethod(returns = ReturnType.SINGLE)
136136
Response<Void> deleteWithResponse(
137-
String vaultName, String resourceGroupName, String backupPolicyName, Context context);
137+
String resourceGroupName, String vaultName, String backupPolicyName, Context context);
138138
}

sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultOperationResultsClient.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,24 @@
1313
/** An instance of this class provides access to all the operations defined in BackupVaultOperationResultsClient. */
1414
public interface BackupVaultOperationResultsClient {
1515
/**
16-
* @param vaultName The name of the backup vault.
16+
* The get operation.
17+
*
1718
* @param resourceGroupName The name of the resource group where the backup vault is present.
19+
* @param vaultName The name of the backup vault.
1820
* @param operationId The operationId parameter.
1921
* @throws IllegalArgumentException thrown if parameters fail the validation.
2022
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2123
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
2224
* @return backupVault Resource.
2325
*/
2426
@ServiceMethod(returns = ReturnType.SINGLE)
25-
BackupVaultResourceInner get(String vaultName, String resourceGroupName, String operationId);
27+
BackupVaultResourceInner get(String resourceGroupName, String vaultName, String operationId);
2628

2729
/**
28-
* @param vaultName The name of the backup vault.
30+
* The get operation.
31+
*
2932
* @param resourceGroupName The name of the resource group where the backup vault is present.
33+
* @param vaultName The name of the backup vault.
3034
* @param operationId The operationId parameter.
3135
* @param context The context to associate with this operation.
3236
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -36,5 +40,5 @@ public interface BackupVaultOperationResultsClient {
3640
*/
3741
@ServiceMethod(returns = ReturnType.SINGLE)
3842
BackupVaultOperationResultsGetResponse getWithResponse(
39-
String vaultName, String resourceGroupName, String operationId, Context context);
43+
String resourceGroupName, String vaultName, String operationId, Context context);
4044
}

0 commit comments

Comments
 (0)