<s> import copy <EOL> from wsme import types as wtypes <EOL> from solum . api . controllers . camp . v1_1 import uris <EOL> from solum . api . controllers import common_types <EOL> from solum . api . controllers . v1 . datamodel import types as api_types <EOL> class ParameterDefinitionLink ( common_types . Link ) : <EOL> """<STR_LIT>""" <EOL> required = bool <EOL> """<STR_LIT>""" <EOL> default_value = wtypes . Base <EOL> """<STR_LIT>""" <EOL> class ParameterDefinitions ( api_types . Base ) : <EOL> """<STR_LIT>""" <EOL> parameter_definition_links = [ ParameterDefinitionLink ] <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , ** kwds ) : <EOL> super ( ParameterDefinitions , self ) . __init__ ( ** kwds ) <EOL> def fix_uris ( self , host_url ) : <EOL> """<STR_LIT>""" <EOL> ret_val = copy . deepcopy ( self ) <EOL> ret_val . uri = uris . PARAM_DEFS_URI_STR % ( host_url , ret_val . uri ) <EOL> for pd_link in ret_val . parameter_definition_links : <EOL> pd_link . href = uris . PARAM_DEF_URI_STR % ( host_url , pd_link . href ) <EOL> return ret_val </s>
