class_docstr: Abstract class interacting with CAIP or Vertex Prediction service.
class_docstr_tok: ["Abstract","class","interacting","with","CAIP","or","Vertex","Prediction","service","."]
docstr: Deletes a CAIP model and model version or Vertex endpoint and model if exists.
  
  Args:
    ai_platform_serving_args: Dictionary containing arguments for pushing to
      AI Platform.
    model_version_name: Model version or Vertex endpoint being deleted.
      Required if delete_model_endpoint is False, otherwise not needed.
    delete_model_endpoint: Whether CAIP model or Vertex endpoint should be
      deleted.
  
  Raises:
    RuntimeError: if an error is encountered when trying to delete.
docstr_tok: ["Deletes","a","CAIP","model","and","model","version","or","Vertex","endpoint","and","model","if","exists",".","Args",":","ai_platform_serving_args",":","Dictionary","containing","arguments","for","pushing","to","AI","Platform",".","model_version_name",":","Model","version","or","Vertex","endpoint","being","deleted",".","Required","if","delete_model_endpoint","is","False",",","otherwise","not","needed",".","delete_model_endpoint",":","Whether","CAIP","model","or","Vertex","endpoint","should","be","deleted",".","Raises",":","RuntimeError",":","if","an","error","is","encountered","when","trying","to","delete","."]
code: def delete_model_from_aip_if_exists(
      self,
      ai_platform_serving_args: Dict[str, Any],
      model_version_name: str,
      delete_model_endpoint: Optional[bool] = False,
  ) -> None:
      """Deletes a CAIP model and model version or Vertex endpoint and model if exists.
  
      Args:
        ai_platform_serving_args: Dictionary containing arguments for pushing to
          AI Platform.
        model_version_name: Model version or Vertex endpoint being deleted.
          Required if delete_model_endpoint is False, otherwise not needed.
        delete_model_endpoint: Whether CAIP model or Vertex endpoint should be
          deleted.
  
      Raises:
        RuntimeError: if an error is encountered when trying to delete.
      """
      pass
  
imports: import abc
  import sys
  import time
  from typing import Any, Dict, Optional, Union
  from absl import logging
  from google.cloud import aiplatform
  from googleapiclient import discovery
  from googleapiclient import errors
  import tensorflow
label_desc: Use image node_id 3 for calling the AbstractPredictionClient obj's underlying member method code with example usage: obj.delete_model_from_aip_if_exists(ai_platform_serving_args, model_version_name, delete_model_endpoint) without return types