Skip to content

Commit 6ee2794

Browse files
authored
mgmt, local generation for Compute GalleryRP 2024-03-03 (#43238)
* Code Generation * Change log * Record session
1 parent b47a337 commit 6ee2794

File tree

217 files changed

+11086
-921
lines changed

Some content is hidden

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

217 files changed

+11086
-921
lines changed

sdk/resourcemanager/api-specs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"dir": "azure-resourcemanager-compute",
4141
"source": "specification/compute/resource-manager/readme.md",
4242
"package": "com.azure.resourcemanager.compute",
43-
"args": "--tag=package-2024-07-01 --modelerfour.lenient-model-deduplication=true --rename-model=UserAssignedIdentitiesValue:VirtualMachineIdentityUserAssignedIdentities,VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue:VirtualMachineScaleSetIdentityUserAssignedIdentities --preserve-model=AvailabilitySetSkuTypes --remove-inner=StorageProfile"
43+
"args": "--tag=package-2024-10-01 --modelerfour.lenient-model-deduplication=true --rename-model=UserAssignedIdentitiesValue:VirtualMachineIdentityUserAssignedIdentities,VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue:VirtualMachineScaleSetIdentityUserAssignedIdentities --preserve-model=AvailabilitySetSkuTypes --remove-inner=StorageProfile"
4444
},
4545
"compute-hybrid": {
4646
"dir": "../resourcemanagerhybrid/azure-resourcemanager-compute",

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22

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

5-
### Features Added
6-
7-
### Breaking Changes
5+
### Other Changes
86

9-
### Bugs Fixed
7+
#### Dependency Updates
108

11-
### Other Changes
9+
- Updated `api-version` of GalleryRP to `2024-03-03`.
1210

1311
## 2.45.0 (2024-11-28)
1412

sdk/resourcemanager/azure-resourcemanager-compute/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "java",
44
"TagPrefix": "java/resourcemanager/azure-resourcemanager-compute",
5-
"Tag": "java/resourcemanager/azure-resourcemanager-compute_83a099fdb2"
5+
"Tag": "java/resourcemanager/azure-resourcemanager-compute_7fa2d65716"
66
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ Response<AvailabilitySetInner> getByResourceGroupWithResponse(String resourceGro
263263
/**
264264
* Lists all availability sets in a subscription.
265265
*
266-
* @param expand The expand expression to apply to the operation. Allowed values are 'instanceView'.
266+
* @param expand The expand expression to apply to the operation. Allowed values are 'virtualMachines/$ref'.
267267
* @throws IllegalArgumentException thrown if parameters fail the validation.
268268
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
269269
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -295,7 +295,7 @@ Response<AvailabilitySetInner> getByResourceGroupWithResponse(String resourceGro
295295
/**
296296
* Lists all availability sets in a subscription.
297297
*
298-
* @param expand The expand expression to apply to the operation. Allowed values are 'instanceView'.
298+
* @param expand The expand expression to apply to the operation. Allowed values are 'virtualMachines/$ref'.
299299
* @param context The context to associate with this operation.
300300
* @throws IllegalArgumentException thrown if parameters fail the validation.
301301
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,34 @@ public interface ComputeManagementClient {
299299
*/
300300
GalleryApplicationVersionsClient getGalleryApplicationVersions();
301301

302+
/**
303+
* Gets the SoftDeletedResourcesClient object to access its operations.
304+
*
305+
* @return the SoftDeletedResourcesClient object.
306+
*/
307+
SoftDeletedResourcesClient getSoftDeletedResources();
308+
302309
/**
303310
* Gets the GallerySharingProfilesClient object to access its operations.
304311
*
305312
* @return the GallerySharingProfilesClient object.
306313
*/
307314
GallerySharingProfilesClient getGallerySharingProfiles();
308315

316+
/**
317+
* Gets the GalleryInVMAccessControlProfilesClient object to access its operations.
318+
*
319+
* @return the GalleryInVMAccessControlProfilesClient object.
320+
*/
321+
GalleryInVMAccessControlProfilesClient getGalleryInVMAccessControlProfiles();
322+
323+
/**
324+
* Gets the GalleryInVMAccessControlProfileVersionsClient object to access its operations.
325+
*
326+
* @return the GalleryInVMAccessControlProfileVersionsClient object.
327+
*/
328+
GalleryInVMAccessControlProfileVersionsClient getGalleryInVMAccessControlProfileVersions();
329+
309330
/**
310331
* Gets the SharedGalleriesClient object to access its operations.
311332
*

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

Lines changed: 613 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 530 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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.compute.fluent;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.http.rest.PagedFlux;
10+
import com.azure.core.http.rest.PagedIterable;
11+
import com.azure.core.util.Context;
12+
import com.azure.resourcemanager.compute.fluent.models.GallerySoftDeletedResourceInner;
13+
14+
/**
15+
* An instance of this class provides access to all the operations defined in SoftDeletedResourcesClient.
16+
*/
17+
public interface SoftDeletedResourcesClient {
18+
/**
19+
* List soft-deleted resources of an artifact in the gallery, such as soft-deleted gallery image version of an
20+
* image.
21+
*
22+
* @param resourceGroupName The name of the resource group.
23+
* @param galleryName The name of the Gallery in which the soft-deleted resources resides.
24+
* @param artifactType The type of the artifact to be listed, such as gallery image version.
25+
* @param artifactName The artifact name to be listed. If artifact type is Images, then the artifact name should be
26+
* the gallery image name.
27+
* @throws IllegalArgumentException thrown if parameters fail the validation.
28+
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
29+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
30+
* @return the List Soft-deleted Resources operation response as paginated response with {@link PagedFlux}.
31+
*/
32+
@ServiceMethod(returns = ReturnType.COLLECTION)
33+
PagedFlux<GallerySoftDeletedResourceInner> listByArtifactNameAsync(String resourceGroupName, String galleryName,
34+
String artifactType, String artifactName);
35+
36+
/**
37+
* List soft-deleted resources of an artifact in the gallery, such as soft-deleted gallery image version of an
38+
* image.
39+
*
40+
* @param resourceGroupName The name of the resource group.
41+
* @param galleryName The name of the Gallery in which the soft-deleted resources resides.
42+
* @param artifactType The type of the artifact to be listed, such as gallery image version.
43+
* @param artifactName The artifact name to be listed. If artifact type is Images, then the artifact name should be
44+
* the gallery image name.
45+
* @throws IllegalArgumentException thrown if parameters fail the validation.
46+
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
47+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
48+
* @return the List Soft-deleted Resources operation response as paginated response with {@link PagedIterable}.
49+
*/
50+
@ServiceMethod(returns = ReturnType.COLLECTION)
51+
PagedIterable<GallerySoftDeletedResourceInner> listByArtifactName(String resourceGroupName, String galleryName,
52+
String artifactType, String artifactName);
53+
54+
/**
55+
* List soft-deleted resources of an artifact in the gallery, such as soft-deleted gallery image version of an
56+
* image.
57+
*
58+
* @param resourceGroupName The name of the resource group.
59+
* @param galleryName The name of the Gallery in which the soft-deleted resources resides.
60+
* @param artifactType The type of the artifact to be listed, such as gallery image version.
61+
* @param artifactName The artifact name to be listed. If artifact type is Images, then the artifact name should be
62+
* the gallery image name.
63+
* @param context The context to associate with this operation.
64+
* @throws IllegalArgumentException thrown if parameters fail the validation.
65+
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
66+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
67+
* @return the List Soft-deleted Resources operation response as paginated response with {@link PagedIterable}.
68+
*/
69+
@ServiceMethod(returns = ReturnType.COLLECTION)
70+
PagedIterable<GallerySoftDeletedResourceInner> listByArtifactName(String resourceGroupName, String galleryName,
71+
String artifactType, String artifactName, Context context);
72+
}

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

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,8 @@ PagedIterable<VirtualMachineScaleSetVMInner> list(String resourceGroupName, Stri
988988

989989
/**
990990
* Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting
991-
* charged for the resources. Instead, use deallocate to release resources and avoid charges.
991+
* charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this
992+
* operation is not allowed on a virtual machine that is being deallocated or already has been deallocated.
992993
*
993994
* @param resourceGroupName The name of the resource group.
994995
* @param vmScaleSetName The name of the VM scale set.
@@ -1006,7 +1007,8 @@ Mono<Response<Flux<ByteBuffer>>> powerOffWithResponseAsync(String resourceGroupN
10061007

10071008
/**
10081009
* Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting
1009-
* charged for the resources. Instead, use deallocate to release resources and avoid charges.
1010+
* charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this
1011+
* operation is not allowed on a virtual machine that is being deallocated or already has been deallocated.
10101012
*
10111013
* @param resourceGroupName The name of the resource group.
10121014
* @param vmScaleSetName The name of the VM scale set.
@@ -1024,7 +1026,8 @@ PollerFlux<PollResult<Void>, Void> beginPowerOffAsync(String resourceGroupName,
10241026

10251027
/**
10261028
* Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting
1027-
* charged for the resources. Instead, use deallocate to release resources and avoid charges.
1029+
* charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this
1030+
* operation is not allowed on a virtual machine that is being deallocated or already has been deallocated.
10281031
*
10291032
* @param resourceGroupName The name of the resource group.
10301033
* @param vmScaleSetName The name of the VM scale set.
@@ -1040,7 +1043,8 @@ PollerFlux<PollResult<Void>, Void> beginPowerOffAsync(String resourceGroupName,
10401043

10411044
/**
10421045
* Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting
1043-
* charged for the resources. Instead, use deallocate to release resources and avoid charges.
1046+
* charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this
1047+
* operation is not allowed on a virtual machine that is being deallocated or already has been deallocated.
10441048
*
10451049
* @param resourceGroupName The name of the resource group.
10461050
* @param vmScaleSetName The name of the VM scale set.
@@ -1056,7 +1060,8 @@ SyncPoller<PollResult<Void>, Void> beginPowerOff(String resourceGroupName, Strin
10561060

10571061
/**
10581062
* Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting
1059-
* charged for the resources. Instead, use deallocate to release resources and avoid charges.
1063+
* charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this
1064+
* operation is not allowed on a virtual machine that is being deallocated or already has been deallocated.
10601065
*
10611066
* @param resourceGroupName The name of the resource group.
10621067
* @param vmScaleSetName The name of the VM scale set.
@@ -1075,7 +1080,8 @@ SyncPoller<PollResult<Void>, Void> beginPowerOff(String resourceGroupName, Strin
10751080

10761081
/**
10771082
* Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting
1078-
* charged for the resources. Instead, use deallocate to release resources and avoid charges.
1083+
* charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this
1084+
* operation is not allowed on a virtual machine that is being deallocated or already has been deallocated.
10791085
*
10801086
* @param resourceGroupName The name of the resource group.
10811087
* @param vmScaleSetName The name of the VM scale set.
@@ -1092,7 +1098,8 @@ SyncPoller<PollResult<Void>, Void> beginPowerOff(String resourceGroupName, Strin
10921098

10931099
/**
10941100
* Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting
1095-
* charged for the resources. Instead, use deallocate to release resources and avoid charges.
1101+
* charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this
1102+
* operation is not allowed on a virtual machine that is being deallocated or already has been deallocated.
10961103
*
10971104
* @param resourceGroupName The name of the resource group.
10981105
* @param vmScaleSetName The name of the VM scale set.
@@ -1107,7 +1114,8 @@ SyncPoller<PollResult<Void>, Void> beginPowerOff(String resourceGroupName, Strin
11071114

11081115
/**
11091116
* Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting
1110-
* charged for the resources. Instead, use deallocate to release resources and avoid charges.
1117+
* charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this
1118+
* operation is not allowed on a virtual machine that is being deallocated or already has been deallocated.
11111119
*
11121120
* @param resourceGroupName The name of the resource group.
11131121
* @param vmScaleSetName The name of the VM scale set.
@@ -1121,7 +1129,8 @@ SyncPoller<PollResult<Void>, Void> beginPowerOff(String resourceGroupName, Strin
11211129

11221130
/**
11231131
* Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting
1124-
* charged for the resources. Instead, use deallocate to release resources and avoid charges.
1132+
* charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this
1133+
* operation is not allowed on a virtual machine that is being deallocated or already has been deallocated.
11251134
*
11261135
* @param resourceGroupName The name of the resource group.
11271136
* @param vmScaleSetName The name of the VM scale set.

0 commit comments

Comments
 (0)