Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
895cf80
Regenerate compute SDK from TypeSpec
weidongxu-microsoft Mar 31, 2026
67d0b5b
Regenerate compute SDK with clientName and alternateType fixes
weidongxu-microsoft Mar 31, 2026
5f7e73e
Add revapi suppressions for compute TypeSpec migration
weidongxu-microsoft Mar 31, 2026
a382649
fix revapi
weidongxu-microsoft Mar 31, 2026
f0470e3
regen cloudservice
weidongxu-microsoft Mar 31, 2026
17b74f9
add getCloudServiceClient
weidongxu-microsoft Mar 31, 2026
3ffc529
revapi
weidongxu-microsoft Mar 31, 2026
1ee5ff5
Finalize changelog for compute TypeSpec migration
weidongxu-microsoft Mar 31, 2026
7e875fb
changelog
weidongxu-microsoft Mar 31, 2026
4d70f73
fix
weidongxu-microsoft Mar 31, 2026
e9e0c13
Fix case-sensitive filename mismatches for Ip -> IP in fluent models
weidongxu-microsoft Mar 31, 2026
7eab15e
Regenerate with PurchasePlan input usage, revert changelog
weidongxu-microsoft Mar 31, 2026
099b0fb
Update changelog and tsp-location.yaml commit SHA
weidongxu-microsoft Mar 31, 2026
2851e2f
fix changelog
weidongxu-microsoft Mar 31, 2026
de64787
fix module-info
weidongxu-microsoft Mar 31, 2026
1decb43
fix test
weidongxu-microsoft Mar 31, 2026
219f6d3
record
weidongxu-microsoft Mar 31, 2026
917bde8
Regenerate after replacing rename-model with clientName
weidongxu-microsoft Mar 31, 2026
c6fecba
Merge branch 'migrate-compute' of https://github.com/Azure/azure-sdk-…
weidongxu-microsoft Mar 31, 2026
c4f66eb
Update tsp-location.yaml commit SHA to 5087e55415
weidongxu-microsoft Mar 31, 2026
950885f
rename to cloudServiceClient()
weidongxu-microsoft Apr 1, 2026
0b2b3a8
commit on main
weidongxu-microsoft Apr 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
40 changes: 40 additions & 0 deletions eng/lintingconfigs/revapi/track2/revapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,46 @@
"match": "class com\\.azure\\.resourcemanager\\.containerinstance\\.models\\.(CachedImagesListResult|CapabilitiesListResult|ContainerGroupListResult|OperationListResult|UsageListResult)"
},
"justification": "Pageable models moved to implementation package. Unlikely used by user."
},
{
"code": "java.method.visibilityReduced",
"old" : {
"matcher": "regex",
"match": "method void com\\.azure\\.resourcemanager\\.compute\\.models\\..*\\:\\:\\<init\\>\\(\\)"
},
"justification": "Output-only immutable models constructors are now private."
},
{
"code": "java.method.visibilityReduced",
"old" : {
"matcher": "regex",
"match": "method .* com\\.azure\\.resourcemanager\\.compute\\.models\\..*\\:\\:with.*\\(.*\\).*"
},
"justification": "Output-only immutable models setters are now package-private if being used by child class."
},
{
"code": "java.method.removed",
"old" : {
"matcher": "regex",
"match": "method .* com\\.azure\\.resourcemanager\\.compute\\.models\\..*\\:\\:with.*\\(.*\\).*"
},
"justification": "Output-only immutable models setters are removed if no explicit usage."
},
{
"code": "java.class.removed",
"old" : {
"matcher": "regex",
"match": "class com\\.azure\\.resourcemanager\\.compute\\.models\\.(AvailabilitySetListResult|CapacityReservationGroupListResult|CapacityReservationListResult|CloudServiceListResult|CloudServiceRoleListResult|DedicatedHostGroupListResult|DedicatedHostListResult|DedicatedHostSizeListResult|ImageListResult|ListUsagesResult|OSFamilyListResult|OSVersionListResult|OperationListResult|PrivateEndpointConnectionListResult|ProximityPlacementGroupListResult|ResourceSkusResult|RestorePointCollectionListResult|RoleInstanceListResult|RunCommandListResult|SshPublicKeysGroupListResult|UpdateDomainListResult|VirtualMachineListResult|VirtualMachineRunCommandsListResult|VirtualMachineScaleSetExtensionListResult|VirtualMachineScaleSetListResult|VirtualMachineScaleSetListSkusResult|VirtualMachineScaleSetListWithLinkResult|VirtualMachineScaleSetVMListResult|VirtualMachineSizeListResult)"
},
"justification": "Pageable models moved to implementation package. Unlikely used by user."
},
{
"code": "java.class.removed",
"old" : {
"matcher": "regex",
"match": "class com\\.azure\\.resourcemanager\\.compute\\.models\\.(CommunityGalleryImageList|CommunityGalleryImageVersionList|DiskAccessList|DiskEncryptionSetList|DiskList|DiskRestorePointList|GalleryApplicationList|GalleryApplicationVersionList|GalleryImageList|GalleryImageVersionList|GalleryInVMAccessControlProfileList|GalleryInVMAccessControlProfileVersionList|GalleryList|GalleryScriptList|GalleryScriptVersionList|GallerySoftDeletedResourceList|ResourceUriList|SharedGalleryImageList|SharedGalleryImageVersionList|SharedGalleryList|SnapshotList|VirtualMachineScaleSetListOSUpgradeHistory)"
},
"justification": "Pageable models moved to implementation package. Unlikely used by user."
}
]
}
Expand Down
8 changes: 8 additions & 0 deletions sdk/compute/azure-resourcemanager-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@

