Skip to content

mgmt, use separate entry points for premium samples#9845

Merged
XiaofeiCao merged 3 commits intomainfrom
java_mgmt_use_individual_entry_for_premium
Mar 6, 2026
Merged

mgmt, use separate entry points for premium samples#9845
XiaofeiCao merged 3 commits intomainfrom
java_mgmt_use_individual_entry_for_premium

Conversation

@XiaofeiCao
Copy link
Member

@XiaofeiCao XiaofeiCao commented Feb 28, 2026

Summary

Replace AzureResourceManager with SDK-specific XXManager as the entry point in Fluent Premium samples.

Previously, premium samples were generated with AzureResourceManager as the entry type and then moved to sdk/resourcemanager/azure-resourcemanager/samples by the downstream generate.py script. This change makes premium samples use the corresponding XXManager (e.g., ComputeManager, StorageManager) directly, so samples can stay in their own SDK location.

Before vs After

// Before: premium sample used AzureResourceManager
void sampleMethod(com.azure.resourcemanager.AzureResourceManager azure) {
    azure.storageAccounts().manager().serviceClient().getStorageAccounts().list();
}

// After: premium sample uses SDK-specific manager
void sampleMethod(com.azure.resourcemanager.storage.StorageManager manager) {
    manager.serviceClient().getStorageAccounts().list();
}

Will update generate.py when this got shipped.

@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:client:java Issue for the Java client emitter: @typespec/http-client-java label Feb 28, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 28, 2026

All changed packages have been documented.

  • @typespec/http-client-java
Show changes

@typespec/http-client-java - fix ✏️

mgmt, use separate entry points for premium samples

Updated changeKind to 'fix' for Java management entries.
@azure-sdk
Copy link
Collaborator

azure-sdk commented Feb 28, 2026

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@XiaofeiCao XiaofeiCao added this pull request to the merge queue Mar 6, 2026
Merged via the queue into main with commit 97a3eb7 Mar 6, 2026
31 checks passed
@XiaofeiCao XiaofeiCao deleted the java_mgmt_use_individual_entry_for_premium branch March 6, 2026 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:java Issue for the Java client emitter: @typespec/http-client-java

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants