[Python] TypeSpec migration for azure-mgmt-security#46465
Draft
ChenxiJiang333 wants to merge 3 commits intoAzure:mainfrom
Draft
[Python] TypeSpec migration for azure-mgmt-security#46465ChenxiJiang333 wants to merge 3 commits intoAzure:mainfrom
ChenxiJiang333 wants to merge 3 commits intoAzure:mainfrom
Conversation
84b838a to
ae2f381
Compare
ae2f381 to
34f9097
Compare
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
34f9097 to
35d8c6b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[Python] TypeSpec migration for azure-mgmt-security
Spec PR: Azure/azure-rest-api-specs#41888
Pre-migration swagger source: specification/security/resource-manager@5edf687e
Default tag
package-composite-v3contains multiple API versions:2015-06-01-preview/2017-08-01/2017-08-01-preview/2019-01-01/2019-01-01-preview/2019-08-01/2020-01-01/2021-05-01-preview/2021-10-01-preview/2022-01-01/2022-01-01-preview/2022-05-01/2022-07-01-preview/2023-01-01-preview/2023-02-15-preview/2023-05-01/2023-05-01-preview/2023-11-15/2023-12-01-preview/2024-08-01/2024-08-01-preview/2025-05-04/2025-09-01-preview/2025-10-01-preview/2025-11-01-preview/2026-01-01/2026-04-01-previewBreaking Change Analysis Summary
@@clientNamedecorators in spec PR)Spec Mitigation PR
welovej/azure-rest-api-specs#15
Mitigated Breaking Changes (6 items)
SecurityCenter→SecurityManagementClient@@clientNameto restoreSecurityCenterAadConnectivityStateEnum→AadConnectivityState@@clientNameto restoreAadConnectivityStateEnumExternalSecuritySolutionKindEnum→ExternalSecuritySolutionKind@@clientNameto restoreExternalSecuritySolutionKindEnumProtocolEnum→Protocol@@clientNameto restoreProtocolEnumKindEnum→Kind@@clientNameto restoreKindEnumStatuscollides with modelStatus@@clientNameto rename toStatusEnumAccepted Breaking Changes (by category)
*List)AlertList,PricingList,SecurityConnectorsListCloudErrorAutoGenerated*,ErrorDetailAutoGenerated*OnPremiseResourceDetails,Software,Code,LocationPricing.pricing_tier,IoTSecuritySolutionModel.workspaceMdeOnboardingsOperations.list,SecurityOperatorsOperations.listOperationResult.capitalize(code report artifact)OperationResultenum→modelOperationResultStatusenum__init__methods removedAadConnectivityState.__init__,Kind.__init__ActiveConnectionsNotInAllowedRange,AmqpC2DMessagesNotInAllowedRangePython Codegen Bug
@typespec/http-client-python@0.28.3) has a bug causingValueError: We have already generated a schema with name createOrUpdateRequest. Root cause: LRO operations with@@overridegenerate duplicate body model instances with the same name. A local pygen patch was applied to work around this. This should be tracked at https://github.com/microsoft/typespec/issues.Additional collisions found:
ArcAutoProvisioningGcp(2x),VmScannersGcp(2x) from discriminated subtypes, andStatusmodel/enum name collision.