Skip to content

Commit 96065c4

Browse files
mgmt, upgrade features RP (Azure#23211)
* update features, also regen resources * add tests and add resourceProviderName and featureName in Feature * fix arm template link, as azure-quickstart-templates changed their folder structure
1 parent 3434ae4 commit 96065c4

28 files changed

+2246
-98
lines changed

sdk/resourcemanager/api-specs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
"dir": "azure-resourcemanager-resources",
167167
"source": "specification/resources/resource-manager/readme.md",
168168
"package": "com.azure.resourcemanager.resources",
169-
"args": "--tag=package-features-2015-12"
169+
"args": "--tag=package-features-2021-07"
170170
},
171171
"graphrbac": {
172172
"spec": "https://raw.githubusercontent.com/Azure/azure-sdk-for-java/main/sdk/resourcemanager",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Release History
22

33
## 2.7.0-beta.1 (Unreleased)
4+
45
### Dependency Updates
56

67
- Updated `api-version` to `2021-04-01`.

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

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

33
## 2.7.0-beta.1 (Unreleased)
44

5+
### Dependency Updates
6+
7+
- Updated `api-version` of features to `2021-07-01`.
8+
9+
### Features Added
10+
11+
- Added support for `resourceProviderName` and `featureName` in `Feature`.
512

613
## 2.6.0 (2021-06-18)
714

sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluent/FeatureClient.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/** The interface for FeatureClient class. */
1717
public interface FeatureClient {
1818
/**
19-
* Gets The ID of the target subscription.
19+
* Gets The Azure subscription ID.
2020
*
2121
* @return the subscriptionId value.
2222
*/
@@ -57,6 +57,13 @@ public interface FeatureClient {
5757
*/
5858
FeaturesClient getFeatures();
5959

60+
/**
61+
* Gets the SubscriptionFeatureRegistrationsClient object to access its operations.
62+
*
63+
* @return the SubscriptionFeatureRegistrationsClient object.
64+
*/
65+
SubscriptionFeatureRegistrationsClient getSubscriptionFeatureRegistrations();
66+
6067
/**
6168
* Lists all of the available Microsoft.Features REST API operations.
6269
*

sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluent/ResourceGroupsClient.java

Lines changed: 21 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -140,58 +140,53 @@ Response<ResourceGroupInner> createOrUpdateWithResponse(
140140
* its template deployments and currently stored operations.
141141
*
142142
* @param resourceGroupName The name of the resource group to delete. The name is case insensitive.
143-
* @param forceDeletionResourceTypes The resource types you want to force delete. Currently, only the following is
144-
* supported:
145-
* forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.
143+
* @param forceDeletionTypes The resource types you want to force delete. Currently, only the following is
144+
* supported: forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.
146145
* @throws IllegalArgumentException thrown if parameters fail the validation.
147146
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
148147
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
149148
* @return the completion.
150149
*/
151150
@ServiceMethod(returns = ReturnType.SINGLE)
152-
Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
153-
String resourceGroupName, String forceDeletionResourceTypes);
151+
Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String forceDeletionTypes);
154152

155153
/**
156154
* When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of
157155
* its template deployments and currently stored operations.
158156
*
159157
* @param resourceGroupName The name of the resource group to delete. The name is case insensitive.
160-
* @param forceDeletionResourceTypes The resource types you want to force delete. Currently, only the following is
161-
* supported:
162-
* forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.
158+
* @param forceDeletionTypes The resource types you want to force delete. Currently, only the following is
159+
* supported: forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.
163160
* @throws IllegalArgumentException thrown if parameters fail the validation.
164161
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
165162
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
166163
* @return the completion.
167164
*/
168165
@ServiceMethod(returns = ReturnType.SINGLE)
169-
PollerFlux<PollResult<Void>, Void> beginDeleteAsync(String resourceGroupName, String forceDeletionResourceTypes);
166+
PollerFlux<PollResult<Void>, Void> beginDeleteAsync(String resourceGroupName, String forceDeletionTypes);
170167

171168
/**
172169
* When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of
173170
* its template deployments and currently stored operations.
174171
*
175172
* @param resourceGroupName The name of the resource group to delete. The name is case insensitive.
176-
* @param forceDeletionResourceTypes The resource types you want to force delete. Currently, only the following is
177-
* supported:
178-
* forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.
173+
* @param forceDeletionTypes The resource types you want to force delete. Currently, only the following is
174+
* supported: forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.
179175
* @throws IllegalArgumentException thrown if parameters fail the validation.
180176
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
181177
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
182178
* @return the completion.
183179
*/
184180
@ServiceMethod(returns = ReturnType.SINGLE)
185-
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String forceDeletionResourceTypes);
181+
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String forceDeletionTypes);
186182

