airflow.providers.alibaba.cloud.hooks.oss¶
Attributes¶
Classes¶
Interact with Alibaba Cloud OSS, using the oss2 library.  | 
Functions¶
  | 
Unify bucket name and key if a key is provided but not a bucket name.  | 
Unify bucket name and key if a key is provided but not a bucket name.  | 
Module Contents¶
- airflow.providers.alibaba.cloud.hooks.oss.provide_bucket_name(func)[source]¶
 Unify bucket name and key if a key is provided but not a bucket name.
- airflow.providers.alibaba.cloud.hooks.oss.unify_bucket_name_and_key(func)[source]¶
 Unify bucket name and key if a key is provided but not a bucket name.
- class airflow.providers.alibaba.cloud.hooks.oss.OSSHook(region=None, oss_conn_id='oss_default', *args, **kwargs)[source]¶
 Bases:
airflow.providers.common.compat.sdk.BaseHookInteract with Alibaba Cloud OSS, using the oss2 library.
- get_bucket(bucket_name=None)[source]¶
 Return a oss2.Bucket object.
- Parameters:
 bucket_name (str | None) – the name of the bucket
- Returns:
 the bucket object to the bucket name.
- Return type:
 oss2.api.Bucket
- delete_bucket(bucket_name=None)[source]¶
 Delete bucket from OSS.
- Parameters:
 bucket_name (str | None) – the name of the bucket
- create_bucket(bucket_name=None)[source]¶
 Create bucket.
- Parameters:
 bucket_name (str | None) – the name of the bucket