<s> """<STR_LIT>""" <EOL> class FakeEndpoint ( object ) : <EOL> def __init__ ( self , id , service_id , region , publicurl , internalurl = None , <EOL> adminurl = None ) : <EOL> self . id = id <EOL> self . service_id = service_id <EOL> self . region = region <EOL> self . publicurl = publicurl <EOL> self . internalurl = internalurl <EOL> self . adminurl = adminurl <EOL> class FakeEndpointv3 ( object ) : <EOL> def __init__ ( self , id , service_id , region , url , interface = None ) : <EOL> self . id = id <EOL> self . service_id = service_id <EOL> self . region = region <EOL> self . url = url <EOL> self . interface = interface <EOL> class FakeFlavor ( object ) : <EOL> def __init__ ( self , id , name , ram , extra_specs = None ) : <EOL> self . id = id <EOL> self . name = name <EOL> self . ram = ram <EOL> if extra_specs : <EOL> self . extra_specs = extra_specs <EOL> def get_keys ( self ) : <EOL> return { } <EOL> class FakeFloatingIP ( object ) : <EOL> def __init__ ( self , id , pool , ip , fixed_ip , instance_id ) : <EOL> self . id = id <EOL> self . pool = pool <EOL> self . ip = ip <EOL> self . fixed_ip = fixed_ip <EOL> self . instance_id = instance_id <EOL> class FakeFloatingIPPool ( object ) : <EOL> def __init__ ( self , id , name ) : <EOL> self . id = id <EOL> self . name = name <EOL> class FakeImage ( object ) : <EOL> def __init__ ( self , id , name , status ) : <EOL> self . id = id <EOL> self . name = name <EOL> self . status = status <EOL> class FakeProject ( object ) : <EOL> def __init__ ( self , id , domain_id = None ) : <EOL> self . id = id <EOL> self . domain_id = domain_id or '<STR_LIT:default>' <EOL> class FakeServer ( object ) : <EOL> def __init__ ( <EOL> self , id , name , status , addresses = None , <EOL> accessIPv4 = '<STR_LIT>' , accessIPv6 = '<STR_LIT>' , private_v4 = '<STR_LIT>' , <EOL> private_v6 = '<STR_LIT>' , public_v4 = '<STR_LIT>' , public_v6 = '<STR_LIT>' , <EOL> interface_ip = '<STR_LIT>' , <EOL> flavor = None , image = None , adminPass = None , <EOL> metadata = None ) : <EOL> self . id = id <EOL> self . name = name <EOL> self . status = status <EOL> if not addresses : <EOL> self . addresses = { } <EOL> else : <EOL> self . addresses = addresses <EOL> if not flavor : <EOL> flavor = { } <EOL> self . flavor = flavor <EOL> if not image : <EOL> image = { } <EOL> self . image = image <EOL> self . accessIPv4 = accessIPv4 <EOL> self . accessIPv6 = accessIPv6 <EOL> self . private_v4 = private_v4 <EOL> self . public_v4 = public_v4 <EOL> self . private_v6 = private_v6 <EOL> self . public_v6 = public_v6 <EOL> self . adminPass = adminPass <EOL> self . metadata = metadata <EOL> self . interface_ip = interface_ip <EOL> class FakeService ( object ) : <EOL> def __init__ ( self , id , name , type , service_type , description = '<STR_LIT>' , <EOL> enabled = True ) : <EOL> self . id = id <EOL> self . name = name <EOL> self . type = type <EOL> self . service_type = service_type <EOL> self . description = description <EOL> self . enabled = enabled <EOL> class FakeUser ( object ) : <EOL> def __init__ ( self , id , email , name , domain_id = None ) : <EOL> self . id = id <EOL> self . email = email <EOL> self . name = name <EOL> if domain_id is not None : <EOL> self . domain_id = domain_id <EOL> class FakeVolume ( object ) : <EOL> def __init__ ( <EOL> self , id , status , name , attachments = [ ] , <EOL> size = <NUM_LIT> ) : <EOL> self . id = id <EOL> self . status = status <EOL> self . name = name <EOL> self . attachments = attachments <EOL> self . size = size <EOL> self . snapshot_id = '<STR_LIT>' <EOL> self . description = '<STR_LIT:description>' <EOL> self . volume_type = '<STR_LIT>' <EOL> self . availability_zone = '<STR_LIT>' <EOL> self . created_at = '<STR_LIT>' <EOL> self . source_volid = '<STR_LIT>' <EOL> self . metadata = { } <EOL> class FakeVolumeSnapshot ( object ) : <EOL> def __init__ ( <EOL> self , id , status , name , description , size = <NUM_LIT> ) : <EOL> self . id = id <EOL> self . status = status <EOL> self . name = name <EOL> self . description = description <EOL> self . size = size <EOL> self . created_at = '<STR_LIT>' <EOL> self . volume_id = '<STR_LIT>' <EOL> self . metadata = { } <EOL> class FakeMachine ( object ) : <EOL> def __init__ ( self , id , name = None , driver = None , driver_info = None , <EOL> chassis_uuid = None , instance_info = None , instance_uuid = None , <EOL> properties = None ) : <EOL> self . id = id <EOL> self . name = name <EOL> self . driver = driver <EOL> self . driver_info = driver_info <EOL> self . chassis_uuid = chassis_uuid <EOL> self . instance_info = instance_info <EOL> self . instance_uuid = instance_uuid <EOL> self . properties = properties <EOL> class FakeMachinePort ( object ) : <EOL> def __init__ ( self , id , address , node_id ) : <EOL> self . id = id <EOL> self . address = address <EOL> self . node_id = node_id <EOL> class FakeSecgroup ( object ) : <EOL> def __init__ ( self , id , name , description = '<STR_LIT>' , rules = None ) : <EOL> self . id = id <EOL> self . name = name <EOL> self . description = description <EOL> self . rules = rules <EOL> class FakeNovaSecgroupRule ( object ) : <EOL> def __init__ ( self , id , from_port = None , to_port = None , ip_protocol = None , <EOL> cidr = None , parent_group_id = None ) : <EOL> self . id = id <EOL> self . from_port = from_port <EOL> self . to_port = to_port <EOL> self . ip_protocol = ip_protocol <EOL> if cidr : <EOL> self . ip_range = { '<STR_LIT>' : cidr } <EOL> self . parent_group_id = parent_group_id <EOL> class FakeKeypair ( object ) : <EOL> def __init__ ( self , id , name , public_key ) : <EOL> self . id = id <EOL> self . name = name <EOL> self . public_key = public_key <EOL> class FakeDomain ( object ) : <EOL> def __init__ ( self , id , name , description , enabled ) : <EOL> self . id = id <EOL> self . name = name <EOL> self . description = description <EOL> self . enabled = enabled <EOL> class FakeRole ( object ) : <EOL> def __init__ ( self , id , name ) : <EOL> self . id = id <EOL> self . name = name <EOL> class FakeGroup ( object ) : <EOL> def __init__ ( self , id , name , description , domain_id = None ) : <EOL> self . id = id <EOL> self . name = name <EOL> self . description = description <EOL> self . domain_id = domain_id or '<STR_LIT:default>' <EOL> class FakeHypervisor ( object ) : <EOL> def __init__ ( self , id , hostname ) : <EOL> self . id = id <EOL> self . hypervisor_hostname = hostname <EOL> class FakeStack ( object ) : <EOL> def __init__ ( self , id , name , description = None , status = '<STR_LIT>' ) : <EOL> self . id = id <EOL> self . name = name <EOL> self . stack_name = name <EOL> self . stack_description = description <EOL> self . stack_status = status <EOL> class FakeZone ( object ) : <EOL> def __init__ ( self , id , name , type_ , email , description , <EOL> ttl , masters ) : <EOL> self . id = id <EOL> self . name = name <EOL> self . type_ = type_ <EOL> self . email = email <EOL> self . description = description <EOL> self . ttl = ttl <EOL> self . masters = masters </s>
