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

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

        :type dataset: :class:`google.cloud.bigquery.Dataset`
        :param dataset: The dataset containing the table.

        :rtype: :class:`google.cloud.bigquery.table.Table`
        :returns: Table parsed from ``resource``.
        """
        from google.cloud.bigquery import dataset

        if ('tableReference' not in resource or
                'tableId' not in resource['tableReference']):
            raise KeyError('Resource lacks required identity information:'
                           '["tableReference"]["tableId"]')
        project_id = resource['tableReference']['projectId']
        table_id = resource['tableReference']['tableId']
        dataset_id = resource['tableReference']['datasetId']
        dataset_ref = dataset.DatasetReference(project_id, dataset_id)

        table = cls(dataset_ref.table(table_id))
        table._set_properties(resource)
        return table
Factory:  construct a table given its API representation

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

        :type dataset: :class:`google.cloud.bigquery.Dataset`
        :param dataset: The dataset containing the table.

        :rtype: :class:`google.cloud.bigquery.table.Table`
        :returns: Table parsed from ``resource``.
        
construct a table given its API representation
construct a table given its API representation
def from_api_repr(cls, resource):
        from google.cloud.bigquery import dataset
        if ('tableReference' not in resource or
                'tableId' not in resource['tableReference']):
            raise KeyError('Resource lacks required identity information:'
                           '["tableReference"]["tableId"]')
        project_id = resource['tableReference']['projectId']
        table_id = resource['tableReference']['tableId']
        dataset_id = resource['tableReference']['datasetId']
        dataset_ref = dataset.DatasetReference(project_id, dataset_id)
        table = cls(dataset_ref.table(table_id))
        table._set_properties(resource)
        return table
def from_api_repr ( cls , resource ) : from google . cloud . bigquery import dataset if ( 'tableReference' not in resource or 'tableId' not in resource [ 'tableReference' ] ) : raise KeyError ( 'Resource lacks required identity information:' '["tableReference"]["tableId"]' ) project_id = resource [ 'tableReference' ] [ 'projectId' ] table_id = resource [ 'tableReference' ] [ 'tableId' ] dataset_id = resource [ 'tableReference' ] [ 'datasetId' ] dataset_ref = dataset . DatasetReference ( project_id , dataset_id ) table = cls ( dataset_ref . table ( table_id ) ) table . _set_properties ( resource ) return table
Factory:  construct a table given its API representation
Factory : construct a table given its API representation
"""Factory:  construct a table given its API representation

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

        :type dataset: :class:`google.cloud.bigquery.Dataset`
        :param dataset: The dataset containing the table.

        :rtype: :class:`google.cloud.bigquery.table.Table`
        :returns: Table parsed from ``resource``.
        """
Table parsed from ``resource``.
Table parsed from ` ` resource ` ` .
:class:`google.cloud.bigquery.table.Table`
cls
resource
table resource representation returned from the API
table resource representation returned from the API
dataset
The dataset containing the table.
The dataset containing the table .