Skip to content

[Versioning] Mechanism for specifying enum values is too cumbersome #2579

@tjprescott

Description

@tjprescott

Unresolved from PR #2526

def create_storage_account(..., 
   kind=get_versioned_models(ResourceType.MGMT_STORAGE_STORAGE_ACCOUNTS, model='Kind').storage.value, ...):

This is far too much syntax just to expose an enum as a default value.

We should implement a way of specifying a default enum type as a value that doesn't require so much boilerplate syntax and, ideally, completely hides the versioning aspect.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions