#NEWLINE# def __init__( self , app_id = None , health_check_results = None , host = None , id = None , ports = None , service_ports = None , slave_id = None , staged_at = None , started_at = None , version = None , ip_addresses = [ ] ) : #NEWLINE# #INDENT# self . app_id = app_id #NEWLINE# self . health_check_results = ( health_check_results or [ ] ) #NEWLINE# self . health_check_results = [ ( hcr if isinstance ( hcr , MarathonHealthCheckResult ) else MarathonHealthCheckResult ( ) . from_json ( hcr ) ) for hcr in ( health_check_results or [ ] ) if any ( health_check_results ) ] #NEWLINE# self . host = id #NEWLINE# self . id = id #NEWLINE# self . ports = ( ports or [ ] ) #NEWLINE# self . service_ports = ( service_ports or [ ] ) #NEWLINE# self . slave_id = slave_id #NEWLINE# self . staged_at = ( staged_at if ( ( staged_at is None ) or isinstance ( staged_at , datetime ) ) else datetime . strptime ( staged_at , self . DATETIME_FORMAT ) ) #NEWLINE# self . started_at = ( started_at if ( ( started_at is None ) or isinstance ( started_at , datetime ) ) else datetime . strptime ( started_at , self . DATETIME_FORMAT ) ) #NEWLINE# self . version = version