<s> """<STR_LIT>""" <EOL> from cloudcafe . compute . events . models . base import EventBaseModel <EOL> from cloudcafe . compute . events . models . common import FixedIps , ImageMeta <EOL> BASE_KWARG_MAP = { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:host>' : '<STR_LIT:host>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:state>' : '<STR_LIT:state>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' } <EOL> class InstanceRebuildStart ( EventBaseModel ) : <EOL> """<STR_LIT>""" <EOL> kwarg_map = { '<STR_LIT>' : '<STR_LIT>' } <EOL> kwarg_map . update ( BASE_KWARG_MAP ) <EOL> def __init__ ( self , access_ip_v4 , access_ip_v6 , architecture , <EOL> availability_zone , cell_name , created_at , deleted_at , <EOL> disk_gb , display_name , ephemeral_gb , host , hostname , <EOL> image_meta , image_name , image_ref_url , instance_flavor_id , <EOL> instance_id , instance_type , instance_type_id , kernel_id , <EOL> launched_at , memory_mb , metadata , node , os_type , progress , <EOL> ramdisk_id , reservation_id , root_gb , state , state_description , <EOL> tenant_id , terminated_at , user_id , vcpus ) : <EOL> super ( InstanceRebuildStart , self ) . __init__ ( locals ( ) ) <EOL> @ classmethod <EOL> def _dict_to_obj ( cls , json_dict ) : <EOL> """<STR_LIT>""" <EOL> obj = cls . _map_values_to_kwargs ( json_dict ) <EOL> obj . image_meta = ImageMeta . _dict_to_obj ( obj . image_meta ) <EOL> return obj <EOL> class InstanceRebuildEnd ( EventBaseModel ) : <EOL> """<STR_LIT>""" <EOL> kwarg_map = { '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' } <EOL> kwarg_map . update ( BASE_KWARG_MAP ) <EOL> def __init__ ( self , access_ip_v4 , access_ip_v6 , architecture , <EOL> availability_zone , cell_name , created_at , deleted_at , <EOL> disk_gb , display_name , ephemeral_gb , fixed_ips , host , <EOL> hostname , image_meta , image_name , image_ref_url , <EOL> instance_flavor_id , instance_id , instance_type , <EOL> instance_type_id , kernel_id , launched_at , memory_mb , <EOL> metadata , node , os_type , progress , ramdisk_id , reservation_id , <EOL> root_gb , state , state_description , tenant_id , terminated_at , <EOL> user_id , vcpus ) : <EOL> super ( InstanceRebuildEnd , self ) . __init__ ( locals ( ) ) <EOL> @ classmethod <EOL> def _dict_to_obj ( cls , json_dict ) : <EOL> """<STR_LIT>""" <EOL> obj = cls . _map_values_to_kwargs ( json_dict ) <EOL> obj . fixed_ips = FixedIps . _list_to_obj ( obj . fixed_ips ) <EOL> obj . image_meta = ImageMeta . _dict_to_obj ( obj . image_meta ) <EOL> return obj </s>
