<s> from __future__ import absolute_import <EOL> import six <EOL> __all__ = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> class ComponentConfig ( object ) : <EOL> """<STR_LIT>""" <EOL> __slots__ = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ) <EOL> def __init__ ( self , realm = None , extra = None , keyring = None , controller = None ) : <EOL> """<STR_LIT>""" <EOL> assert ( realm is None or type ( realm ) == six . text_type ) <EOL> self . realm = realm <EOL> self . extra = extra <EOL> self . keyring = keyring <EOL> self . controller = controller <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" . format ( self . realm , self . extra , self . keyring , self . controller ) <EOL> class HelloReturn ( object ) : <EOL> """<STR_LIT>""" <EOL> class Accept ( HelloReturn ) : <EOL> """<STR_LIT>""" <EOL> __slots__ = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> def __init__ ( self , realm = None , authid = None , authrole = None , authmethod = None , authprovider = None , authextra = None ) : <EOL> """<STR_LIT>""" <EOL> assert ( realm is None or type ( realm ) == six . text_type ) <EOL> assert ( authid is None or type ( authid ) == six . text_type ) <EOL> assert ( authrole is None or type ( authrole ) == six . text_type ) <EOL> assert ( authmethod is None or type ( authmethod ) == six . text_type ) <EOL> assert ( authprovider is None or type ( authprovider ) == six . text_type ) <EOL> assert ( authextra is None or type ( authextra ) == dict ) <EOL> self . realm = realm <EOL> self . authid = authid <EOL> self . authrole = authrole <EOL> self . authmethod = authmethod <EOL> self . authprovider = authprovider <EOL> self . authextra = authextra <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" . format ( self . realm , self . authid , self . authrole , self . authmethod , self . authprovider , self . authextra ) <EOL> class Deny ( HelloReturn ) : <EOL> """<STR_LIT>""" <EOL> __slots__ = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT:message>' , <EOL> ) <EOL> def __init__ ( self , reason = u"<STR_LIT>" , message = None ) : <EOL> """<STR_LIT>""" <EOL> assert ( type ( reason ) == six . text_type ) <EOL> assert ( message is None or type ( message ) == six . text_type ) <EOL> self . reason = reason <EOL> self . message = message <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" . format ( self . reason , self . message ) <EOL> class Challenge ( HelloReturn ) : <EOL> """<STR_LIT>""" <EOL> __slots__ = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> def __init__ ( self , method , extra = None ) : <EOL> """<STR_LIT>""" <EOL> assert ( type ( method ) == six . text_type ) <EOL> assert ( extra is None or type ( extra ) == dict ) <EOL> self . method = method <EOL> self . extra = extra or { } <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" . format ( self . method , self . extra ) <EOL> class HelloDetails ( object ) : <EOL> """<STR_LIT>""" <EOL> __slots__ = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> def __init__ ( self , realm = None , authmethods = None , authid = None , authrole = None , authextra = None , session_roles = None , pending_session = None ) : <EOL> """<STR_LIT>""" <EOL> assert ( realm is None or type ( realm ) == six . text_type ) <EOL> assert ( authmethods is None or ( type ( authmethods ) == list and all ( type ( x ) == six . text_type for x in authmethods ) ) ) <EOL> assert ( authid is None or type ( authid ) == six . text_type ) <EOL> assert ( authrole is None or type ( authrole ) == six . text_type ) <EOL> assert ( authextra is None or type ( authextra ) == dict ) <EOL> assert ( pending_session is None or type ( pending_session ) in six . integer_types ) <EOL> self . realm = realm <EOL> self . authmethods = authmethods <EOL> self . authid = authid <EOL> self . authrole = authrole <EOL> self . authextra = authextra <EOL> self . session_roles = session_roles <EOL> self . pending_session = pending_session <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" . format ( self . realm , self . authmethods , self . authid , self . authrole , self . authextra , self . session_roles , self . pending_session ) <EOL> class SessionDetails ( object ) : <EOL> """<STR_LIT>""" <EOL> __slots__ = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> def __init__ ( self , realm , session , authid = None , authrole = None , authmethod = None , authprovider = None , authextra = None ) : <EOL> """<STR_LIT>""" <EOL> assert ( type ( realm ) == six . text_type ) <EOL> assert ( type ( session ) in six . integer_types ) <EOL> assert ( authid is None or type ( authid ) == six . text_type ) <EOL> assert ( authrole is None or type ( authrole ) == six . text_type ) <EOL> assert ( authmethod is None or type ( authmethod ) == six . text_type ) <EOL> assert ( authprovider is None or type ( authprovider ) == six . text_type ) <EOL> assert ( authextra is None or type ( authextra ) == dict ) <EOL> self . realm = realm <EOL> self . session = session <EOL> self . authid = authid <EOL> self . authrole = authrole <EOL> self . authmethod = authmethod <EOL> self . authprovider = authprovider <EOL> self . authextra = authextra <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" . format ( self . realm , self . session , self . authid , self . authrole , self . authmethod , self . authprovider , self . authextra ) <EOL> class CloseDetails ( object ) : <EOL> """<STR_LIT>""" <EOL> REASON_DEFAULT = u"<STR_LIT>" <EOL> REASON_TRANSPORT_LOST = u"<STR_LIT>" <EOL> __slots__ = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT:message>' , <EOL> ) <EOL> def __init__ ( self , reason = None , message = None ) : <EOL> """<STR_LIT>""" <EOL> assert ( reason is None or type ( reason ) == six . text_type ) <EOL> assert ( message is None or type ( message ) == six . text_type ) <EOL> self . reason = reason <EOL> self . message = message <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" . format ( self . reason , self . message ) <EOL> class SubscribeOptions ( object ) : <EOL> """<STR_LIT>""" <EOL> __slots__ = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> def __init__ ( self , match = None , details_arg = None ) : <EOL> """<STR_LIT>""" <EOL> assert ( match is None or ( type ( match ) == six . text_type and match in [ u'<STR_LIT>' , u'<STR_LIT>' , u'<STR_LIT>' ] ) ) <EOL> assert ( details_arg is None or type ( details_arg ) == str ) <EOL> self . match = match <EOL> self . details_arg = details_arg <EOL> def message_attr ( self ) : <EOL> """<STR_LIT>""" <EOL> options = { } <EOL> if self . match is not None : <EOL> options [ u'<STR_LIT>' ] = self . match <EOL> return options <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" . format ( self . match , self . details_arg ) <EOL> class EventDetails ( object ) : <EOL> """<STR_LIT>""" <EOL> __slots__ = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> def __init__ ( self , publication , publisher = None , publisher_authid = None , publisher_authrole = None , topic = None , enc_algo = None ) : <EOL> """<STR_LIT>""" <EOL> assert ( type ( publication ) in six . integer_types ) <EOL> assert ( publisher is None or type ( publisher ) in six . integer_types ) <EOL> assert ( publisher_authid is None or type ( publisher_authid ) == six . text_type ) <EOL> assert ( publisher_authrole is None or type ( publisher_authrole ) == six . text_type ) <EOL> assert ( topic is None or type ( topic ) == six . text_type ) <EOL> assert ( enc_algo is None or ( type ( enc_algo ) == six . text_type and enc_algo in [ u'<STR_LIT>' ] ) ) <EOL> self . publication = publication <EOL> self . publisher = publisher <EOL> self . publisher_authid = publisher_authid <EOL> self . publisher_authrole = publisher_authrole <EOL> self . topic = topic <EOL> self . enc_algo = enc_algo <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" . format ( self . publication , self . publisher , self . publisher_authid , self . publisher_authrole , self . topic , self . enc_algo ) <EOL> class PublishOptions ( object ) : <EOL> """<STR_LIT>""" <EOL> __slots__ = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> def __init__ ( self , <EOL> acknowledge = None , <EOL> exclude_me = None , <EOL> exclude = None , <EOL> exclude_authid = None , <EOL> exclude_authrole = None , <EOL> eligible = None , <EOL> eligible_authid = None , <EOL> eligible_authrole = None ) : <EOL> """<STR_LIT>""" <EOL> assert ( acknowledge is None or type ( acknowledge ) == bool ) <EOL> assert ( exclude_me is None or type ( exclude_me ) == bool ) <EOL> assert ( exclude is None or type ( exclude ) in six . integer_types or ( type ( exclude ) == list and all ( type ( x ) in six . integer_types for x in exclude ) ) ) <EOL> assert ( exclude_authid is None or type ( exclude_authid ) == six . text_type or ( type ( exclude_authid ) == list and all ( type ( x ) == six . text_type for x in exclude_authid ) ) ) <EOL> assert ( exclude_authrole is None or type ( exclude_authrole ) == six . text_type or ( type ( exclude_authrole ) == list and all ( type ( x ) == six . text_type for x in exclude_authrole ) ) ) <EOL> assert ( eligible is None or type ( eligible ) in six . integer_types or ( type ( eligible ) == list and all ( type ( x ) in six . integer_types for x in eligible ) ) ) <EOL> assert ( eligible_authid is None or type ( eligible_authid ) == six . text_type or ( type ( eligible_authid ) == list and all ( type ( x ) == six . text_type for x in eligible_authid ) ) ) <EOL> assert ( eligible_authrole is None or type ( eligible_authrole ) == six . text_type or ( type ( eligible_authrole ) == list and all ( type ( x ) == six . text_type for x in eligible_authrole ) ) ) <EOL> self . acknowledge = acknowledge <EOL> self . exclude_me = exclude_me <EOL> self . exclude = exclude <EOL> self . exclude_authid = exclude_authid <EOL> self . exclude_authrole = exclude_authrole <EOL> self . eligible = eligible <EOL> self . eligible_authid = eligible_authid <EOL> self . eligible_authrole = eligible_authrole <EOL> def message_attr ( self ) : <EOL> """<STR_LIT>""" <EOL> options = { } <EOL> if self . acknowledge is not None : <EOL> options [ u'<STR_LIT>' ] = self . acknowledge <EOL> if self . exclude_me is not None : <EOL> options [ u'<STR_LIT>' ] = self . exclude_me <EOL> if self . exclude is not None : <EOL> options [ u'<STR_LIT>' ] = self . exclude if type ( self . exclude ) == list else [ self . exclude ] <EOL> if self . exclude_authid is not None : <EOL> options [ u'<STR_LIT>' ] = self . exclude_authid if type ( self . exclude_authid ) == list else self . exclude_authid <EOL> if self . exclude_authrole is not None : <EOL> options [ u'<STR_LIT>' ] = self . exclude_authrole if type ( self . exclude_authrole ) == list else self . exclude_authrole <EOL> if self . eligible is not None : <EOL> options [ u'<STR_LIT>' ] = self . eligible if type ( self . eligible ) == list else self . eligible <EOL> if self . eligible_authid is not None : <EOL> options [ u'<STR_LIT>' ] = self . eligible_authid if type ( self . eligible_authid ) == list else self . eligible_authid <EOL> if self . eligible_authrole is not None : <EOL> options [ u'<STR_LIT>' ] = self . eligible_authrole if type ( self . eligible_authrole ) == list else self . eligible_authrole <EOL> return options <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" . format ( self . acknowledge , self . exclude_me , self . exclude , self . exclude_authid , self . exclude_authrole , self . eligible , self . eligible_authid , self . eligible_authrole ) <EOL> class RegisterOptions ( object ) : <EOL> """<STR_LIT>""" <EOL> __slots__ = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> def __init__ ( self , match = None , invoke = None , details_arg = None ) : <EOL> """<STR_LIT>""" <EOL> assert ( match is None or ( type ( match ) == six . text_type and match in [ u'<STR_LIT>' , u'<STR_LIT>' , u'<STR_LIT>' ] ) ) <EOL> assert ( invoke is None or ( type ( invoke ) == six . text_type and invoke in [ u'<STR_LIT>' , u'<STR_LIT>' , u'<STR_LIT>' , u'<STR_LIT>' , u'<STR_LIT>' ] ) ) <EOL> assert ( details_arg is None or type ( details_arg ) == str ) <EOL> self . match = match <EOL> self . invoke = invoke <EOL> self . details_arg = details_arg <EOL> def message_attr ( self ) : <EOL> """<STR_LIT>""" <EOL> options = { } <EOL> if self . match is not None : <EOL> options [ u'<STR_LIT>' ] = self . match <EOL> if self . invoke is not None : <EOL> options [ u'<STR_LIT>' ] = self . invoke <EOL> return options <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" . format ( self . match , self . invoke , self . details_arg ) <EOL> class CallDetails ( object ) : <EOL> """<STR_LIT>""" <EOL> __slots__ = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> def __init__ ( self , progress = None , caller = None , caller_authid = None , caller_authrole = None , procedure = None , enc_algo = None ) : <EOL> """<STR_LIT>""" <EOL> assert ( progress is None or callable ( progress ) ) <EOL> assert ( caller is None or type ( caller ) in six . integer_types ) <EOL> assert ( caller_authid is None or type ( caller_authid ) == six . text_type ) <EOL> assert ( caller_authrole is None or type ( caller_authrole ) == six . text_type ) <EOL> assert ( procedure is None or type ( procedure ) == six . text_type ) <EOL> assert ( enc_algo is None or ( type ( enc_algo ) == six . text_type and enc_algo in [ u'<STR_LIT>' ] ) ) <EOL> self . progress = progress <EOL> self . caller = caller <EOL> self . caller_authid = caller_authid <EOL> self . caller_authrole = caller_authrole <EOL> self . procedure = procedure <EOL> self . enc_algo = enc_algo <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" . format ( self . progress , self . caller , self . caller_authid , self . caller_authrole , self . procedure , self . enc_algo ) <EOL> class CallOptions ( object ) : <EOL> """<STR_LIT>""" <EOL> __slots__ = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> def __init__ ( self , <EOL> on_progress = None , <EOL> timeout = None ) : <EOL> """<STR_LIT>""" <EOL> assert ( on_progress is None or callable ( on_progress ) ) <EOL> assert ( timeout is None or ( type ( timeout ) in list ( six . integer_types ) + [ float ] and timeout > <NUM_LIT:0> ) ) <EOL> self . on_progress = on_progress <EOL> self . timeout = timeout <EOL> def message_attr ( self ) : <EOL> """<STR_LIT>""" <EOL> options = { } <EOL> if self . timeout is not None : <EOL> options [ u'<STR_LIT>' ] = self . timeout <EOL> if self . on_progress is not None : <EOL> options [ u'<STR_LIT>' ] = True <EOL> return options <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" . format ( self . on_progress , self . timeout ) <EOL> class CallResult ( object ) : <EOL> """<STR_LIT>""" <EOL> __slots__ = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> def __init__ ( self , * results , ** kwresults ) : <EOL> """<STR_LIT>""" <EOL> enc_algo = kwresults . pop ( '<STR_LIT>' , None ) <EOL> assert ( enc_algo is None or ( type ( enc_algo ) == six . text_type and enc_algo in [ u'<STR_LIT>' ] ) ) <EOL> self . enc_algo = enc_algo <EOL> self . results = results <EOL> self . kwresults = kwresults <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" . format ( self . results , self . kwresults , self . enc_algo ) <EOL> class IPublication ( object ) : <EOL> """<STR_LIT>""" <EOL> def id ( self ) : <EOL> """<STR_LIT>""" <EOL> class ISubscription ( object ) : <EOL> """<STR_LIT>""" <EOL> def id ( self ) : <EOL> """<STR_LIT>""" <EOL> def active ( self ) : <EOL> """<STR_LIT>""" <EOL> def unsubscribe ( self ) : <EOL> """<STR_LIT>""" <EOL> class IRegistration ( object ) : <EOL> """<STR_LIT>""" <EOL> def id ( self ) : <EOL> """<STR_LIT>""" <EOL> def active ( self ) : <EOL> """<STR_LIT>""" <EOL> def unregister ( self ) : <EOL> """<STR_LIT>""" </s>
