<s> from ooi . occi . core import action <EOL> from ooi . occi . core import attribute as attr <EOL> from ooi . occi . core import kind <EOL> from ooi . occi . core import mixin <EOL> from ooi . occi . core import resource <EOL> from ooi . occi import helpers <EOL> up = action . Action ( helpers . build_scheme ( '<STR_LIT>' ) , <EOL> "<STR_LIT>" , "<STR_LIT>" ) <EOL> down = action . Action ( helpers . build_scheme ( '<STR_LIT>' ) , <EOL> "<STR_LIT>" , "<STR_LIT>" ) <EOL> class NetworkResource ( resource . Resource ) : <EOL> attributes = attr . AttributeCollection ( [ "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" ] ) <EOL> actions = ( up , down ) <EOL> kind = kind . Kind ( helpers . build_scheme ( '<STR_LIT>' ) , '<STR_LIT>' , <EOL> '<STR_LIT>' , attributes , '<STR_LIT>' , <EOL> actions = actions , <EOL> related = [ resource . Resource . kind ] ) <EOL> def __init__ ( self , title , summary = None , id = None , vlan = None , label = None , <EOL> state = None , mixins = [ ] ) : <EOL> super ( NetworkResource , self ) . __init__ ( title , mixins , summary = summary , <EOL> id = id ) <EOL> self . attributes [ "<STR_LIT>" ] = attr . MutableAttribute ( <EOL> "<STR_LIT>" , vlan ) <EOL> self . attributes [ "<STR_LIT>" ] = attr . MutableAttribute ( <EOL> "<STR_LIT>" , label ) <EOL> self . attributes [ "<STR_LIT>" ] = attr . InmutableAttribute ( <EOL> "<STR_LIT>" , state ) <EOL> @ property <EOL> def vlan ( self ) : <EOL> return self . attributes [ "<STR_LIT>" ] . value <EOL> @ vlan . setter <EOL> def vlan ( self , value ) : <EOL> self . attributes [ "<STR_LIT>" ] . value = value <EOL> @ property <EOL> def label ( self ) : <EOL> return self . attributes [ "<STR_LIT>" ] . value <EOL> @ label . setter <EOL> def label ( self , value ) : <EOL> self . attributes [ "<STR_LIT>" ] . value = value <EOL> @ property <EOL> def state ( self ) : <EOL> return self . attributes [ "<STR_LIT>" ] . value <EOL> ip_network = mixin . Mixin ( helpers . build_scheme ( "<STR_LIT>" ) , <EOL> "<STR_LIT>" , "<STR_LIT>" , <EOL> attributes = attr . AttributeCollection ( [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" ] ) ) </s>
