parameters: (current_version: ApiVersion)
return_statement: return ApiVersion(current_version.major, max(current_version.minor - 1, 0), 0)
docstring: Computest the oldest API version the client supports. According to the
      specification (see: api/API_VERSIONING.md), Envoy supports up to 2 most
      recent minor versions. Therefore if the latest API version "X.Y.Z", Envoy's
      oldest API version is "X.Y-1.0". Note that the major number is always the
      same as the latest version, and the patch number is always 0. In addition,
      the minor number is at least 0, and the oldest api version cannot be set
      to a previous major number.
  
      Args:
        current_version: the current API version.
  
      Returns:
        the oldest supported API version.
docstring_summary: Computest the oldest API version the client supports. According to the
      specification (see: api/API_VERSIONING.md), Envoy supports up to 2 most
      recent minor versions. Therefore if the latest API version "X.Y.Z", Envoy's
      oldest API version is "X.Y-1.0". Note that the major number is always the
      same as the latest version, and the patch number is always 0. In addition,
      the minor number is at least 0, and the oldest api version cannot be set
      to a previous major number.
docstring_tokens: Computest the oldest API version the client supports . According to the specification ( see : api / API_VERSIONING . md ) Envoy supports up to 2 most recent minor versions . Therefore if the latest API version X . Y . Z Envoy s oldest API version is X . Y - 1 . 0 . Note that the major number is always the same as the latest version and the patch number is always 0 . In addition the minor number is at least 0 and the oldest api version cannot be set to a previous major number .
function: def compute_oldest_api_version(current_version: ApiVersion):
      """Computest the oldest API version the client supports. According to the
      specification (see: api/API_VERSIONING.md), Envoy supports up to 2 most
      recent minor versions. Therefore if the latest API version "X.Y.Z", Envoy's
      oldest API version is "X.Y-1.0". Note that the major number is always the
      same as the latest version, and the patch number is always 0. In addition,
      the minor number is at least 0, and the oldest api version cannot be set
      to a previous major number.
  
      Args:
        current_version: the current API version.
  
      Returns:
        the oldest supported API version.
      """
      return ApiVersion(current_version.major, max(current_version.minor - 1, 0), 0)
function_tokens: def compute_oldest_api_version ( current_version : ApiVersion ) : return ApiVersion ( current_version . major , max ( current_version . minor - 1 , 0 ) , 0 )