Skip to content

Commit 1dc2037

Browse files
authored
mgmt upgrade network and compute (Azure#18386)
* update network spec * generate package-2020-07 * fix compile errors * update changelog * update session records * update compute spec * update compute spec for swagger client name changes * regenerate code * switch to package-2020-06-30 * regenerate code * fix compile errors * update session records * update compute changelog * update revapi for network * update revapi for compute * update revapi for azure-resourcemanager * update changelog
1 parent 28c948f commit 1dc2037

File tree

729 files changed

+1576670
-1175300
lines changed

Some content is hidden

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

729 files changed

+1576670
-1175300
lines changed

sdk/resourcemanager/api-specs.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"dir": "azure-resourcemanager-compute",
7777
"source": "specification/compute/resource-manager/readme.md",
7878
"package": "com.azure.resourcemanager.compute",
79-
"args": "--payload-flattening-threshold=1 --tag=package-2019-12-01"
79+
"args": "--payload-flattening-threshold=1 --tag=package-2020-06-30 --rename-model=UserAssignedIdentitiesValue:VirtualMachineIdentityUserAssignedIdentities,VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue:VirtualMachineScaleSetIdentityUserAssignedIdentities"
8080
},
8181
"consumption": {
8282
"dir": "azure-resourcemanager-consumption",
@@ -212,7 +212,7 @@
212212
"dir": "azure-resourcemanager-network",
213213
"source": "specification/network/resource-manager/readme.md",
214214
"package": "com.azure.resourcemanager.network",
215-
"args": "--payload-flattening-threshold=1 --tag=package-2020-05 --add-inner=ApplicationGatewayIpConfiguration,ApplicationGatewayPathRule,ApplicationGatewayProbe,ApplicationGatewayRedirectConfiguration,ApplicationGatewayRequestRoutingRule,ApplicationGatewaySslCertificate,ApplicationGatewayUrlPathMap,ApplicationGatewayAuthenticationCertificate,VirtualNetworkGatewayIpConfiguration,ConnectionMonitor,PacketCapture"
215+
"args": "--payload-flattening-threshold=1 --tag=package-2020-07 --add-inner=ApplicationGatewayIpConfiguration,ApplicationGatewayPathRule,ApplicationGatewayProbe,ApplicationGatewayRedirectConfiguration,ApplicationGatewayRequestRoutingRule,ApplicationGatewaySslCertificate,ApplicationGatewayUrlPathMap,ApplicationGatewayAuthenticationCertificate,VirtualNetworkGatewayIpConfiguration,ConnectionMonitor,PacketCapture"
216216
},
217217
"notificationhubs": {
218218
"dir": "azure-resourcemanager-notificationhubs",

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

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

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

5+
- Updated `api-version` to `2020-06-01`
56

67
## 2.1.0 (2020-11-24)
78

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@
221221
<item>
222222
<code>java.method.addedToInterface</code>
223223
</item>
224+
<item>
225+
<code>java.method.returnTypeChangedCovariantly</code>
226+
</item>
224227
<item>
225228
<regex>true</regex>
226229
<code>.*</code>

sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/AvailabilitySetsClient.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -312,25 +312,25 @@ Response<AvailabilitySetInner> getByResourceGroupWithResponse(
312312
/**
313313
* Lists all availability sets in a subscription.
314314
*
315-
* @param expand The expand expression to apply to the operation. Allowed values are 'instanceView'.
316-
* @param context The context to associate with this operation.
317-
* @throws IllegalArgumentException thrown if parameters fail the validation.
318315
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
319316
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
320317
* @return the List Availability Set operation response.
321318
*/
322319
@ServiceMethod(returns = ReturnType.COLLECTION)
323-
PagedIterable<AvailabilitySetInner> list(String expand, Context context);
320+
PagedIterable<AvailabilitySetInner> list();
324321

325322
/**
326323
* Lists all availability sets in a subscription.
327324
*
325+
* @param expand The expand expression to apply to the operation. Allowed values are 'instanceView'.
326+
* @param context The context to associate with this operation.
327+
* @throws IllegalArgumentException thrown if parameters fail the validation.
328328
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
329329
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
330330
* @return the List Availability Set operation response.
331331
*/
332332
@ServiceMethod(returns = ReturnType.COLLECTION)
333-
PagedIterable<AvailabilitySetInner> list();
333+
PagedIterable<AvailabilitySetInner> list(String expand, Context context);
334334

335335
/**
336336
* Lists all availability sets in a resource group.

sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/ComputeManagementClient.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,13 @@ public interface ComputeManagementClient {
178178
*/
179179
VirtualMachineRunCommandsClient getVirtualMachineRunCommands();
180180

181+
/**
182+
* Gets the VirtualMachineScaleSetVMRunCommandsClient object to access its operations.
183+
*
184+
* @return the VirtualMachineScaleSetVMRunCommandsClient object.
185+
*/
186+
VirtualMachineScaleSetVMRunCommandsClient getVirtualMachineScaleSetVMRunCommands();
187+
181188
/**
182189
* Gets the ResourceSkusClient object to access its operations.
183190
*
@@ -206,6 +213,13 @@ public interface ComputeManagementClient {
206213
*/
207214
DiskEncryptionSetsClient getDiskEncryptionSets();
208215

216+
/**
217+
* Gets the DiskAccessesClient object to access its operations.
218+
*
219+
* @return the DiskAccessesClient object.
220+
*/
221+
DiskAccessesClient getDiskAccesses();
222+
209223
/**
210224
* Gets the GalleriesClient object to access its operations.
211225
*

sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/DedicatedHostGroupsClient.java

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import com.azure.core.util.Context;
1313
import com.azure.resourcemanager.compute.fluent.models.DedicatedHostGroupInner;
1414
import com.azure.resourcemanager.compute.models.DedicatedHostGroupUpdate;
15+
import com.azure.resourcemanager.compute.models.InstanceViewTypes;
1516
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete;
1617
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet;
1718
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing;
@@ -216,14 +217,32 @@ Response<DedicatedHostGroupInner> updateWithResponse(
216217
*
217218
* @param resourceGroupName The name of the resource group.
218219
* @param hostGroupName The name of the dedicated host group.
220+
* @param expand The expand expression to apply on the operation. The response shows the list of instance view of
221+
* the dedicated hosts under the dedicated host group.
219222
* @throws IllegalArgumentException thrown if parameters fail the validation.
220223
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
221224
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
222225
* @return specifies information about the dedicated host group that the dedicated hosts should be assigned to.
223226
*/
224227
@ServiceMethod(returns = ReturnType.SINGLE)
225228
Mono<Response<DedicatedHostGroupInner>> getByResourceGroupWithResponseAsync(
226-
String resourceGroupName, String hostGroupName);
229+
String resourceGroupName, String hostGroupName, InstanceViewTypes expand);
230+
231+
/**
232+
* Retrieves information about a dedicated host group.
233+
*
234+
* @param resourceGroupName The name of the resource group.
235+
* @param hostGroupName The name of the dedicated host group.
236+
* @param expand The expand expression to apply on the operation. The response shows the list of instance view of
237+
* the dedicated hosts under the dedicated host group.
238+
* @throws IllegalArgumentException thrown if parameters fail the validation.
239+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
240+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
241+
* @return specifies information about the dedicated host group that the dedicated hosts should be assigned to.
242+
*/
243+
@ServiceMethod(returns = ReturnType.SINGLE)
244+
Mono<DedicatedHostGroupInner> getByResourceGroupAsync(
245+
String resourceGroupName, String hostGroupName, InstanceViewTypes expand);
227246

228247
/**
229248
* Retrieves information about a dedicated host group.
@@ -256,6 +275,8 @@ Mono<Response<DedicatedHostGroupInner>> getByResourceGroupWithResponseAsync(
256275
*
257276
* @param resourceGroupName The name of the resource group.
258277
* @param hostGroupName The name of the dedicated host group.
278+
* @param expand The expand expression to apply on the operation. The response shows the list of instance view of
279+
* the dedicated hosts under the dedicated host group.
259280
* @param context The context to associate with this operation.
260281
* @throws IllegalArgumentException thrown if parameters fail the validation.
261282
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -264,7 +285,7 @@ Mono<Response<DedicatedHostGroupInner>> getByResourceGroupWithResponseAsync(
264285
*/
265286
@ServiceMethod(returns = ReturnType.SINGLE)
266287
Response<DedicatedHostGroupInner> getByResourceGroupWithResponse(
267-
String resourceGroupName, String hostGroupName, Context context);
288+
String resourceGroupName, String hostGroupName, InstanceViewTypes expand, Context context);
268289

269290
/**
270291
* Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response

0 commit comments

Comments
 (0)