Skip to content

Commit

Permalink
mgmt, local generation for Compute GalleryRP 2024-03-03 (Azure#43238)
Browse files Browse the repository at this point in the history
* Code Generation

* Change log

* Record session
  • Loading branch information
v-hongli1 authored Dec 13, 2024
1 parent b47a337 commit 6ee2794
Show file tree
Hide file tree
Showing 217 changed files with 11,086 additions and 921 deletions.
2 changes: 1 addition & 1 deletion sdk/resourcemanager/api-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"dir": "azure-resourcemanager-compute",
"source": "specification/compute/resource-manager/readme.md",
"package": "com.azure.resourcemanager.compute",
"args": "--tag=package-2024-07-01 --modelerfour.lenient-model-deduplication=true --rename-model=UserAssignedIdentitiesValue:VirtualMachineIdentityUserAssignedIdentities,VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue:VirtualMachineScaleSetIdentityUserAssignedIdentities --preserve-model=AvailabilitySetSkuTypes --remove-inner=StorageProfile"
"args": "--tag=package-2024-10-01 --modelerfour.lenient-model-deduplication=true --rename-model=UserAssignedIdentitiesValue:VirtualMachineIdentityUserAssignedIdentities,VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue:VirtualMachineScaleSetIdentityUserAssignedIdentities --preserve-model=AvailabilitySetSkuTypes --remove-inner=StorageProfile"
},
"compute-hybrid": {
"dir": "../resourcemanagerhybrid/azure-resourcemanager-compute",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

## 2.46.0-beta.1 (Unreleased)

### Features Added

### Breaking Changes
### Other Changes

### Bugs Fixed
#### Dependency Updates

### Other Changes
- Updated `api-version` of GalleryRP to `2024-03-03`.

## 2.45.0 (2024-11-28)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "java",
"TagPrefix": "java/resourcemanager/azure-resourcemanager-compute",
"Tag": "java/resourcemanager/azure-resourcemanager-compute_83a099fdb2"
"Tag": "java/resourcemanager/azure-resourcemanager-compute_7fa2d65716"
}
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ Response<AvailabilitySetInner> getByResourceGroupWithResponse(String resourceGro
/**
* Lists all availability sets in a subscription.
*
* @param expand The expand expression to apply to the operation. Allowed values are 'instanceView'.
* @param expand The expand expression to apply to the operation. Allowed values are 'virtualMachines/$ref'.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
Expand Down Expand Up @@ -295,7 +295,7 @@ Response<AvailabilitySetInner> getByResourceGroupWithResponse(String resourceGro
/**
* Lists all availability sets in a subscription.
*
* @param expand The expand expression to apply to the operation. Allowed values are 'instanceView'.
* @param expand The expand expression to apply to the operation. Allowed values are 'virtualMachines/$ref'.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,13 +299,34 @@ public interface ComputeManagementClient {
*/
GalleryApplicationVersionsClient getGalleryApplicationVersions();

/**
* Gets the SoftDeletedResourcesClient object to access its operations.
*
* @return the SoftDeletedResourcesClient object.
*/
SoftDeletedResourcesClient getSoftDeletedResources();

/**
* Gets the GallerySharingProfilesClient object to access its operations.
*
* @return the GallerySharingProfilesClient object.
*/
GallerySharingProfilesClient getGallerySharingProfiles();

/**
* Gets the GalleryInVMAccessControlProfilesClient object to access its operations.
*
* @return the GalleryInVMAccessControlProfilesClient object.
*/
GalleryInVMAccessControlProfilesClient getGalleryInVMAccessControlProfiles();

/**
* Gets the GalleryInVMAccessControlProfileVersionsClient object to access its operations.
*
* @return the GalleryInVMAccessControlProfileVersionsClient object.
*/
GalleryInVMAccessControlProfileVersionsClient getGalleryInVMAccessControlProfileVersions();

/**
* Gets the SharedGalleriesClient object to access its operations.
*
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.compute.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedFlux;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
import com.azure.resourcemanager.compute.fluent.models.GallerySoftDeletedResourceInner;

/**
* An instance of this class provides access to all the operations defined in SoftDeletedResourcesClient.
*/
public interface SoftDeletedResourcesClient {
/**
* List soft-deleted resources of an artifact in the gallery, such as soft-deleted gallery image version of an
* image.
*
* @param resourceGroupName The name of the resource group.
* @param galleryName The name of the Gallery in which the soft-deleted resources resides.
* @param artifactType The type of the artifact to be listed, such as gallery image version.
* @param artifactName The artifact name to be listed. If artifact type is Images, then the artifact name should be
* the gallery image name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List Soft-deleted Resources operation response as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux<GallerySoftDeletedResourceInner> listByArtifactNameAsync(String resourceGroupName, String galleryName,
String artifactType, String artifactName);

/**
* List soft-deleted resources of an artifact in the gallery, such as soft-deleted gallery image version of an
* image.
*
* @param resourceGroupName The name of the resource group.
* @param galleryName The name of the Gallery in which the soft-deleted resources resides.
* @param artifactType The type of the artifact to be listed, such as gallery image version.
* @param artifactName The artifact name to be listed. If artifact type is Images, then the artifact name should be
* the gallery image name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List Soft-deleted Resources operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<GallerySoftDeletedResourceInner> listByArtifactName(String resourceGroupName, String galleryName,
String artifactType, String artifactName);

/**
* List soft-deleted resources of an artifact in the gallery, such as soft-deleted gallery image version of an
* image.
*
* @param resourceGroupName The name of the resource group.
* @param galleryName The name of the Gallery in which the soft-deleted resources resides.
* @param artifactType The type of the artifact to be listed, such as gallery image version.
* @param artifactName The artifact name to be listed. If artifact type is Images, then the artifact name should be
* the gallery image name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List Soft-deleted Resources operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<GallerySoftDeletedResourceInner> listByArtifactName(String resourceGroupName, String galleryName,
String artifactType, String artifactName, Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,8 @@ PagedIterable<VirtualMachineScaleSetVMInner> list(String resourceGroupName, Stri

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

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

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

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

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

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

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

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

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

0 comments on commit 6ee2794

Please sign in to comment.