

def dataset_resource(self, ref_id, friendly_name=None, description=None, access=None):
    'See\n        https://developers.google.com/bigquery/docs/reference/v2/datasets#resource\n\n        Parameters\n        ----------\n        ref_id : str\n            Dataset id (the reference id, not the integer id)\n        friendly_name : str, optional\n            An optional descriptive name for the dataset\n        description : str, optional\n            An optional description for the dataset\n        access : list, optional\n            Indicating access permissions\n\n        Returns\n        -------\n        dict\n            Representing BigQuery dataset resource\n        '
    data = {
        'datasetReference': {
            'datasetId': ref_id,
            'projectId': self.project_id,
        },
    }
    if friendly_name:
        data['friendlyName'] = friendly_name
    if description:
        data['description'] = description
    if access:
        data['access'] = access
    return data

dataset/ETHPy150Open tylertreat/BigQuery-Python/bigquery/client.py BigQueryClient.dataset_resource/original