(self, name_value)
Change the name of the sketch to a new value.
Change the name of the sketch to a new value.
Change the name of the sketch to a new value .
def name(self, name_value):
        """Change the name of the sketch to a new value."""
        if not isinstance(name_value, str):
            logger.error('Unable to change the name to a non string value')
            return

        resource_url = '{0:s}/sketches/{1:d}/'.format(
            self.api.api_root, self.id)

        data = {
            'name': name_value,
        }
        response = self.api.session.post(resource_url, json=data)
        _ = error.check_return_status(response, logger)

        # Force the new name to be re-loaded.
        self._sketch_name = ''
        _ = self.lazyload_data(refresh_cache=True)
def name ( self , name_value ) : if not isinstance ( name_value , str ) : logger . error ( 'Unable to change the name to a non string value' ) return resource_url = '{0:s}/sketches/{1:d}/' . format ( self . api . api_root , self . id ) data = { 'name' : name_value , } response = self . api . session . post ( resource_url , json = data ) _ = error . check_return_status ( response , logger ) # Force the new name to be re-loaded. self . _sketch_name = '' _ = self . lazyload_data ( refresh_cache = True )