class_docstr: Interact with Alibaba Cloud OSS, using the oss2 library.
class_docstr_tok: ["Interact","with","Alibaba","Cloud","OSS",",","using","the","oss2","library","."]
code: def __init__(
      self,
      region: str | None = None,
      oss_conn_id="oss_default",
      *args,
      **kwargs,
  ) -> None:
      self.oss_conn_id = oss_conn_id
      self.oss_conn = self.get_connection(oss_conn_id)
      self.region = (
          self.get_default_region() if region is None else region
      )
      super().__init__(*args, **kwargs)
  
imports: from __future__ import annotations
  from functools import wraps
  from inspect import signature
  from typing import TYPE_CHECKING, Callable, TypeVar, cast
  from urllib.parse import urlsplit
  import oss2
  from oss2.exceptions import ClientError
  from airflow.exceptions import AirflowException
  from airflow.hooks.base import BaseHook
label_desc: Use image node_id 1 to create a new OSSHook object from inherited base classes: BaseHook with example: obj = OSSHook(region, oss_conn_id)