code: def update(
      self,
      deployment_config: DeploymentConfig = None,
      replica_config: ReplicaConfig = None,
      version: str = None,
      route_prefix: str = None,
  ) -> "DeploymentInfo":
      return DeploymentInfo(
          deployment_config=deployment_config or self.deployment_config,
          replica_config=replica_config or self.replica_config,
          start_time_ms=self.start_time_ms,
          deployer_job_id=self.deployer_job_id,
          actor_name=self.actor_name,
          version=version or self.version,
          end_time_ms=self.end_time_ms,
          route_prefix=route_prefix or self.route_prefix,
          docs_path=self.docs_path,
          ingress=self.ingress,
          target_capacity=self.target_capacity,
          target_capacity_direction=self.target_capacity_direction,
      )
  
file_path: ray/python/ray/serve/_private/deployment_info.py
imports: from typing import Any, Dict, Optional
  import ray
  from ray.serve._private.autoscaling_policy import AutoscalingPolicyManager
  from ray.serve._private.common import TargetCapacityDirection
  from ray.serve._private.config import DeploymentConfig, ReplicaConfig
  from ray.serve._private.constants import REPLICA_CONTROL_PLANE_CONCURRENCY_GROUP
  from ray.serve.generated.serve_pb2 import DeploymentInfo
  from ray.serve.generated.serve_pb2 import TargetCapacityDirection
label_desc: Use image node_id 4 for calling the DeploymentInfo obj's underlying member method code with example usage: obj.update(deployment_config, replica_config, version, route_prefix) and returns: DeploymentInfo