def synch(self, asset_manager_id, **params):
self.logger.info('<STR_LIT>')<EOL>url = '<STR_LIT>' % (self.endpoint, asset_manager_id)<EOL>response = self.session.put(url, params=params)<EOL>if response.ok:<EOL><INDENT>count = response.json().get('<STR_LIT:count>', <NUM_LIT:0>)<EOL>self.logger.info('<STR_LIT>', count)<EOL>return count<EOL><DEDENT>else:<EOL><INDENT>self.logger.error(response.text)<EOL>response.raise_for_status()<EOL><DEDENT>
This method invokes a request to synch the assets in
dynamodb and/or elastic search with the SQL assets.

Args:
    asset_manager_id (int): The id of the asset manager that owns the assets to be synched
    cache (bool): Whether to synch the assets in DynamoDB
    search (bool): Whether to synch the assets in Elasticsearch
    page_no (int): The current page of assets to be synched.
    page_size (int): The number of assets to be synched per request.

Returns:
    int: the number of assets synched.