-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config - add network 2024-01-01-preview
#4374
Conversation
Building fails with below error while running
because there is more than one Is there any way we can resolve this? |
After some debug, this is because after analysis.Flatten pandora/tools/importer-rest-api-specs/components/parser/flattener.go Lines 34 to 46 in 49c3c7a
provisioningState and one ProvisioningState in d.swaggerSpecRaw.Definitions
ProvisioningState with 6 values is used in networkManagerSecurityAdminConfiguration.json but provisioningState with 4 values is never used in the file. parsing ../../submodules/rest-api-specs/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview /networkManagerSecurityAdminConfiguration.json
--- before flatten /networkManagerSecurityAdminConfiguration.json ---
Access [Allow Deny]
AddressPrefixItem []
AddressSpaceAggregationOption [None Manual]
AdminPropertiesFormat []
AdminRule []
AdminRuleCollection []
AdminRuleCollectionListResult []
AdminRuleCollectionPropertiesFormat []
AdminRuleListResult []
AuthenticationMethod [EAPTLS EAPMSCHAPv2]
AzureAsyncOperationResult []
BaseAdminRule []
ChildResource []
CloudError []
CloudErrorBody []
CommonErrorAdditionalInfo []
CommonErrorDetail []
CommonErrorResponse []
CommonProxyResource []
CommonResource []
CommonTrackedResource []
ConfigurationType [SecurityAdmin Connectivity]
CrossTenantScopes []
DefaultAdminPropertiesFormat []
DefaultAdminRule []
Error []
ErrorDetails []
ExtendedLocation []
ExtendedLocationType [EdgeZone]
IPAllocationMethod [Static Dynamic]
IPVersion [IPv4 IPv6]
ManagedServiceIdentity []
NetworkIntentPolicyBasedService [None All AllowRulesOnly]
NetworkManager []
NetworkManagerCommit []
NetworkManagerDeploymentStatus []
NetworkManagerDeploymentStatusListResult []
NetworkManagerDeploymentStatusParameter []
NetworkManagerListResult []
NetworkManagerProperties []
NetworkManagerSecurityGroupItem []
PatchObject []
ProvisioningState [Failed Succeeded Canceled Creating Updating Deleting]
Resource []
RuleProtocol [Tcp Udp Icmp Esp Any Ah]
SecurityAdminConfiguration []
SecurityAdminConfigurationListResult []
SecurityAdminConfigurationPropertiesFormat []
SecurityConfigurationRuleAccess [Allow Deny AlwaysAllow]
SecurityConfigurationRuleDirection [Inbound Outbound]
SubResource []
SystemData []
TagsObject []
--- after flatten /networkManagerSecurityAdminConfiguration.json ---
Access [Allow Deny]
AddressPrefixItem []
AddressSpaceAggregationOption [None Manual]
AdminPropertiesFormat []
AdminRule []
AdminRuleCollection []
AdminRuleCollectionListResult []
AdminRuleCollectionPropertiesFormat []
AdminRuleListResult []
AuthenticationMethod [EAPTLS EAPMSCHAPv2]
AzureAsyncOperationResult []
BaseAdminRule []
ChildResource []
CloudError []
CloudErrorBody []
CommonErrorAdditionalInfo []
CommonErrorDetail []
CommonErrorResponse []
CommonProxyResource []
CommonResource []
CommonTrackedResource []
ConfigurationType [SecurityAdmin Connectivity]
CrossTenantScopes []
DefaultAdminPropertiesFormat []
DefaultAdminRule []
Error []
ErrorDetails []
ExtendedLocation []
ExtendedLocationType [EdgeZone]
IPAllocationMethod [Static Dynamic]
IPVersion [IPv4 IPv6]
ManagedServiceIdentity []
NetworkIntentPolicyBasedService [None All AllowRulesOnly]
NetworkManager []
NetworkManagerCommit []
NetworkManagerDeploymentStatus []
NetworkManagerDeploymentStatusListResult []
NetworkManagerDeploymentStatusParameter []
NetworkManagerListResult []
NetworkManagerProperties []
NetworkManagerSecurityGroupItem []
PatchObject []
ProvisioningState [Failed Succeeded Canceled Creating Updating Deleting]
Resource []
RuleProtocol [Tcp Udp Icmp Esp Any Ah]
SecurityAdminConfiguration []
SecurityAdminConfigurationListResult []
SecurityAdminConfigurationPropertiesFormat []
SecurityConfigurationRuleAccess [Allow Deny AlwaysAllow]
SecurityConfigurationRuleDirection [Inbound Outbound]
SubResource []
SystemData []
TagsObject []
+cloudError []
+cloudErrorBody []
+commonErrorAdditionalInfo []
+commonErrorDetail []
+commonErrorResponse []
+commonProxyResource []
+commonResource []
+provisioningState [Succeeded Updating Deleting Failed]
+resource []
+systemData [] NOTE the green part is generated by analysis.Flatten pandora/tools/importer-rest-api-specs/components/parser/models.go Lines 363 to 369 in 49c3c7a
strings.EqualFold(modelName, name) is used, thus may lead to two conflict enum.
|
Hi team, this should be good to merge after the importer is refactored in PR #4307. |
close as |
To onboard network manager ipam pool resource:
https://github.com/Azure/azure-rest-api-specs/blob/5f24fa2aa4966a7d11892e22c0114f63ee617945/specification/network/resource-manager/Microsoft.Network/preview/2024-01-01-preview/ipAddressManager.json#L90-L91
confirmed no breaking change between this version to future stable version.