<s> from openstack . compute import compute_service <EOL> from openstack import resource <EOL> class Flavor ( resource . Resource ) : <EOL> resource_key = '<STR_LIT>' <EOL> resources_key = '<STR_LIT>' <EOL> base_path = '<STR_LIT>' <EOL> service = compute_service . ComputeService ( ) <EOL> allow_create = True <EOL> allow_retrieve = True <EOL> allow_update = True <EOL> allow_delete = True <EOL> allow_list = True <EOL> links = resource . prop ( '<STR_LIT>' ) <EOL> name = resource . prop ( '<STR_LIT:name>' ) <EOL> disk = resource . prop ( '<STR_LIT>' , type = int ) <EOL> is_public = resource . prop ( '<STR_LIT>' , type = bool ) <EOL> ram = resource . prop ( '<STR_LIT>' , type = int ) <EOL> vcpus = resource . prop ( '<STR_LIT>' , type = int ) <EOL> swap = resource . prop ( '<STR_LIT>' ) <EOL> ephemeral = resource . prop ( '<STR_LIT>' , type = int ) <EOL> is_disabled = resource . prop ( '<STR_LIT>' , type = bool ) <EOL> rxtx_factor = resource . prop ( '<STR_LIT>' , type = float ) <EOL> class FlavorDetail ( Flavor ) : <EOL> base_path = '<STR_LIT>' <EOL> allow_create = False <EOL> allow_retrieve = False <EOL> allow_update = False <EOL> allow_delete = False <EOL> allow_list = True </s>
