Skip to content

mgmt, use separate entry points for premium samples#9845

Draft
XiaofeiCao wants to merge 3 commits intomainfrom
java_mgmt_use_individual_entry_for_premium
Draft

mgmt, use separate entry points for premium samples#9845
XiaofeiCao wants to merge 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

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.

2 participants