

def update_dataset(self, dataset_id, friendly_name=None, description=None, access=None):
    'Updates information in an existing dataset. The update method\n        replaces the entire dataset resource, whereas the patch method only\n        replaces fields that are provided in the submitted dataset resource.\n\n        Parameters\n        ----------\n        dataset_id : str\n            Unique ``str`` identifying the dataset with the project (the\n            referencedId of the dataset)\n        friendly_name : str, optional\n            An optional descriptive name for the dataset.\n        description : str, optional\n            An optional description of the dataset.\n        access : list, optional\n            Indicating access permissions\n\n        Returns\n        -------\n        Union[bool, dict]\n            ``bool`` indicating if the update was successful or not, or\n            response from BigQuery if swallow_results is set for False.\n        '
    try:
        datasets = self.bigquery.datasets()
        body = self.dataset_resource(dataset_id, friendly_name, description, access)
        request = datasets.update(projectId=self.project_id, datasetId=dataset_id, body=body)
        response = request.execute()
        if self.swallow_results:
            return True
        else:
            return response
    except HttpError as e:
        logger.error('Cannot update dataset {0}: {1}'.format(dataset_id, e))
        if dataset_id.swallow_results:
            return False
        else:
            return {
                
            }

dataset/ETHPy150Open tylertreat/BigQuery-Python/bigquery/client.py BigQueryClient.update_dataset/VarMisuse@126/433 `self`->`dataset_id`