187183
/**
188184
* When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of
189185
* its template deployments and currently stored operations.
190186
*
191187
* @param resourceGroupName The name of the resource group to delete. The name is case insensitive.
192-
* @param forceDeletionResourceTypes The resource types you want to force delete. Currently, only the following is
193-
* supported:
194-
* forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.
188+
* @param forceDeletionTypes The resource types you want to force delete. Currently, only the following is
189+
* supported: forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.
195190
* @param context The context to associate with this operation.
196191
* @throws IllegalArgumentException thrown if parameters fail the validation.
197192
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -200,23 +195,22 @@ Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
200195
*/
201196
@ServiceMethod(returns = ReturnType.SINGLE)
202197
SyncPoller<PollResult<Void>, Void> beginDelete(
203-
String resourceGroupName, String forceDeletionResourceTypes, Context context);
198+
String resourceGroupName, String forceDeletionTypes, Context context);
204199

205200
/**
206201
* When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of
207202
* its template deployments and currently stored operations.
208203
*
209204
* @param resourceGroupName The name of the resource group to delete. The name is case insensitive.
210-
* @param forceDeletionResourceTypes The resource types you want to force delete. Currently, only the following is
211-
* supported:
212-
* forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.
205+
* @param forceDeletionTypes The resource types you want to force delete. Currently, only the following is
206+
* supported: forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.
213207
* @throws IllegalArgumentException thrown if parameters fail the validation.
214208
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
215209
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
216210
* @return the completion.
217211
*/
218212
@ServiceMethod(returns = ReturnType.SINGLE)
219-
Mono<Void> deleteAsync(String resourceGroupName, String forceDeletionResourceTypes);
213+
Mono<Void> deleteAsync(String resourceGroupName, String forceDeletionTypes);
220214

221215
/**
222216
* When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of
@@ -236,15 +230,14 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
236230
* its template deployments and currently stored operations.
237231
*
238232
* @param resourceGroupName The name of the resource group to delete. The name is case insensitive.
239-
* @param forceDeletionResourceTypes The resource types you want to force delete. Currently, only the following is
240-
* supported:
241-
* forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.
233+
* @param forceDeletionTypes The resource types you want to force delete. Currently, only the following is
234+
* supported: forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.
242235
* @throws IllegalArgumentException thrown if parameters fail the validation.
243236
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
244237
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
245238
*/
246239
@ServiceMethod(returns = ReturnType.SINGLE)
247-
void delete(String resourceGroupName, String forceDeletionResourceTypes);
240+
void delete(String resourceGroupName, String forceDeletionTypes);
248241

249242
/**
250243
* When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of
@@ -263,16 +256,15 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
263256
* its template deployments and currently stored operations.
264257
*
265258
* @param resourceGroupName The name of the resource group to delete. The name is case insensitive.
266-
* @param forceDeletionResourceTypes The resource types you want to force delete. Currently, only the following is
267-
* supported:
268-
* forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.
259+
* @param forceDeletionTypes The resource types you want to force delete. Currently, only the following is
260+
* supported: forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets.
269261
* @param context The context to associate with this operation.
270262
* @throws IllegalArgumentException thrown if parameters fail the validation.
271263
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
272264
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
273265
*/
274266
@ServiceMethod(returns = ReturnType.SINGLE)
275-
void delete(String resourceGroupName, String forceDeletionResourceTypes, Context context);
267+
void delete(String resourceGroupName, String forceDeletionTypes, Context context);
276268

277269
/**
278270
* Gets a resource group.

0 commit comments

Comments
 (0)