Skip to content

Rename ManagedOps interface to ManagedOperations to avoid namespace conflict#40737

Merged
ArthurMa1978 merged 8 commits intomainfrom
fix/managedops-rename-interface
Feb 26, 2026
Merged

Rename ManagedOps interface to ManagedOperations to avoid namespace conflict#40737
ArthurMa1978 merged 8 commits intomainfrom
fix/managedops-rename-interface

Conversation

@live1206
Copy link
Copy Markdown
Member

Problem

The TypeSpec \interface ManagedOps\ in \specification/managedoperations/ManagedOps.Management/managedOps.tsp\ generates an internal class named \ManagedOps\ in the .NET SDK. This conflicts with the SDK namespace \Azure.ResourceManager.ManagedOps, forcing the generator to use \Azure.ResourceManager._ManagedOps\ as a workaround.

Fix

Rename \interface ManagedOps\ to \interface ManagedOperations\ to eliminate the name conflict. This allows the .NET SDK to use the correct namespace \Azure.ResourceManager.ManagedOps.

Related SDK PR

…onflict

The interface name ManagedOps conflicts with the C# SDK namespace
Azure.ResourceManager.ManagedOps, causing the generator to use an
underscore-prefixed internal namespace (_ManagedOps) as a workaround.

Renaming the interface to ManagedOperations resolves this conflict.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 25, 2026

Next Steps to Merge

Next steps that must be taken to merge this PR:
  • ❌ This PR is NotReadyForARMReview because it has the VersioningReviewRequired label.
  • ❌ This PR has at least one change violating Azure versioning policy (label: VersioningReviewRequired).
    To unblock this PR, either a) introduce a new API version with these changes instead of modifying an existing API version, or b) follow the process at aka.ms/brch.
  • ❌ The required check named SDK Validation Status has failed. Refer to the check in the PR's 'Checks' tab for details on how to fix it and consult the aka.ms/ci-fix guide


Comment generated by summarize-checks workflow run.

live1206 added a commit to azure-sdk/azure-sdk-for-net that referenced this pull request Feb 25, 2026
Points to spec PR: Azure/azure-rest-api-specs#40737

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions bot added the TypeSpec Authored with TypeSpec label Feb 25, 2026
Revert interface name to ManagedOps to avoid swagger changes.
Add @@clientName(ManagedOps, 'ManagedOperations', 'csharp') in client.tsp
to rename only for the C# SDK generation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
live1206 added a commit to azure-sdk/azure-sdk-for-net that referenced this pull request Feb 25, 2026
Spec now uses @@clientName(ManagedOps, 'ManagedOperations', 'csharp') in
client.tsp instead of renaming the interface, keeping swagger unchanged.

Spec PR: Azure/azure-rest-api-specs#40737

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
live1206 and others added 5 commits February 25, 2026 17:14
Replace 'alias enablementState' with 'union EnablementStatus' and
'alias desiredEnablementState' with 'union DesiredEnablementState'.

This gives all language SDKs proper enum type names instead of
generator-derived names like 'ChangeTrackingInformationEnablementStatus'
or 'DesiredConfigurationDefenderForServers'.

Also removes the #suppress directives for unnamed unions since named
unions don't trigger the lint rule.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Rename types to avoid name collisions:
- AzureMonitorInformation -> ManagedOpsAzureMonitorInformation
- ChangeTrackingInformation -> ManagedOpsChangeTrackingInformation
- ProvisioningState -> ManagedOpsProvisioningState
- ServiceInformation -> ManagedOpsServiceInformation
- Convert enablementState alias to named union EnablementState,
  renamed to ManagedOpsEnablementStatus for C#

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ate types

- DesiredConfiguration -> ManagedOpsDesiredConfiguration
- DesiredConfigurationUpdate -> ManagedOpsDesiredConfigurationUpdate
- desiredEnablementState alias -> named union DesiredEnablementState,
  renamed to ManagedOpsDesiredEnablementState for C#

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions bot added ARMReview resource-manager RPaaS WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required ARMAutoSignedOff-IncrementalTSP ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review VersioningReviewRequired <valid label in PR review process>add this label when versioning review is required NotReadyForARMReview and removed ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels Feb 26, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ArthurMa1978 ArthurMa1978 added BreakingChange-Approved-Benign Changes are not breaking at the REST API level and have at most minor impact to generated SDKs. PublishToCustomers Acknowledgement the changes will be published to Azure customers. BreakingChange-Go-Sdk-Approved labels Feb 26, 2026
@ArthurMa1978 ArthurMa1978 merged commit 7ed8b2d into main Feb 26, 2026
64 of 68 checks passed
@ArthurMa1978 ArthurMa1978 deleted the fix/managedops-rename-interface branch February 26, 2026 09:25
nandakishores pushed a commit to nandakishores/azure-rest-api-specs that referenced this pull request Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ARMReview BreakingChange-Approved-Benign Changes are not breaking at the REST API level and have at most minor impact to generated SDKs. BreakingChange-Go-Sdk-Approved NotReadyForARMReview PublishToCustomers Acknowledgement the changes will be published to Azure customers. resource-manager RPaaS TypeSpec Authored with TypeSpec VersioningReviewRequired <valid label in PR review process>add this label when versioning review is required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants