diff --git a/google/cloud/storage/transfer_manager.py b/google/cloud/storage/transfer_manager.py index 1a9497505..8001e40b0 100644 --- a/google/cloud/storage/transfer_manager.py +++ b/google/cloud/storage/transfer_manager.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""Concurrent media operations. This is a PREVIEW FEATURE: API may change.""" +"""Concurrent media operations.""" import concurrent.futures @@ -40,12 +40,6 @@ from google.resumable_media.requests.upload import XMLMPUPart from google.resumable_media.common import DataCorruption -warnings.warn( - "The module `transfer_manager` is a preview feature. Functionality and API " - "may change. This warning will be removed in a future release." -) - - TM_DEFAULT_CHUNK_SIZE = 32 * 1024 * 1024 DEFAULT_MAX_WORKERS = 8 MAX_CRC32C_ZERO_ARRAY_SIZE = 4 * 1024 * 1024 @@ -120,8 +114,6 @@ def upload_many( ): """Upload many files concurrently via a worker pool. - This function is a PREVIEW FEATURE: the API may change in a future version. - :type file_blob_pairs: List(Tuple(IOBase or str, 'google.cloud.storage.blob.Blob')) :param file_blob_pairs: A list of tuples of a file or filename and a blob. Each file will be @@ -278,8 +270,6 @@ def download_many( ): """Download many blobs concurrently via a worker pool. - This function is a PREVIEW FEATURE: the API may change in a future version. - :type blob_file_pairs: List(Tuple('google.cloud.storage.blob.Blob', IOBase or str)) :param blob_file_pairs: A list of tuples of blob and a file or filename. Each blob will be downloaded to the corresponding blob by using APIs identical to blob.download_to_file() or blob.download_to_filename() as appropriate. @@ -432,8 +422,6 @@ def upload_many_from_filenames( ): """Upload many files concurrently by their filenames. - This function is a PREVIEW FEATURE: the API may change in a future version. - The destination blobs are automatically created, with blob names based on the source filenames and the blob_name_prefix. @@ -622,8 +610,6 @@ def download_many_to_path( ): """Download many files concurrently by their blob names. - This function is a PREVIEW FEATURE: the API may change in a future version. - The destination files are automatically created, with paths based on the source blob_names and the destination_directory. @@ -792,8 +778,6 @@ def download_chunks_concurrently( ): """Download a single file in chunks, concurrently. - This function is a PREVIEW FEATURE: the API may change in a future version. - In some environments, using this feature with mutiple processes will result in faster downloads of large files. diff --git a/tests/unit/test_transfer_manager.py b/tests/unit/test_transfer_manager.py index c8f6e560e..54284becd 100644 --- a/tests/unit/test_transfer_manager.py +++ b/tests/unit/test_transfer_manager.py @@ -14,11 +14,9 @@ import pytest -with pytest.warns(UserWarning): - from google.cloud.storage import transfer_manager - from google.cloud.storage import Blob from google.cloud.storage import Client +from google.cloud.storage import transfer_manager from google.api_core import exceptions