google/cloud/bigquery/dataset.py
def from_api_repr(cls, resource):
        """Factory:  construct a dataset given its API representation

        :type resource: dict
        :param resource: dataset resource representation returned from the API

        :rtype: :class:`~google.cloud.bigquery.dataset.Dataset`
        :returns: Dataset parsed from ``resource``.
        """
        dsr = resource.get('datasetReference')
        if dsr is None or 'datasetId' not in dsr:
            raise KeyError('Resource lacks required identity information:'
                           '["datasetReference"]["datasetId"]')
        dataset_id = dsr['datasetId']
        dataset = cls(DatasetReference(dsr['projectId'], dataset_id))
        dataset._set_properties(resource)
        return dataset
Factory:  construct a dataset given its API representation

        :type resource: dict
        :param resource: dataset resource representation returned from the API

        :rtype: :class:`~google.cloud.bigquery.dataset.Dataset`
        :returns: Dataset parsed from ``resource``.
        
construct a dataset given its API representation
construct a dataset given its API representation
def from_api_repr(cls, resource):
        dsr = resource.get('datasetReference')
        if dsr is None or 'datasetId' not in dsr:
            raise KeyError('Resource lacks required identity information:'
                           '["datasetReference"]["datasetId"]')
        dataset_id = dsr['datasetId']
        dataset = cls(DatasetReference(dsr['projectId'], dataset_id))
        dataset._set_properties(resource)
        return dataset
def from_api_repr ( cls , resource ) : dsr = resource . get ( 'datasetReference' ) if dsr is None or 'datasetId' not in dsr : raise KeyError ( 'Resource lacks required identity information:' '["datasetReference"]["datasetId"]' ) dataset_id = dsr [ 'datasetId' ] dataset = cls ( DatasetReference ( dsr [ 'projectId' ] , dataset_id ) ) dataset . _set_properties ( resource ) return dataset
Factory:  construct a dataset given its API representation
Factory : construct a dataset given its API representation
"""Factory:  construct a dataset given its API representation

        :type resource: dict
        :param resource: dataset resource representation returned from the API

        :rtype: :class:`~google.cloud.bigquery.dataset.Dataset`
        :returns: Dataset parsed from ``resource``.
        """
Dataset parsed from ``resource``.
Dataset parsed from ` ` resource ` ` .
:class:`~google.cloud.bigquery.dataset.Dataset`
cls
resource
dataset resource representation returned from the API
dataset resource representation returned from the API