GoogleCloudStorage
- bucket_name (str): The name of the bucket.
- create_if_not_exists (bool, optional): Whether to create the bucket if it does not exist. Defaults to True.
- anonymous (bool, optional): Whether to use anonymous access. Defaults to False.
- References:
- https: //cloud.google.com/storage
- https: //cloud.google.com/docs/authentication/api-keys
init
canonicalize_path
- file_path (PurePath): The path to be canonicalized.
_prepare_and_check
_put_file
- file_key (str): The path to the object in the bucket.
- file (File): The file to be uploaded.
_get_file
- file_key (str): The path to the object in the bucket.
- filename (str): The name of the file.
_upload_file
- local_file_path (Path): The path to the local file to be uploaded.
- remote_file_key (str): The path to the object in the bucket.
_download_file
- local_file_path (Path): The path to the local file to be saved.
- remote_file_key (str): The key of the object in the bucket.
_object_exists
- file_key: The key of the object in the bucket.