#NEWLINE# def MakeMetadataDict( self ) : #NEWLINE# #INDENT# 'Project a subset of subscription attributes that can be provided to the user.' #NEWLINE# sub_dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for attr_name in Subscription . _JSON_ATTRIBUTES : #NEWLINE# #INDENT# util . SetIfNotNone ( sub_dict , attr_name , getattr ( sub_dict , attr_name , None ) ) #NEWLINE# #UNINDENT# if self . extra_info : #NEWLINE# #INDENT# sub_dict [ 'extra_info' ] = deepcopy ( self . extra_info ) #NEWLINE# #UNINDENT# return sub_dict