11# pylint: disable=line-too-long
2- """_summary_ """
2+ """Client used to interact with **Alibaba Cloud Object Storage Service (OSS)**. """
33import copy
44from typing import Optional
55from .config import Config
2929from .filelike import AppendOnlyFile , ReadOnlyFile
3030
3131class Client :
32- """_summary_
32+ """Client
3333 """
3434
3535 def __init__ (self , config : Config , ** kwargs ) -> None :
36- """_summary_
36+ """Initialize Client
3737
3838 Args:
3939 config (Config): _description_
@@ -45,7 +45,7 @@ def __repr__(self) -> str:
4545
4646 def invoke_operation (self , op_input : OperationInput , ** kwargs
4747 ) -> OperationOutput :
48- """_summary_
48+ """invoke operation
4949
5050 Args:
5151 op_input (OperationInput): _description_
@@ -679,7 +679,7 @@ def list_multipart_uploads_paginator(self, **kwargs) -> ListMultipartUploadsPagi
679679
680680 # transfer managers
681681 def downloader (self , ** kwargs ) -> Downloader :
682- """_summary_
682+ """downloader
683683
684684 Args:
685685
@@ -689,7 +689,7 @@ def downloader(self, **kwargs) -> Downloader:
689689 return Downloader (self , ** kwargs )
690690
691691 def uploader (self , ** kwargs ) -> Uploader :
692- """_summary_
692+ """uploader
693693
694694 Returns:
695695 Uploader: _description_
@@ -818,29 +818,29 @@ def is_bucket_exist(self, bucket: str, request_payer: Optional[str] = None, **kw
818818 return result is not None
819819
820820 def put_object_from_file (self , request : models .PutObjectRequest , filepath : str , ** kwargs ) -> models .PutObjectResult :
821- """_summary_
821+ """put an object from file
822822
823823 Args:
824- request (models. PutObjectRequest): _description_
825- filepath (str): _description_
824+ request (PutObjectRequest): Request parameters for PutObject operation.
825+ filepath (str): The path of the file to upload.
826826
827827 Returns:
828- models. PutObjectResult: _description_
828+ PutObjectResult: Response result for PutObject operation.
829829 """
830830 with open (filepath , 'rb' ) as f :
831831 req = copy .copy (request )
832832 req .body = f
833833 return self .put_object (req , ** kwargs )
834834
835835 def get_object_to_file (self , request : models .GetObjectRequest , filepath : str , ** kwargs ) -> models .GetObjectResult :
836- """_summary_
836+ """get an object to file
837837
838838 Args:
839- request (models. GetObjectRequest): _description_
840- filepath (str): _description_
839+ request (GetObjectRequest): Request parameters for GetObject operation.
840+ filepath (str): The path of the file to download.
841841
842842 Returns:
843- models. GetObjectResult: _description_
843+ GetObjectResult: Response result for GetObject operation.
844844 """
845845 prog = None
846846 if request .progress_fn :
0 commit comments