def SetInstallStatusNamePath(deployment_ref, unused_args, request):
  """Sets the request path in the name attribute for install status request.

  Replaces the '/' within the deployment name by '%2F' and appends
  /installStatus at the end of the request path for the install
  status request.

  Args:
    deployment_ref: reference to the deployment object
    unused_args: command line arguments.
    request: API request to be issued

  Returns:
    modified request
  """
  del unused_args  # Unused.
  request.name = '{}/deployments/{}/installStatus'.format(
      deployment_ref.Parent().RelativeName(),
      deployment_ref.deploymentsId.replace('/', '%2F'))
  return request