def _update_dataset_maximum_size(deployment, dataset_id, maximum_size):
 (_, node) = _find_manifestation_and_node(deployment, dataset_id)
 deployment = deployment.set(nodes=deployment.nodes.discard(node))
 node = node.transform(['manifestations', dataset_id, 'dataset', 'maximum_size'], maximum_size)
 return deployment.set(nodes=deployment.nodes.add(node))

def _update_dataset_maximum_size ( deployment , dataset_id , maximum_size ) : ( _ , node ) = _find_manifestation_and_node ( deployment , dataset_id ) deployment = deployment . set ( nodes = deployment . nodes . discard ( node ) ) node = node . transform ( [ 'manifestations' , dataset_id , 'dataset' , 'maximum_size' ] , maximum_size ) return deployment . set ( nodes = deployment . nodes . add ( node ) )
update the deployment so that the dataset with the supplied dataset_id has the supplied maximum_size .