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