@GoogleCloudBaseHook.catch_http_exception<EOL><INDENT>@GoogleCloudBaseHook.fallback_to_default_project_id<EOL>def update_product(<EOL>self,<EOL>product,<EOL>location=None,<EOL>product_id=None,<EOL>update_mask=None,<EOL>project_id=None,<EOL>retry=None,<EOL>timeout=None,<EOL>metadata=None,<EOL>):<DEDENT>
client = self.get_conn()<EOL>product = self.product_name_determiner.get_entity_with_name(product, product_id, location, project_id)<EOL>self.log.info('<STR_LIT>', product.name)<EOL>response = client.update_product(<EOL>product=product, update_mask=update_mask, retry=retry, timeout=timeout, metadata=metadata<EOL>)<EOL>self.log.info('<STR_LIT>', response.name if response else '<STR_LIT>')<EOL>self.log.debug('<STR_LIT>', response)<EOL>return MessageToDict(response)<EOL>
For the documentation see:
:class:`~airflow.contrib.operators.gcp_vision_operator.CloudVisionProductUpdateOperator`