class_docstr: Hook for Google Cloud Data Loss Prevention (DLP) APIs.
  
  Cloud DLP allows clients to detect the presence of Personally Identifiable
  Information (PII) and other privacy-sensitive data in user-supplied,
  unstructured data streams, like text blocks or images. The service also
  includes methods for sensitive data redaction and scheduling of data scans
  on Google Cloud based data sets.
  
  :param gcp_conn_id: The connection ID to use when fetching connection info.
  :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.
class_docstr_tok: ["Hook","for","Google","Cloud","Data","Loss","Prevention","(","DLP",")","APIs",".","Cloud","DLP","allows","clients","to","detect","the","presence","of","Personally","Identifiable","Information","(","PII",")","and","other","privacy-sensitive","data","in","user-supplied",",","unstructured","data","streams",",","like","text","blocks","or","images",".","The","service","also","includes","methods","for","sensitive","data","redaction","and","scheduling","of","data","scans","on","Google","Cloud","based","data","sets",".",":","param","gcp_conn_id",":","The","connection","ID","to","use","when","fetching","connection","info",".",":","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","."]
docstr: Gets a stored info type.
  
  :param stored_info_type_id: The ID of the stored info type to be read.
  :param organization_id: (Optional) The organization ID. Required to set this
      field if parent resource is an organization.
  :param project_id: (Optional) Google Cloud project ID where the
      DLP Instance exists. Only set this field if the parent resource is
      a project instead of an organization.
  :param retry: (Optional) A retry object used to retry requests.
      If None is specified, requests will not be retried.
  :param timeout: (Optional) The amount of time, in seconds, to wait for the request
      to complete. Note that if retry is specified, the timeout applies to each
      individual attempt.
  :param metadata: (Optional) Additional metadata that is provided to the method.
docstr_tok: ["Gets","a","stored","info","type",".",":","param","stored_info_type_id",":","The","ID","of","the","stored","info","type","to","be","read",".",":","param","organization_id",":","(","Optional",")","The","organization","ID",".","Required","to","set","this","field","if","parent","resource","is","an","organization",".",":","param","project_id",":","(","Optional",")","Google","Cloud","project","ID","where","the","DLP","Instance","exists",".","Only","set","this","field","if","the","parent","resource","is","a","project","instead","of","an","organization",".",":","param","retry",":","(","Optional",")","A","retry","object","used","to","retry","requests",".","If","None","is","specified",",","requests","will","not","be","retried",".",":","param","timeout",":","(","Optional",")","The","amount","of","time",",","in","seconds",",","to","wait","for","the","request","to","complete",".","Note","that","if","retry","is","specified",",","the","timeout","applies","to","each","individual","attempt",".",":","param","metadata",":","(","Optional",")","Additional","metadata","that","is","provided","to","the","method","."]
code: def get_stored_info_type(
      self,
      stored_info_type_id: str,
      organization_id: str | None = None,
      project_id: str | None = None,
      retry: Retry | _MethodDefault = DEFAULT,
      timeout: float | None = None,
      metadata: Sequence[tuple[str, str]] = (),
  ) -> StoredInfoType:
      """
      Gets a stored info type.
  
      :param stored_info_type_id: The ID of the stored info type to be read.
      :param organization_id: (Optional) The organization ID. Required to set this
          field if parent resource is an organization.
      :param project_id: (Optional) Google Cloud project ID where the
          DLP Instance exists. Only set this field if the parent resource is
          a project instead of an organization.
      :param retry: (Optional) A retry object used to retry requests.
          If None is specified, requests will not be retried.
      :param timeout: (Optional) The amount of time, in seconds, to wait for the request
          to complete. Note that if retry is specified, the timeout applies to each
          individual attempt.
      :param metadata: (Optional) Additional metadata that is provided to the method.
      """
      client = self.get_conn()
  
      if not stored_info_type_id:
          raise AirflowException(
              "Please provide the ID of the stored info type to be read."
          )
  
      # Handle project_id from connection configuration
      project_id = project_id or self.project_id
  
      if organization_id:
          name = DlpServiceClient.stored_info_type_path(
              organization_id, stored_info_type_id
          )
      elif project_id:
          name = self._project_stored_info_type_path(
              project_id, stored_info_type_id
          )
      else:
          raise AirflowException(
              "Please provide either organization_id or project_id."
          )
  
      return client.get_stored_info_type(
          request={
              "name": name,
          },
          retry=retry,
          timeout=timeout,
          metadata=metadata,
      )
  
imports: from __future__ import annotations
  import re
  import time
  from typing import TYPE_CHECKING, Sequence
  from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
  from google.cloud.dlp import DlpServiceClient
  from google.cloud.dlp_v2.types import ByteContentItem, ContentItem, DeidentifyConfig, DeidentifyContentResponse, DeidentifyTemplate, DlpJob, InspectConfig, InspectContentResponse, InspectJobConfig, InspectTemplate, JobTrigger, ListInfoTypesResponse, RedactImageRequest, RedactImageResponse, ReidentifyContentResponse, RiskAnalysisJobConfig, StoredInfoType, StoredInfoTypeConfig
  from google.protobuf.field_mask_pb2 import FieldMask
  from airflow.exceptions import AirflowException
  from airflow.providers.google.common.consts import CLIENT_INFO
  from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID, GoogleBaseHook
label_desc: Use image node_id 22 for calling the CloudDLPHook obj's underlying member method code with example usage: obj.get_stored_info_type(stored_info_type_id, organization_id, project_id, retry, timeout, metadata) and returns: client