airflow/contrib/hooks/gcp_vision_hook.py
def get_product(self, location, product_id, project_id=None, retry=None, timeout=None, metadata=None):
        """
        For the documentation see:
        :class:`~airflow.contrib.operators.gcp_vision_operator.CloudVisionProductGetOperator`
        """
        client = self.get_conn()
        name = ProductSearchClient.product_path(project_id, location, product_id)
        self.log.info('Retrieving Product: %s', name)
        response = client.get_product(name=name, retry=retry, timeout=timeout, metadata=metadata)
        self.log.info('Product retrieved.')
        self.log.debug('Product retrieved:\n%s', response)
        return MessageToDict(response)
def get_product(self, location, product_id, project_id=None, retry=None, timeout=None, metadata=None):
        """
        For the documentation see:
        :class:`~airflow.contrib.operators.gcp_vision_operator.CloudVisionProductGetOperator`
        """
        client = self.get_conn()
        name = ProductSearchClient.product_path(project_id, location, product_id)
        self.log.info('Retrieving Product: %s', name)
        response = client.get_product(name=name, retry=retry, timeout=timeout, metadata=metadata)
        self.log.info('Product retrieved.')
        self.log.debug('Product retrieved:\n%s', response)
        return MessageToDict(response)
def get_product ( self , location , product_id , project_id = None , retry = None , timeout = None , metadata = None ) : client = self . get_conn ( ) name = ProductSearchClient . product_path ( project_id , location , product_id ) self . log . info ( 'Retrieving Product: %s' , name ) response = client . get_product ( name = name , retry = retry , timeout = timeout , metadata = metadata ) self . log . info ( 'Product retrieved.' ) self . log . debug ( 'Product retrieved:\n%s' , response ) return MessageToDict ( response )
For the documentation see:
        :class:`~airflow.contrib.operators.gcp_vision_operator.CloudVisionProductGetOperator`
For the documentation see : : class : ~airflow . contrib . operators . gcp_vision_operator . CloudVisionProductGetOperator