airflow/contrib/hooks/gcp_vision_hook.py
def delete_reference_image(
        self,
        location,
        product_id,
        reference_image_id,
        project_id=None,
        retry=None,
        timeout=None,
        metadata=None,
    ):
        """
        For the documentation see:
        :py:class:`~airflow.contrib.operators.gcp_vision_operator.CloudVisionReferenceImageCreateOperator`
        """
        client = self.get_conn()
        self.log.info('Deleting ReferenceImage')
        name = ProductSearchClient.reference_image_path(
            project=project_id, location=location, product=product_id, reference_image=reference_image_id
        )
        response = client.delete_reference_image(name=name, retry=retry, timeout=timeout, metadata=metadata)
        self.log.info('ReferenceImage with the name [%s] deleted.', name)

        return MessageToDict(response)
def delete_reference_image(
        self,
        location,
        product_id,
        reference_image_id,
        project_id=None,
        retry=None,
        timeout=None,
        metadata=None,
    ):
        """
        For the documentation see:
        :py:class:`~airflow.contrib.operators.gcp_vision_operator.CloudVisionReferenceImageCreateOperator`
        """
        client = self.get_conn()
        self.log.info('Deleting ReferenceImage')
        name = ProductSearchClient.reference_image_path(
            project=project_id, location=location, product=product_id, reference_image=reference_image_id
        )
        response = client.delete_reference_image(name=name, retry=retry, timeout=timeout, metadata=metadata)
        self.log.info('ReferenceImage with the name [%s] deleted.', name)

        return MessageToDict(response)
def delete_reference_image ( self , location , product_id , reference_image_id , project_id = None , retry = None , timeout = None , metadata = None , ) : client = self . get_conn ( ) self . log . info ( 'Deleting ReferenceImage' ) name = ProductSearchClient . reference_image_path ( project = project_id , location = location , product = product_id , reference_image = reference_image_id ) response = client . delete_reference_image ( name = name , retry = retry , timeout = timeout , metadata = metadata ) self . log . info ( 'ReferenceImage with the name [%s] deleted.' , name ) return MessageToDict ( response )
For the documentation see:
        :py:class:`~airflow.contrib.operators.gcp_vision_operator.CloudVisionReferenceImageCreateOperator`
For the documentation see : : py : class : ~airflow . contrib . operators . gcp_vision_operator . CloudVisionReferenceImageCreateOperator