Skip to content

Commit 5c90563

Browse files
authored
feat: launch transfer manager to GA (#1159)
* feat: launch transfer manager to GA * re-add import...
1 parent c7229f2 commit 5c90563

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

google/cloud/storage/transfer_manager.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
"""Concurrent media operations. This is a PREVIEW FEATURE: API may change."""
15+
"""Concurrent media operations."""
1616

1717
import concurrent.futures
1818

@@ -40,12 +40,6 @@
4040
from google.resumable_media.requests.upload import XMLMPUPart
4141
from google.resumable_media.common import DataCorruption
4242

43-
warnings.warn(
44-
"The module `transfer_manager` is a preview feature. Functionality and API "
45-
"may change. This warning will be removed in a future release."
46-
)
47-
48-
4943
TM_DEFAULT_CHUNK_SIZE = 32 * 1024 * 1024
5044
DEFAULT_MAX_WORKERS = 8
5145
MAX_CRC32C_ZERO_ARRAY_SIZE = 4 * 1024 * 1024
@@ -120,8 +114,6 @@ def upload_many(
120114
):
121115
"""Upload many files concurrently via a worker pool.
122116
123-
This function is a PREVIEW FEATURE: the API may change in a future version.
124-
125117
:type file_blob_pairs: List(Tuple(IOBase or str, 'google.cloud.storage.blob.Blob'))
126118
:param file_blob_pairs:
127119
A list of tuples of a file or filename and a blob. Each file will be
@@ -278,8 +270,6 @@ def download_many(
278270
):
279271
"""Download many blobs concurrently via a worker pool.
280272
281-
This function is a PREVIEW FEATURE: the API may change in a future version.
282-
283273
:type blob_file_pairs: List(Tuple('google.cloud.storage.blob.Blob', IOBase or str))
284274
:param blob_file_pairs:
285275
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(
432422
):
433423
"""Upload many files concurrently by their filenames.
434424
435-
This function is a PREVIEW FEATURE: the API may change in a future version.
436-
437425
The destination blobs are automatically created, with blob names based on
438426
the source filenames and the blob_name_prefix.
439427
@@ -622,8 +610,6 @@ def download_many_to_path(
622610
):
623611
"""Download many files concurrently by their blob names.
624612
625-
This function is a PREVIEW FEATURE: the API may change in a future version.
626-
627613
The destination files are automatically created, with paths based on the
628614
source blob_names and the destination_directory.
629615
@@ -792,8 +778,6 @@ def download_chunks_concurrently(
792778
):
793779
"""Download a single file in chunks, concurrently.
794780
795-
This function is a PREVIEW FEATURE: the API may change in a future version.
796-
797781
In some environments, using this feature with mutiple processes will result
798782
in faster downloads of large files.
799783

tests/unit/test_transfer_manager.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@
1414

1515
import pytest
1616

17-
with pytest.warns(UserWarning):
18-
from google.cloud.storage import transfer_manager
19-
2017
from google.cloud.storage import Blob
2118
from google.cloud.storage import Client
19+
from google.cloud.storage import transfer_manager
2220

2321
from google.api_core import exceptions
2422

0 commit comments

Comments
 (0)