Skip to content

Commit

Permalink
mgmt, upgrade compute (Gallery) (Azure#31322)
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft authored Nov 17, 2022
1 parent 75f7a64 commit 1c6b5e7
Show file tree
Hide file tree
Showing 630 changed files with 7,307 additions and 5,112 deletions.
57 changes: 57 additions & 0 deletions eng/code-quality-reports/src/main/resources/revapi/revapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,63 @@
"code": "java.method.numberOfParametersChanged",
"new": "method void com.azure.spring.cloud.autoconfigure.aadb2c.AadB2cAutoConfiguration::<init>(org.springframework.boot.web.client.RestTemplateBuilder)",
"justification": "Bean configuration will not be used by customer in java code."
},
{
"ignore": true,
"code": "java.method.removed",
"old": "method java.lang.String com.azure.resourcemanager.compute.models.GalleryArtifactVersionSource::uri()",
"justification": "Non-functional property removed by backend."
},
{
"ignore": true,
"code": "java.method.removed",
"old": "method com.azure.resourcemanager.compute.models.GalleryArtifactVersionSource com.azure.resourcemanager.compute.models.GalleryArtifactVersionSource::withUri(java.lang.String)",
"justification": "Non-functional property removed by backend."
},
{
"ignore": true,
"code": "java.method.returnTypeChangedCovariantly",
"old": "method com.azure.resourcemanager.compute.models.GalleryArtifactVersionSource com.azure.resourcemanager.compute.models.GalleryDiskImage::source() @ com.azure.resourcemanager.compute.models.GalleryDataDiskImage",
"new": "method com.azure.resourcemanager.compute.models.GalleryDiskImageSource com.azure.resourcemanager.compute.models.GalleryDiskImage::source() @ com.azure.resourcemanager.compute.models.GalleryDataDiskImage",
"justification": "Type of property changed to its subclass by backend. Getter returns a subclass of previous type."
},
{
"ignore": true,
"code": "java.method.parameterTypeChanged",
"old": "parameter com.azure.resourcemanager.compute.models.GalleryDataDiskImage com.azure.resourcemanager.compute.models.GalleryDataDiskImage::withSource(===com.azure.resourcemanager.compute.models.GalleryArtifactVersionSource===)",
"new": "parameter com.azure.resourcemanager.compute.models.GalleryDataDiskImage com.azure.resourcemanager.compute.models.GalleryDataDiskImage::withSource(===com.azure.resourcemanager.compute.models.GalleryDiskImageSource===)",
"parameterIndex": "0",
"justification": "Type of property changed to its subclass by backend. User will not access the setter in convenience API."
},
{
"ignore": true,
"code": "java.method.returnTypeChangedCovariantly",
"old": "method com.azure.resourcemanager.compute.models.GalleryArtifactVersionSource com.azure.resourcemanager.compute.models.GalleryImageVersionStorageProfile::source()",
"new": "method com.azure.resourcemanager.compute.models.GalleryArtifactVersionFullSource com.azure.resourcemanager.compute.models.GalleryImageVersionStorageProfile::source()",
"justification": "Type of property changed to its subclass by backend. Getter returns a subclass of previous type."
},
{
"ignore": true,
"code": "java.method.parameterTypeChanged",
"old": "parameter com.azure.resourcemanager.compute.models.GalleryImageVersionStorageProfile com.azure.resourcemanager.compute.models.GalleryImageVersionStorageProfile::withSource(===com.azure.resourcemanager.compute.models.GalleryArtifactVersionSource===)",
"new": "parameter com.azure.resourcemanager.compute.models.GalleryImageVersionStorageProfile com.azure.resourcemanager.compute.models.GalleryImageVersionStorageProfile::withSource(===com.azure.resourcemanager.compute.models.GalleryArtifactVersionFullSource===)",
"parameterIndex": "0",
"justification": "Type of property changed to its subclass by backend. User will not access the setter in convenience API."
},
{
"ignore": true,
"code": "java.method.returnTypeChangedCovariantly",
"old": "method com.azure.resourcemanager.compute.models.GalleryArtifactVersionSource com.azure.resourcemanager.compute.models.GalleryDiskImage::source() @ com.azure.resourcemanager.compute.models.GalleryOSDiskImage",
"new": "method com.azure.resourcemanager.compute.models.GalleryDiskImageSource com.azure.resourcemanager.compute.models.GalleryDiskImage::source() @ com.azure.resourcemanager.compute.models.GalleryOSDiskImage",
"justification": "Type of property changed to its subclass by backend. Getter returns a subclass of previous type."
},
{
"ignore": true,
"code": "java.method.parameterTypeChanged",
"old": "parameter com.azure.resourcemanager.compute.models.GalleryOSDiskImage com.azure.resourcemanager.compute.models.GalleryOSDiskImage::withSource(===com.azure.resourcemanager.compute.models.GalleryArtifactVersionSource===)",
"new": "parameter com.azure.resourcemanager.compute.models.GalleryOSDiskImage com.azure.resourcemanager.compute.models.GalleryOSDiskImage::withSource(===com.azure.resourcemanager.compute.models.GalleryDiskImageSource===)",
"parameterIndex": "0",
"justification": "Type of property changed to its subclass by backend. User will not access the setter in convenience API."
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/resourcemanager/api-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"dir": "azure-resourcemanager-compute",
"source": "specification/compute/resource-manager/readme.md",
"package": "com.azure.resourcemanager.compute",
"args": "--tag=package-2022-08-01 --rename-model=UserAssignedIdentitiesValue:VirtualMachineIdentityUserAssignedIdentities,VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue:VirtualMachineScaleSetIdentityUserAssignedIdentities --preserve-model=AvailabilitySetSkuTypes"
"args": "--tag=package-2022-03-03 --rename-model=UserAssignedIdentitiesValue:VirtualMachineIdentityUserAssignedIdentities,VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue:VirtualMachineScaleSetIdentityUserAssignedIdentities --preserve-model=AvailabilitySetSkuTypes"
},
"compute-hybrid": {
"dir": "../resourcemanagerhybrid/azure-resourcemanager-compute",
Expand Down
12 changes: 11 additions & 1 deletion sdk/resourcemanager/azure-resourcemanager-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,20 @@

- Supported `withCopyStart` method in `Snapshot` for copying incremental snapshot from incremental snapshot.
- Supported `awaitCopyStartCompletion` and `awaitCopyStartCompletionAsync` method in `Snapshot`.
- Supported `copyCompletionPercent` and `copyCompletionError` method in `Snapshot` for retrieving `CopyStart` progress.
- Supported `copyCompletionPercent` and `copyCompletionError` method in `Snapshot` for retrieving `CopyStart` progress.
- Supported `withTrustedLaunch`, `withSecureBoot` and `withVTpm` methods in `VirtualMachine`.
- Supported `UBUNTU_SERVER_18_04_LTS_GEN2`, `UBUNTU_SERVER_20_04_LTS` and `UBUNTU_SERVER_20_04_LTS_GEN2` in `KnownLinuxVirtualMachineImage`.

### Breaking Changes

- Property `uri` removed from `GalleryArtifactVersionSource`. This property was non-functional.

### Other Changes

#### Dependency Updates

- Updated Gallery to `2022-03-03`.

## 2.20.0 (2022-10-26)

### Bugs Fixed
Expand Down
1 change: 1 addition & 0 deletions sdk/resourcemanager/azure-resourcemanager-compute/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@

--add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED
</javaModulesSurefireArgLine>
<revapi.skip>true</revapi.skip>
</properties>

<developers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,31 +61,31 @@ Mono<AvailabilitySetInner> createOrUpdateAsync(
* @param resourceGroupName The name of the resource group.
* @param availabilitySetName The name of the availability set.
* @param parameters Parameters supplied to the Create Availability Set operation.
* @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 specifies information about the availability set that the virtual machine should be assigned to.
* @return specifies information about the availability set that the virtual machine should be assigned to along
* with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AvailabilitySetInner createOrUpdate(
String resourceGroupName, String availabilitySetName, AvailabilitySetInner parameters);
Response<AvailabilitySetInner> createOrUpdateWithResponse(
String resourceGroupName, String availabilitySetName, AvailabilitySetInner parameters, Context context);

/**
* Create or update an availability set.
*
* @param resourceGroupName The name of the resource group.
* @param availabilitySetName The name of the availability set.
* @param parameters Parameters supplied to the Create Availability Set operation.
* @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 specifies information about the availability set that the virtual machine should be assigned to along
* with {@link Response}.
* @return specifies information about the availability set that the virtual machine should be assigned to.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<AvailabilitySetInner> createOrUpdateWithResponse(
String resourceGroupName, String availabilitySetName, AvailabilitySetInner parameters, Context context);
AvailabilitySetInner createOrUpdate(
String resourceGroupName, String availabilitySetName, AvailabilitySetInner parameters);

/**
* Update an availability set.
Expand Down Expand Up @@ -125,30 +125,30 @@ Mono<AvailabilitySetInner> updateAsync(
* @param resourceGroupName The name of the resource group.
* @param availabilitySetName The name of the availability set.
* @param parameters Parameters supplied to the Update Availability Set operation.
* @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 specifies information about the availability set that the virtual machine should be assigned to.
* @return specifies information about the availability set that the virtual machine should be assigned to along
* with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AvailabilitySetInner update(String resourceGroupName, String availabilitySetName, AvailabilitySetUpdate parameters);
Response<AvailabilitySetInner> updateWithResponse(
String resourceGroupName, String availabilitySetName, AvailabilitySetUpdate parameters, Context context);

/**
* Update an availability set.
*
* @param resourceGroupName The name of the resource group.
* @param availabilitySetName The name of the availability set.
* @param parameters Parameters supplied to the Update Availability Set operation.
* @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 specifies information about the availability set that the virtual machine should be assigned to along
* with {@link Response}.
* @return specifies information about the availability set that the virtual machine should be assigned to.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<AvailabilitySetInner> updateWithResponse(
String resourceGroupName, String availabilitySetName, AvailabilitySetUpdate parameters, Context context);
AvailabilitySetInner update(String resourceGroupName, String availabilitySetName, AvailabilitySetUpdate parameters);

/**
* Delete an availability set.
Expand Down Expand Up @@ -181,26 +181,26 @@ Response<AvailabilitySetInner> updateWithResponse(
*
* @param resourceGroupName The name of the resource group.
* @param availabilitySetName The name of the availability set.
* @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 {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String availabilitySetName);
Response<Void> deleteWithResponse(String resourceGroupName, String availabilitySetName, Context context);

/**
* Delete an availability set.
*
* @param resourceGroupName The name of the resource group.
* @param availabilitySetName The name of the availability set.
* @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 {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> deleteWithResponse(String resourceGroupName, String availabilitySetName, Context context);
void delete(String resourceGroupName, String availabilitySetName);

/**
* Retrieves information about an availability set.
Expand Down Expand Up @@ -236,29 +236,29 @@ Mono<Response<AvailabilitySetInner>> getByResourceGroupWithResponseAsync(
*
* @param resourceGroupName The name of the resource group.
* @param availabilitySetName The name of the availability set.
* @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 specifies information about the availability set that the virtual machine should be assigned to.
* @return specifies information about the availability set that the virtual machine should be assigned to along
* with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AvailabilitySetInner getByResourceGroup(String resourceGroupName, String availabilitySetName);
Response<AvailabilitySetInner> getByResourceGroupWithResponse(
String resourceGroupName, String availabilitySetName, Context context);

/**
* Retrieves information about an availability set.
*
* @param resourceGroupName The name of the resource group.
* @param availabilitySetName The name of the availability set.
* @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 specifies information about the availability set that the virtual machine should be assigned to along
* with {@link Response}.
* @return specifies information about the availability set that the virtual machine should be assigned to.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<AvailabilitySetInner> getByResourceGroupWithResponse(
String resourceGroupName, String availabilitySetName, Context context);
AvailabilitySetInner getByResourceGroup(String resourceGroupName, String availabilitySetName);

/**
* Lists all availability sets in a subscription.
Expand Down
Loading

0 comments on commit 1c6b5e7

Please sign in to comment.