@snippet
def dataset_patch(client, to_delete):
 DATASET_NAME = ('dataset_patch_%d' % (_millis(),))
 dataset = client.dataset(DATASET_NAME)
 dataset.description = ORIGINAL_DESCRIPTION
 dataset.create()
 to_delete.append(dataset)
 ONE_DAY_MS = (((24 * 60) * 60) * 1000)
 assert (dataset.description == ORIGINAL_DESCRIPTION)
 dataset.patch(description=PATCHED_DESCRIPTION, default_table_expiration_ms=ONE_DAY_MS)
 assert (dataset.description == PATCHED_DESCRIPTION)
 assert (dataset.default_table_expiration_ms == ONE_DAY_MS)

@ snippet def dataset_patch ( client , to_delete ) : DATASET_NAME = ( 'dataset_patch_%d' % ( _millis ( ) , ) ) dataset = client . dataset ( DATASET_NAME ) dataset . description = ORIGINAL_DESCRIPTION dataset . create ( ) to_delete . append ( dataset ) ONE_DAY_MS = ( ( ( 24 * 60 ) * 60 ) * 1000 ) assert ( dataset . description == ORIGINAL_DESCRIPTION ) dataset . patch ( description = PATCHED_DESCRIPTION , default_table_expiration_ms = ONE_DAY_MS ) assert ( dataset . description == PATCHED_DESCRIPTION ) assert ( dataset . default_table_expiration_ms == ONE_DAY_MS )
patch a datasets metadata .