@snippet
def table_patch(client, to_delete):
 DATASET_NAME = ('table_patch_dataset_%d' % (_millis(),))
 TABLE_NAME = ('table_patch_table_%d' % (_millis(),))
 dataset = client.dataset(DATASET_NAME)
 dataset.description = ORIGINAL_DESCRIPTION
 dataset.create()
 to_delete.append(dataset)
 table = dataset.table(TABLE_NAME, SCHEMA)
 table.friendly_name = ORIGINAL_FRIENDLY_NAME
 table.description = ORIGINAL_DESCRIPTION
 table.create()
 to_delete.insert(0, table)
 assert (table.friendly_name == ORIGINAL_FRIENDLY_NAME)
 assert (table.description == ORIGINAL_DESCRIPTION)
 table.patch(friendly_name=PATCHED_FRIENDLY_NAME, description=PATCHED_DESCRIPTION)
 assert (table.friendly_name == PATCHED_FRIENDLY_NAME)
 assert (table.description == PATCHED_DESCRIPTION)

@ snippet def table_patch ( client , to_delete ) : DATASET_NAME = ( 'table_patch_dataset_%d' % ( _millis ( ) , ) ) TABLE_NAME = ( 'table_patch_table_%d' % ( _millis ( ) , ) ) dataset = client . dataset ( DATASET_NAME ) dataset . description = ORIGINAL_DESCRIPTION dataset . create ( ) to_delete . append ( dataset ) table = dataset . table ( TABLE_NAME , SCHEMA ) table . friendly_name = ORIGINAL_FRIENDLY_NAME table . description = ORIGINAL_DESCRIPTION table . create ( ) to_delete . insert ( 0 , table ) assert ( table . friendly_name == ORIGINAL_FRIENDLY_NAME ) assert ( table . description == ORIGINAL_DESCRIPTION ) table . patch ( friendly_name = PATCHED_FRIENDLY_NAME , description = PATCHED_DESCRIPTION ) assert ( table . friendly_name == PATCHED_FRIENDLY_NAME ) assert ( table . description == PATCHED_DESCRIPTION )
patch a tables metadata .