class_docstr: Hook for Google Cloud Vertex AI Auto ML APIs.
class_docstr_tok: ["Hook","for","Google","Cloud","Vertex","AI","Auto","ML","APIs","."]
docstr: Returns JobServiceClient.
docstr_tok: ["Returns","JobServiceClient","."]
code: def get_job_service_client(
      self,
      region: str | None = None,
  ) -> JobServiceClient:
      """Returns JobServiceClient."""
      if region and region != "global":
          client_options = ClientOptions(
              api_endpoint=f"{region}-aiplatform.googleapis.com:443"
          )
      else:
          client_options = ClientOptions()
  
      return JobServiceClient(
          credentials=self.get_credentials(),
          client_info=self.client_info,
          client_options=client_options,
      )
  
imports: from __future__ import annotations
  import warnings
  from typing import TYPE_CHECKING, Sequence
  from google.api_core.client_options import ClientOptions
  from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
  from google.cloud.aiplatform import AutoMLForecastingTrainingJob, AutoMLImageTrainingJob, AutoMLTabularTrainingJob, AutoMLTextTrainingJob, AutoMLVideoTrainingJob, datasets, models
  from google.cloud.aiplatform_v1 import JobServiceClient, PipelineServiceClient
  from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
  from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
label_desc: Use image node_id 3 for calling the AutoMLHook obj's underlying member method code with example usage: obj.get_job_service_client(region) and returns: JobServiceClient