### Breaking Changes

#### Changes to `ComputeManagementClient` Class

- Moved `ComputeManager.serviceClient().getCloudServiceRoleInstances()` to `ComputeManager.cloudServiceClient().getCloudServiceRoleInstances()`.
- Moved `ComputeManager.serviceClient().getCloudServiceRoles()` to `ComputeManager.cloudServiceClient().getCloudServiceRoles()`.
- Moved `ComputeManager.serviceClient().getCloudServices()` to `ComputeManager.cloudServiceClient().getCloudServices()`.
- Moved `ComputeManager.serviceClient().getCloudServicesUpdateDomains()` to `ComputeManager.cloudServiceClient().getCloudServicesUpdateDomains()`.
- Moved `ComputeManager.serviceClient().getCloudServiceOperatingSystems()` to `ComputeManager.cloudServiceClient().getCloudServiceOperatingSystems()`.

### Bugs Fixed

### Other Changes
Expand Down
2 changes: 1 addition & 1 deletion sdk/compute/azure-resourcemanager-compute/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ For documentation on how to use this package, please see [Azure Management Libra
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-compute</artifactId>
<version>2.56.2</version>
<version>2.57.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
2 changes: 1 addition & 1 deletion sdk/compute/azure-resourcemanager-compute/assets.json
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/compute/azure-resourcemanager-compute",
"Tag": "java/compute/azure-resourcemanager-compute_6a5861292e"
"Tag": "java/compute/azure-resourcemanager-compute_219836a32c"
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
import com.azure.core.http.HttpPipeline;
import com.azure.core.management.profile.AzureProfile;
import com.azure.resourcemanager.authorization.AuthorizationManager;
import com.azure.resourcemanager.compute.fluent.CloudServiceManagementClient;
import com.azure.resourcemanager.compute.fluent.ComputeManagementClient;
import com.azure.resourcemanager.compute.implementation.AvailabilitySetsImpl;
import com.azure.resourcemanager.compute.implementation.CloudServiceManagementClientBuilder;
import com.azure.resourcemanager.compute.implementation.ComputeManagementClientBuilder;
import com.azure.resourcemanager.compute.implementation.ComputeSkusImpl;
import com.azure.resourcemanager.compute.implementation.ComputeUsagesImpl;
Expand Down Expand Up @@ -53,6 +55,7 @@ public final class ComputeManager extends Manager<ComputeManagementClient> {
private final StorageManager storageManager;
private final NetworkManager networkManager;
private final AuthorizationManager authorizationManager;
private final CloudServiceManagementClient cloudServiceClient;

// The collections
private AvailabilitySets availabilitySets;
Expand Down Expand Up @@ -97,6 +100,15 @@ public AuthorizationManager authorizationManager() {
return authorizationManager;
}

/**
* Gets the cloud service client.
*
* @return the cloud service client
*/
public CloudServiceManagementClient cloudServiceClient() {
return cloudServiceClient;
}

/**
* Get a Configurable instance that can be used to create ComputeManager with optional configuration.
*
Expand Down Expand Up @@ -161,6 +173,10 @@ private ComputeManager(HttpPipeline httpPipeline, AzureProfile profile) {
storageManager = StorageManager.authenticate(httpPipeline, profile);
networkManager = NetworkManager.authenticate(httpPipeline, profile);
authorizationManager = AuthorizationManager.authenticate(httpPipeline, profile);
cloudServiceClient = new CloudServiceManagementClientBuilder().pipeline(httpPipeline)
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
.subscriptionId(profile.getSubscriptionId())
.buildClient();
}

/**
Expand Down
Loading