google/cloud/bigquery/job.py
def _set_properties(self, api_response):
        """Update properties from resource in body of ``api_response``

        :type api_response: dict
        :param api_response: response returned from an API call
        """
        cleaned = api_response.copy()
        self._scrub_local_properties(cleaned)

        statistics = cleaned.get('statistics', {})
        if 'creationTime' in statistics:
            statistics['creationTime'] = float(statistics['creationTime'])
        if 'startTime' in statistics:
            statistics['startTime'] = float(statistics['startTime'])
        if 'endTime' in statistics:
            statistics['endTime'] = float(statistics['endTime'])

        self._properties.clear()
        self._properties.update(cleaned)
        configuration = cleaned['configuration'][self._JOB_TYPE]
        self._copy_configuration_properties(configuration)

        # For Future interface
        self._set_future_result()
Update properties from resource in body of ``api_response``

        :type api_response: dict
        :param api_response: response returned from an API call
        
Update properties from resource in body of ``api_response``
Update properties from resource in body of ` ` api_response ` `
def _set_properties(self, api_response):
        cleaned = api_response.copy()
        self._scrub_local_properties(cleaned)
        statistics = cleaned.get('statistics', {})
        if 'creationTime' in statistics:
            statistics['creationTime'] = float(statistics['creationTime'])
        if 'startTime' in statistics:
            statistics['startTime'] = float(statistics['startTime'])
        if 'endTime' in statistics:
            statistics['endTime'] = float(statistics['endTime'])
        self._properties.clear()
        self._properties.update(cleaned)
        configuration = cleaned['configuration'][self._JOB_TYPE]
        self._copy_configuration_properties(configuration)
        self._set_future_result()
def _set_properties ( self , api_response ) : cleaned = api_response . copy ( ) self . _scrub_local_properties ( cleaned ) statistics = cleaned . get ( 'statistics' , { } ) if 'creationTime' in statistics : statistics [ 'creationTime' ] = float ( statistics [ 'creationTime' ] ) if 'startTime' in statistics : statistics [ 'startTime' ] = float ( statistics [ 'startTime' ] ) if 'endTime' in statistics : statistics [ 'endTime' ] = float ( statistics [ 'endTime' ] ) self . _properties . clear ( ) self . _properties . update ( cleaned ) configuration = cleaned [ 'configuration' ] [ self . _JOB_TYPE ] self . _copy_configuration_properties ( configuration ) self . _set_future_result ( )
Update properties from resource in body of ``api_response``
Update properties from resource in body of ` ` api_response ` `
"""Update properties from resource in body of ``api_response``

        :type api_response: dict
        :param api_response: response returned from an API call
        """ # For Future interface
self
api_response
response returned from an API call
response returned from an API call