You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
*/
union Origin {
/** Indicates the operation is initiated by a user. */
user: "user",
/** Indicates the operation is initiated by a system. */
system: "system",
/** Indicates the operation is initiated by a user or system. */
`user,system`: "user,system",
string,
}
another case would be there is no key defined in union
union ManagedServiceIdentityType {
/** No managed identity. */
"None",
/** System assigned managed identity. */
"SystemAssigned",
/** User assigned managed identity. */
"UserAssigned",
/** System and user assigned managed identity. */
@added(Versions.v3)
@removed(Versions.v4)
@added(Versions.v5)
"SystemAssigned,UserAssigned",
/** System and user assigned managed identity. */
@added(Versions.v4)
@removed(Versions.v5)
"SystemAssigned, UserAssigned",
string,
}
The text was updated successfully, but these errors were encountered:
MaryGao
changed the title
Enum name user,system is not easy for intellisense when generated as KnownableEnum
No intellisense for enum name user,system generated as KnownEnum
Sep 20, 2024
see comments and playground, when generating the knownable items for enum key
user,system
there is no intellisense for it.relevant tsp would be like
https://github.com/Azure/typespec-azure/blob/main/packages/typespec-azure-resource-manager/lib/common-types/types.tsp#L226-L241
another case would be there is no key defined in union
https://github.com/azure/typespec-azure/blob/main/packages/typespec-azure-resource-manager/lib/common-types/managed-identity.tsp#L62-L84
The text was updated successfully, but these errors were encountered: