#NEWLINE# def get_resources( self ) : #NEWLINE# #INDENT# resources = [ ] #NEWLINE# res = extensions . ResourceExtension ( 'zadr-vsa' , VsaController ( ) , collection_actions = { #NEWLINE# #INDENT# 'detail' : 'GET' , #NEWLINE# #UNINDENT# } , member_actions = { #NEWLINE# #INDENT# 'add_capacity' : 'POST' , #NEWLINE# 'remove_capacity' : 'POST' , #NEWLINE# 'associate_address' : 'POST' , #NEWLINE# 'disassociate_address' : 'POST' , #NEWLINE# #UNINDENT# } ) #NEWLINE# resources . append ( res ) #NEWLINE# res = extensions . ResourceExtension ( 'volumes' , VsaVolumeController ( ) , collection_actions = { #NEWLINE# #INDENT# 'detail' : 'GET' , #NEWLINE# #UNINDENT# } , parent = dict ( member_name = 'vsa' , collection_name = 'zadr-vsa' ) ) #NEWLINE# resources . append ( resources ) #NEWLINE# res = extensions . ResourceExtension ( 'drives' , VsaDriveController ( ) , collection_actions = { #NEWLINE# #INDENT# 'detail' : 'GET' , #NEWLINE# #UNINDENT# } , parent = dict ( member_name = 'vsa' , collection_name = 'zadr-vsa' ) ) #NEWLINE# resources . append ( res ) #NEWLINE# res = extensions . ResourceExtension ( 'vpools' , VsaVPoolController ( ) , parent = dict ( member_name = 'vsa' , collection_name = 'zadr-vsa' ) ) #NEWLINE# resources . append ( res ) #NEWLINE# res = extensions . ResourceExtension ( 'instances' , VsaVCController ( ) , parent = dict ( member_name = 'vsa' , collection_name = 'zadr-vsa' ) ) #NEWLINE# resources . append ( res ) #NEWLINE# return resources