(asset_id)
Load info for an asset, given an asset id.

  Args:
    asset_id: The asset to be retrieved.

  Returns:
    The value call results, or None if the asset does not exist.
Load info for an asset, given an asset id.
Load info for an asset given an asset id .
def getInfo(asset_id):
  """Load info for an asset, given an asset id.

  Args:
    asset_id: The asset to be retrieved.

  Returns:
    The value call results, or None if the asset does not exist.
  """
  # Don't use getAsset as it will translate the exception, and we need
  # to handle 404s specially.
  try:
    return _get_cloud_api_resource().projects().assets().get(
        name=_cloud_api_utils.convert_asset_id_to_asset_name(asset_id),
        prettyPrint=False).execute(num_retries=MAX_RETRIES)
  except googleapiclient.errors.HttpError as e:
    if e.resp.status == 404:
      return None
    else:
      raise _translate_cloud_exception(e)
def getInfo ( asset_id ) : # Don't use getAsset as it will translate the exception, and we need # to handle 404s specially. try : return _get_cloud_api_resource ( ) . projects ( ) . assets ( ) . get ( name = _cloud_api_utils . convert_asset_id_to_asset_name ( asset_id ) , prettyPrint = False ) . execute ( num_retries = MAX_RETRIES ) except googleapiclient . errors . HttpError as e : if e . resp . status == 404 : return None else : raise _translate_cloud_exception ( e )