class_docstr: Deploys a Model into this Endpoint, creating a DeployedModel within it.
  
  :param project_id: Required. The ID of the Google Cloud project that the service belongs to.
  :param region: Required. The ID of the Google Cloud region that the service belongs to.
  :param endpoint_id:  Required. The name of the Endpoint resource into which to deploy a Model. Format:
      ``projects/{project}/locations/{location}/endpoints/{endpoint}``
  :param deployed_model:  Required. The DeployedModel to be created within the Endpoint. Note that
      [Endpoint.traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] must be updated for
      the DeployedModel to start receiving traffic, either as part of this call, or via
      [EndpointService.UpdateEndpoint][google.cloud.aiplatform.v1.EndpointService.UpdateEndpoint].
  :param traffic_split:  A map from a DeployedModel's ID to the percentage of this Endpoint's traffic
      that should be forwarded to that DeployedModel.
  
      If this field is non-empty, then the Endpoint's
      [traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] will be overwritten with it. To
      refer to the ID of the just being deployed Model, a "0" should be used, and the actual ID of the
      new DeployedModel will be filled in its place by this method. The traffic percentage values must
      add up to 100.
  
      If this field is empty, then the Endpoint's
      [traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] is not updated.
  :param retry: Designation of what errors, if any, should be retried.
  :param timeout: The timeout for this request.
  :param metadata: Strings which should be sent along with the request as metadata.
  :param gcp_conn_id: The connection ID to use connecting to Google Cloud.
  :param impersonation_chain: Optional service account to impersonate using short-term
      credentials, or chained list of accounts required to get the access_token
      of the last account in the list, which will be impersonated in the request.
      If set as a string, the account must grant the originating account
      the Service Account Token Creator IAM role.
      If set as a sequence, the identities from the list must grant
      Service Account Token Creator IAM role to the directly preceding identity, with first
      account from the list granting this role to the originating account (templated).
class_docstr_tok: ["Deploys","a","Model","into","this","Endpoint",",","creating","a","DeployedModel","within","it",".",":","param","project_id",":","Required",".","The","ID","of","the","Google","Cloud","project","that","the","service","belongs","to",".",":","param","region",":","Required",".","The","ID","of","the","Google","Cloud","region","that","the","service","belongs","to",".",":","param","endpoint_id",":","Required",".","The","name","of","the","Endpoint","resource","into","which","to","deploy","a","Model",".","Format",":","``","projects\/","{","project","}","\/locations\/","{","location","}","\/endpoints\/","{","endpoint","}","``",":","param","deployed_model",":","Required",".","The","DeployedModel","to","be","created","within","the","Endpoint",".","Note","that","[","Endpoint.traffic_split","]","[","google.cloud.aiplatform.v1.Endpoint.traffic_split","]","must","be","updated","for","the","DeployedModel","to","start","receiving","traffic",",","either","as","part","of","this","call",",","or","via","[","EndpointService.UpdateEndpoint","]","[","google.cloud.aiplatform.v1.EndpointService.UpdateEndpoint","]",".",":","param","traffic_split",":","A","map","from","a","DeployedModel","'s","ID","to","the","percentage","of","this","Endpoint","'s","traffic","that","should","be","forwarded","to","that","DeployedModel",".","If","this","field","is","non-empty",",","then","the","Endpoint's","[","traffic_split","]","[","google.cloud.aiplatform.v1.Endpoint.traffic_split","]","will","be","overwritten","with","it",".","To","refer","to","the","ID","of","the","just","being","deployed","Model",",","a","``","0","''","should","be","used",",","and","the","actual","ID","of","the","new","DeployedModel","will","be","filled","in","its","place","by","this","method",".","The","traffic","percentage","values","must","add","up","to","100",".","If","this","field","is","empty",",","then","the","Endpoint's","[","traffic_split","]","[","google.cloud.aiplatform.v1.Endpoint.traffic_split","]","is","not","updated",".",":","param","retry",":","Designation","of","what","errors",",","if","any",",","should","be","retried",".",":","param","timeout",":","The","timeout","for","this","request",".",":","param","metadata",":","Strings","which","should","be","sent","along","with","the","request","as","metadata",".",":","param","gcp_conn_id",":","The","connection","ID","to","use","connecting","to","Google","Cloud",".",":","param","impersonation_chain",":","Optional","service","account","to","impersonate","using","short-term","credentials",",","or","chained","list","of","accounts","required","to","get","the","access_token","of","the","last","account","in","the","list",",","which","will","be","impersonated","in","the","request",".","If","set","as","a","string",",","the","account","must","grant","the","originating","account","the","Service","Account","Token","Creator","IAM","role",".","If","set","as","a","sequence",",","the","identities","from","the","list","must","grant","Service","Account","Token","Creator","IAM","role","to","the","directly","preceding","identity",",","with","first","account","from","the","list","granting","this","role","to","the","originating","account","(","templated",")","."]
code: def __init__(
      self,
      *,
      region: str,
      project_id: str,
      endpoint_id: str,
      deployed_model: DeployedModel | dict,
      traffic_split: Sequence | dict | None = None,
      retry: Retry | _MethodDefault = DEFAULT,
      timeout: float | None = None,
      metadata: Sequence[tuple[str, str]] = (),
      gcp_conn_id: str = "google_cloud_default",
      impersonation_chain: str | Sequence[str] | None = None,
      **kwargs,
  ) -> None:
      super().__init__(**kwargs)
      self.region = region
      self.project_id = project_id
      self.endpoint_id = endpoint_id
      self.deployed_model = deployed_model
      self.traffic_split = traffic_split
      self.retry = retry
      self.timeout = timeout
      self.metadata = metadata
      self.gcp_conn_id = gcp_conn_id
      self.impersonation_chain = impersonation_chain
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Sequence
  from google.api_core.exceptions import NotFound
  from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
  from google.cloud.aiplatform_v1.types import DeployedModel, Endpoint, endpoint_service
  from airflow.providers.google.cloud.hooks.vertex_ai.endpoint_service import EndpointServiceHook
  from airflow.providers.google.cloud.links.vertex_ai import VertexAIEndpointLink, VertexAIEndpointListLink, VertexAIModelLink
  from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
label_desc: Use image node_id 1 to create a new DeployModelOperator object from inherited base classes: GoogleCloudBaseOperator with example: obj = DeployModelOperator()