def update_function(self, name, body, update_mask):
response = self.get_conn().projects().locations().functions().patch(<EOL>updateMask="<STR_LIT:U+002C>".join(update_mask),<EOL>name=name,<EOL>body=body<EOL>).execute(num_retries=self.num_retries)<EOL>operation_name = response["<STR_LIT:name>"]<EOL>self._wait_for_operation_to_complete(operation_name=operation_name)<EOL>
Updates Cloud Functions according to the specified update mask.

:param name: The name of the function.
:type name: str
:param body: The body required by the cloud function patch API.
:type body: dict
:param update_mask: The update mask - array of fields that should be patched.
:type update_mask: [str]
:return: None