Пример #1
0
 def prepare_update_properties(self, json_snippet):
     '''
     Removes any properties which are not update_allowed, then processes
     as for prepare_properties.
     '''
     p = Properties(self.properties_schema,
                    json_snippet.get('Properties', {}),
                    self._resolve_runtime_data, self.name, self.context)
     props = dict((k, v) for k, v in p.items()
                  if p.props.get(k).schema.update_allowed)
     return props
Пример #2
0
 def prepare_update_properties(self, json_snippet):
     '''
     Removes any properties which are not update_allowed, then processes
     as for prepare_properties.
     '''
     p = Properties(self.properties_schema,
                    json_snippet.get('Properties', {}),
                    self._resolve_runtime_data,
                    self.name,
                    self.context)
     props = dict((k, v) for k, v in p.items()
                  if p.props.get(k).schema.update_allowed)
     return props
Пример #3
0
    def prepare_update_properties(self, json_snippet):
        '''
        Prepares the property values so that they can be passed directly to
        the Neutron update call.

        Removes any properties which are not update_allowed, then processes
        as for prepare_properties.
        '''
        p = Properties(self.properties_schema,
                       json_snippet.get('Properties', {}),
                       self._resolve_runtime_data, self.name, self.context)
        update_props = dict((k, v) for k, v in p.items()
                            if p.props.get(k).schema.update_allowed)

        props = self.prepare_properties(update_props,
                                        self.physical_resource_name())
        return props
Пример #4
0
    def prepare_update_properties(self, json_snippet):
        '''
        Prepares the property values so that they can be passed directly to
        the Neutron update call.

        Removes any properties which are not update_allowed, then processes
        as for prepare_properties.
        '''
        p = Properties(self.properties_schema,
                       json_snippet.get('Properties', {}),
                       self._resolve_runtime_data,
                       self.name)
        update_props = dict((k, v) for k, v in p.items()
                            if p.props.get(k).schema.update_allowed)

        props = self.prepare_properties(
            update_props,
            self.physical_resource_name())
        return props