google-cloud-storage 3.3.0__tar.gz → 3.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {google_cloud_storage-3.3.0/google_cloud_storage.egg-info → google_cloud_storage-3.4.0}/PKG-INFO +1 -1
- {google_cloud_storage-3.3.0/google/cloud/storage_v2 → google_cloud_storage-3.4.0/google/cloud/_storage_v2}/__init__.py +1 -1
- {google_cloud_storage-3.3.0/google/cloud/storage_v2 → google_cloud_storage-3.4.0/google/cloud/_storage_v2}/services/storage/async_client.py +102 -102
- {google_cloud_storage-3.3.0/google/cloud/storage_v2 → google_cloud_storage-3.4.0/google/cloud/_storage_v2}/services/storage/client.py +102 -102
- {google_cloud_storage-3.3.0/google/cloud/storage_v2 → google_cloud_storage-3.4.0/google/cloud/_storage_v2}/services/storage/pagers.py +17 -17
- {google_cloud_storage-3.3.0/google/cloud/storage_v2 → google_cloud_storage-3.4.0/google/cloud/_storage_v2}/services/storage/transports/base.py +2 -2
- {google_cloud_storage-3.3.0/google/cloud/storage_v2 → google_cloud_storage-3.4.0/google/cloud/_storage_v2}/services/storage/transports/grpc.py +49 -49
- {google_cloud_storage-3.3.0/google/cloud/storage_v2 → google_cloud_storage-3.4.0/google/cloud/_storage_v2}/services/storage/transports/grpc_asyncio.py +49 -49
- {google_cloud_storage-3.3.0/google/cloud/storage_v2 → google_cloud_storage-3.4.0/google/cloud/_storage_v2}/types/storage.py +139 -139
- google_cloud_storage-3.4.0/google/cloud/storage/_experimental/async_grpc_client.py +89 -0
- google_cloud_storage-3.4.0/google/cloud/storage/_experimental/grpc_client.py +122 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/_media/_upload.py +41 -3
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/_media/requests/upload.py +9 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/blob.py +49 -11
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/bucket.py +23 -3
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/version.py +1 -1
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0/google_cloud_storage.egg-info}/PKG-INFO +1 -1
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google_cloud_storage.egg-info/SOURCES.txt +20 -15
- google_cloud_storage-3.4.0/tests/data/random_9_MiB_file +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/unit/requests/test_upload.py +65 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/unit/test__upload.py +28 -3
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/system/conftest.py +1 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/system/test__signing.py +13 -39
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/system/test_blob.py +56 -24
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/unit/gapic/storage_v2/test_storage.py +9 -9
- google_cloud_storage-3.4.0/tests/unit/test_async_grpc_client.py +85 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/unit/test_blob.py +25 -1
- google_cloud_storage-3.4.0/tests/unit/test_grpc_client.py +208 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/LICENSE +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/MANIFEST.in +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/README.rst +0 -0
- {google_cloud_storage-3.3.0/google/cloud/storage_v2 → google_cloud_storage-3.4.0/google/cloud/_storage_v2}/gapic_metadata.json +0 -0
- {google_cloud_storage-3.3.0/google/cloud/storage_v2 → google_cloud_storage-3.4.0/google/cloud/_storage_v2}/gapic_version.py +0 -0
- {google_cloud_storage-3.3.0/google/cloud/storage_v2 → google_cloud_storage-3.4.0/google/cloud/_storage_v2}/py.typed +0 -0
- {google_cloud_storage-3.3.0/google/cloud/storage_v2 → google_cloud_storage-3.4.0/google/cloud/_storage_v2}/services/__init__.py +0 -0
- {google_cloud_storage-3.3.0/google/cloud/storage_v2 → google_cloud_storage-3.4.0/google/cloud/_storage_v2}/services/storage/__init__.py +0 -0
- {google_cloud_storage-3.3.0/google/cloud/storage_v2 → google_cloud_storage-3.4.0/google/cloud/_storage_v2}/services/storage/transports/__init__.py +0 -0
- {google_cloud_storage-3.3.0/google/cloud/storage_v2 → google_cloud_storage-3.4.0/google/cloud/_storage_v2}/types/__init__.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/__init__.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/_helpers.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/_http.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/_media/__init__.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/_media/_download.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/_media/_helpers.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/_media/common.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/_media/py.typed +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/_media/requests/__init__.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/_media/requests/_request_helpers.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/_media/requests/download.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/_opentelemetry_tracing.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/_signing.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/acl.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/batch.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/client.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/constants.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/exceptions.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/fileio.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/hmac_key.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/iam.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/ip_filter.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/notification.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/retry.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google/cloud/storage/transfer_manager.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google_cloud_storage.egg-info/dependency_links.txt +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google_cloud_storage.egg-info/not-zip-safe +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google_cloud_storage.egg-info/requires.txt +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/google_cloud_storage.egg-info/top_level.txt +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/setup.cfg +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/setup.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/__init__.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/conformance/README.md +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/conformance/__init__.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/conformance/conftest.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/conformance/retry_strategy_test_data.json +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/conformance/test_conformance.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/data/CloudPlatform_128px_Retina.png +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/data/five-point-one-mb-file.zip +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/data/simple.txt +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/perf/README.md +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/perf/_perf_utils.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/perf/benchmarking.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/perf/profile_w1r3.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/__init__.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/data/brotli.txt +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/data/brotli.txt.br +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/data/favicon.ico +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/data/file.txt +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/data/gzipped.txt +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/data/gzipped.txt.gz +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/data/image1.jpg +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/data/image2.jpg +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/system/__init__.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/system/credentials.json.enc +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/system/requests/__init__.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/system/requests/conftest.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/system/requests/test_download.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/system/requests/test_upload.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/system/utils.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/unit/__init__.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/unit/requests/__init__.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/unit/requests/test__helpers.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/unit/requests/test_download.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/unit/test__download.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/resumable_media/unit/test__helpers.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/system/__init__.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/system/_helpers.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/system/test_bucket.py +1 -1
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/system/test_client.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/system/test_fileio.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/system/test_hmac_key_metadata.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/system/test_kms_integration.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/system/test_notification.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/system/test_transfer_manager.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/unit/__init__.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/unit/gapic/__init__.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/unit/gapic/storage_v2/__init__.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/unit/test__helpers.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/unit/test__http.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/unit/test__opentelemetry_tracing.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/unit/test__signing.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/unit/test_acl.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/unit/test_batch.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/unit/test_bucket.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/unit/test_client.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/unit/test_exceptions.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/unit/test_fileio.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/unit/test_hmac_key.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/unit/test_ip_filter.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/unit/test_notification.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/unit/test_retry.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/unit/test_transfer_manager.py +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/unit/url_signer_v4_test_account.json +0 -0
- {google_cloud_storage-3.3.0 → google_cloud_storage-3.4.0}/tests/unit/url_signer_v4_test_data.json +0 -0
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
# See the License for the specific language governing permissions and
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
#
|
|
16
|
-
from google.cloud.
|
|
16
|
+
from google.cloud._storage_v2 import gapic_version as package_version
|
|
17
17
|
|
|
18
18
|
__version__ = package_version.__version__
|
|
19
19
|
|
|
@@ -32,7 +32,7 @@ from typing import (
|
|
|
32
32
|
Union,
|
|
33
33
|
)
|
|
34
34
|
|
|
35
|
-
from google.cloud.
|
|
35
|
+
from google.cloud._storage_v2 import gapic_version as package_version
|
|
36
36
|
|
|
37
37
|
from google.api_core.client_options import ClientOptions
|
|
38
38
|
from google.api_core import exceptions as core_exceptions
|
|
@@ -48,8 +48,8 @@ try:
|
|
|
48
48
|
except AttributeError: # pragma: NO COVER
|
|
49
49
|
OptionalRetry = Union[retries.AsyncRetry, object, None] # type: ignore
|
|
50
50
|
|
|
51
|
-
from google.cloud.
|
|
52
|
-
from google.cloud.
|
|
51
|
+
from google.cloud._storage_v2.services.storage import pagers
|
|
52
|
+
from google.cloud._storage_v2.types import storage
|
|
53
53
|
from google.iam.v1 import iam_policy_pb2 # type: ignore
|
|
54
54
|
from google.iam.v1 import policy_pb2 # type: ignore
|
|
55
55
|
from google.longrunning import operations_pb2 # type: ignore
|
|
@@ -80,22 +80,22 @@ class StorageAsyncClient:
|
|
|
80
80
|
|
|
81
81
|
Resources are named as follows:
|
|
82
82
|
|
|
83
|
-
-
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
- Projects are referred to as they are defined by the Resource
|
|
84
|
+
Manager API, using strings like ``projects/123456`` or
|
|
85
|
+
``projects/my-string-id``.
|
|
86
86
|
|
|
87
|
-
-
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
- Buckets are named using string names of the form:
|
|
88
|
+
``projects/{project}/buckets/{bucket}`` For globally unique
|
|
89
|
+
buckets, ``_`` may be substituted for the project.
|
|
90
90
|
|
|
91
|
-
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
- Objects are uniquely identified by their name along with the name
|
|
92
|
+
of the bucket they belong to, as separate strings in this API. For
|
|
93
|
+
example:
|
|
94
94
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
ReadObjectRequest { bucket: 'projects/\_/buckets/my-bucket'
|
|
96
|
+
object: 'my-object' } Note that object names can contain ``/``
|
|
97
|
+
characters, which are treated as any other character (no special
|
|
98
|
+
directory semantics).
|
|
99
99
|
"""
|
|
100
100
|
|
|
101
101
|
_client: StorageClient
|
|
@@ -350,7 +350,7 @@ class StorageAsyncClient:
|
|
|
350
350
|
await client.delete_bucket(request=request)
|
|
351
351
|
|
|
352
352
|
Args:
|
|
353
|
-
request (Optional[Union[google.cloud.
|
|
353
|
+
request (Optional[Union[google.cloud._storage_v2.types.DeleteBucketRequest, dict]]):
|
|
354
354
|
The request object. Request message for DeleteBucket.
|
|
355
355
|
name (:class:`str`):
|
|
356
356
|
Required. Name of a bucket to delete.
|
|
@@ -455,7 +455,7 @@ class StorageAsyncClient:
|
|
|
455
455
|
print(response)
|
|
456
456
|
|
|
457
457
|
Args:
|
|
458
|
-
request (Optional[Union[google.cloud.
|
|
458
|
+
request (Optional[Union[google.cloud._storage_v2.types.GetBucketRequest, dict]]):
|
|
459
459
|
The request object. Request message for GetBucket.
|
|
460
460
|
name (:class:`str`):
|
|
461
461
|
Required. Name of a bucket.
|
|
@@ -471,7 +471,7 @@ class StorageAsyncClient:
|
|
|
471
471
|
be of type `bytes`.
|
|
472
472
|
|
|
473
473
|
Returns:
|
|
474
|
-
google.cloud.
|
|
474
|
+
google.cloud._storage_v2.types.Bucket:
|
|
475
475
|
A bucket.
|
|
476
476
|
"""
|
|
477
477
|
# Create or coerce a protobuf request object.
|
|
@@ -570,7 +570,7 @@ class StorageAsyncClient:
|
|
|
570
570
|
print(response)
|
|
571
571
|
|
|
572
572
|
Args:
|
|
573
|
-
request (Optional[Union[google.cloud.
|
|
573
|
+
request (Optional[Union[google.cloud._storage_v2.types.CreateBucketRequest, dict]]):
|
|
574
574
|
The request object. Request message for CreateBucket.
|
|
575
575
|
parent (:class:`str`):
|
|
576
576
|
Required. The project to which this bucket will belong.
|
|
@@ -581,7 +581,7 @@ class StorageAsyncClient:
|
|
|
581
581
|
This corresponds to the ``parent`` field
|
|
582
582
|
on the ``request`` instance; if ``request`` is provided, this
|
|
583
583
|
should not be set.
|
|
584
|
-
bucket (:class:`google.cloud.
|
|
584
|
+
bucket (:class:`google.cloud._storage_v2.types.Bucket`):
|
|
585
585
|
Optional. Properties of the new bucket being inserted.
|
|
586
586
|
The name of the bucket is specified in the ``bucket_id``
|
|
587
587
|
field. Populating ``bucket.name`` field will result in
|
|
@@ -613,7 +613,7 @@ class StorageAsyncClient:
|
|
|
613
613
|
be of type `bytes`.
|
|
614
614
|
|
|
615
615
|
Returns:
|
|
616
|
-
google.cloud.
|
|
616
|
+
google.cloud._storage_v2.types.Bucket:
|
|
617
617
|
A bucket.
|
|
618
618
|
"""
|
|
619
619
|
# Create or coerce a protobuf request object.
|
|
@@ -719,7 +719,7 @@ class StorageAsyncClient:
|
|
|
719
719
|
print(response)
|
|
720
720
|
|
|
721
721
|
Args:
|
|
722
|
-
request (Optional[Union[google.cloud.
|
|
722
|
+
request (Optional[Union[google.cloud._storage_v2.types.ListBucketsRequest, dict]]):
|
|
723
723
|
The request object. Request message for ListBuckets.
|
|
724
724
|
parent (:class:`str`):
|
|
725
725
|
Required. The project whose buckets
|
|
@@ -737,7 +737,7 @@ class StorageAsyncClient:
|
|
|
737
737
|
be of type `bytes`.
|
|
738
738
|
|
|
739
739
|
Returns:
|
|
740
|
-
google.cloud.
|
|
740
|
+
google.cloud._storage_v2.services.storage.pagers.ListBucketsAsyncPager:
|
|
741
741
|
The result of a call to
|
|
742
742
|
Buckets.ListBuckets
|
|
743
743
|
Iterating over this object will yield
|
|
@@ -850,7 +850,7 @@ class StorageAsyncClient:
|
|
|
850
850
|
print(response)
|
|
851
851
|
|
|
852
852
|
Args:
|
|
853
|
-
request (Optional[Union[google.cloud.
|
|
853
|
+
request (Optional[Union[google.cloud._storage_v2.types.LockBucketRetentionPolicyRequest, dict]]):
|
|
854
854
|
The request object. Request message for
|
|
855
855
|
LockBucketRetentionPolicyRequest.
|
|
856
856
|
bucket (:class:`str`):
|
|
@@ -867,7 +867,7 @@ class StorageAsyncClient:
|
|
|
867
867
|
be of type `bytes`.
|
|
868
868
|
|
|
869
869
|
Returns:
|
|
870
|
-
google.cloud.
|
|
870
|
+
google.cloud._storage_v2.types.Bucket:
|
|
871
871
|
A bucket.
|
|
872
872
|
"""
|
|
873
873
|
# Create or coerce a protobuf request object.
|
|
@@ -1006,19 +1006,19 @@ class StorageAsyncClient:
|
|
|
1006
1006
|
constraints based on attributes of the request, the
|
|
1007
1007
|
resource, or both. To learn which resources support
|
|
1008
1008
|
conditions in their IAM policies, see the [IAM
|
|
1009
|
-
documentation](
|
|
1009
|
+
documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
1010
1010
|
|
|
1011
1011
|
**JSON example:**
|
|
1012
1012
|
|
|
1013
|
-
:literal
|
|
1013
|
+
:literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \`
|
|
1014
1014
|
|
|
1015
1015
|
**YAML example:**
|
|
1016
1016
|
|
|
1017
|
-
:literal
|
|
1017
|
+
:literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \`
|
|
1018
1018
|
|
|
1019
1019
|
For a description of IAM and its features, see the
|
|
1020
1020
|
[IAM
|
|
1021
|
-
documentation](
|
|
1021
|
+
documentation](https://cloud.google.com/iam/docs/).
|
|
1022
1022
|
|
|
1023
1023
|
"""
|
|
1024
1024
|
# Create or coerce a protobuf request object.
|
|
@@ -1161,19 +1161,19 @@ class StorageAsyncClient:
|
|
|
1161
1161
|
constraints based on attributes of the request, the
|
|
1162
1162
|
resource, or both. To learn which resources support
|
|
1163
1163
|
conditions in their IAM policies, see the [IAM
|
|
1164
|
-
documentation](
|
|
1164
|
+
documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
1165
1165
|
|
|
1166
1166
|
**JSON example:**
|
|
1167
1167
|
|
|
1168
|
-
:literal
|
|
1168
|
+
:literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \`
|
|
1169
1169
|
|
|
1170
1170
|
**YAML example:**
|
|
1171
1171
|
|
|
1172
|
-
:literal
|
|
1172
|
+
:literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \`
|
|
1173
1173
|
|
|
1174
1174
|
For a description of IAM and its features, see the
|
|
1175
1175
|
[IAM
|
|
1176
|
-
documentation](
|
|
1176
|
+
documentation](https://cloud.google.com/iam/docs/).
|
|
1177
1177
|
|
|
1178
1178
|
"""
|
|
1179
1179
|
# Create or coerce a protobuf request object.
|
|
@@ -1422,9 +1422,9 @@ class StorageAsyncClient:
|
|
|
1422
1422
|
print(response)
|
|
1423
1423
|
|
|
1424
1424
|
Args:
|
|
1425
|
-
request (Optional[Union[google.cloud.
|
|
1425
|
+
request (Optional[Union[google.cloud._storage_v2.types.UpdateBucketRequest, dict]]):
|
|
1426
1426
|
The request object. Request for UpdateBucket method.
|
|
1427
|
-
bucket (:class:`google.cloud.
|
|
1427
|
+
bucket (:class:`google.cloud._storage_v2.types.Bucket`):
|
|
1428
1428
|
Required. The bucket to update. The bucket's ``name``
|
|
1429
1429
|
field will be used to identify the bucket.
|
|
1430
1430
|
|
|
@@ -1455,7 +1455,7 @@ class StorageAsyncClient:
|
|
|
1455
1455
|
be of type `bytes`.
|
|
1456
1456
|
|
|
1457
1457
|
Returns:
|
|
1458
|
-
google.cloud.
|
|
1458
|
+
google.cloud._storage_v2.types.Bucket:
|
|
1459
1459
|
A bucket.
|
|
1460
1460
|
"""
|
|
1461
1461
|
# Create or coerce a protobuf request object.
|
|
@@ -1552,7 +1552,7 @@ class StorageAsyncClient:
|
|
|
1552
1552
|
print(response)
|
|
1553
1553
|
|
|
1554
1554
|
Args:
|
|
1555
|
-
request (Optional[Union[google.cloud.
|
|
1555
|
+
request (Optional[Union[google.cloud._storage_v2.types.ComposeObjectRequest, dict]]):
|
|
1556
1556
|
The request object. Request message for ComposeObject.
|
|
1557
1557
|
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
1558
1558
|
should be retried.
|
|
@@ -1563,7 +1563,7 @@ class StorageAsyncClient:
|
|
|
1563
1563
|
be of type `bytes`.
|
|
1564
1564
|
|
|
1565
1565
|
Returns:
|
|
1566
|
-
google.cloud.
|
|
1566
|
+
google.cloud._storage_v2.types.Object:
|
|
1567
1567
|
An object.
|
|
1568
1568
|
"""
|
|
1569
1569
|
# Create or coerce a protobuf request object.
|
|
@@ -1663,7 +1663,7 @@ class StorageAsyncClient:
|
|
|
1663
1663
|
await client.delete_object(request=request)
|
|
1664
1664
|
|
|
1665
1665
|
Args:
|
|
1666
|
-
request (Optional[Union[google.cloud.
|
|
1666
|
+
request (Optional[Union[google.cloud._storage_v2.types.DeleteObjectRequest, dict]]):
|
|
1667
1667
|
The request object. Message for deleting an object. ``bucket`` and
|
|
1668
1668
|
``object`` **must** be set.
|
|
1669
1669
|
bucket (:class:`str`):
|
|
@@ -1796,7 +1796,7 @@ class StorageAsyncClient:
|
|
|
1796
1796
|
print(response)
|
|
1797
1797
|
|
|
1798
1798
|
Args:
|
|
1799
|
-
request (Optional[Union[google.cloud.
|
|
1799
|
+
request (Optional[Union[google.cloud._storage_v2.types.RestoreObjectRequest, dict]]):
|
|
1800
1800
|
The request object. Message for restoring an object. ``bucket``, ``object``,
|
|
1801
1801
|
and ``generation`` **must** be set.
|
|
1802
1802
|
bucket (:class:`str`):
|
|
@@ -1829,7 +1829,7 @@ class StorageAsyncClient:
|
|
|
1829
1829
|
be of type `bytes`.
|
|
1830
1830
|
|
|
1831
1831
|
Returns:
|
|
1832
|
-
google.cloud.
|
|
1832
|
+
google.cloud._storage_v2.types.Object:
|
|
1833
1833
|
An object.
|
|
1834
1834
|
"""
|
|
1835
1835
|
# Create or coerce a protobuf request object.
|
|
@@ -1937,7 +1937,7 @@ class StorageAsyncClient:
|
|
|
1937
1937
|
print(response)
|
|
1938
1938
|
|
|
1939
1939
|
Args:
|
|
1940
|
-
request (Optional[Union[google.cloud.
|
|
1940
|
+
request (Optional[Union[google.cloud._storage_v2.types.CancelResumableWriteRequest, dict]]):
|
|
1941
1941
|
The request object. Message for canceling an in-progress resumable upload.
|
|
1942
1942
|
``upload_id`` **must** be set.
|
|
1943
1943
|
upload_id (:class:`str`):
|
|
@@ -1957,7 +1957,7 @@ class StorageAsyncClient:
|
|
|
1957
1957
|
be of type `bytes`.
|
|
1958
1958
|
|
|
1959
1959
|
Returns:
|
|
1960
|
-
google.cloud.
|
|
1960
|
+
google.cloud._storage_v2.types.CancelResumableWriteResponse:
|
|
1961
1961
|
Empty response message for canceling
|
|
1962
1962
|
an in-progress resumable upload, will be
|
|
1963
1963
|
extended as needed.
|
|
@@ -2068,7 +2068,7 @@ class StorageAsyncClient:
|
|
|
2068
2068
|
print(response)
|
|
2069
2069
|
|
|
2070
2070
|
Args:
|
|
2071
|
-
request (Optional[Union[google.cloud.
|
|
2071
|
+
request (Optional[Union[google.cloud._storage_v2.types.GetObjectRequest, dict]]):
|
|
2072
2072
|
The request object. Request message for GetObject.
|
|
2073
2073
|
bucket (:class:`str`):
|
|
2074
2074
|
Required. Name of the bucket in which
|
|
@@ -2100,7 +2100,7 @@ class StorageAsyncClient:
|
|
|
2100
2100
|
be of type `bytes`.
|
|
2101
2101
|
|
|
2102
2102
|
Returns:
|
|
2103
|
-
google.cloud.
|
|
2103
|
+
google.cloud._storage_v2.types.Object:
|
|
2104
2104
|
An object.
|
|
2105
2105
|
"""
|
|
2106
2106
|
# Create or coerce a protobuf request object.
|
|
@@ -2210,7 +2210,7 @@ class StorageAsyncClient:
|
|
|
2210
2210
|
print(response)
|
|
2211
2211
|
|
|
2212
2212
|
Args:
|
|
2213
|
-
request (Optional[Union[google.cloud.
|
|
2213
|
+
request (Optional[Union[google.cloud._storage_v2.types.ReadObjectRequest, dict]]):
|
|
2214
2214
|
The request object. Request message for ReadObject.
|
|
2215
2215
|
bucket (:class:`str`):
|
|
2216
2216
|
Required. The name of the bucket
|
|
@@ -2244,7 +2244,7 @@ class StorageAsyncClient:
|
|
|
2244
2244
|
be of type `bytes`.
|
|
2245
2245
|
|
|
2246
2246
|
Returns:
|
|
2247
|
-
AsyncIterable[google.cloud.
|
|
2247
|
+
AsyncIterable[google.cloud._storage_v2.types.ReadObjectResponse]:
|
|
2248
2248
|
Response message for ReadObject.
|
|
2249
2249
|
"""
|
|
2250
2250
|
# Create or coerce a protobuf request object.
|
|
@@ -2373,7 +2373,7 @@ class StorageAsyncClient:
|
|
|
2373
2373
|
print(response)
|
|
2374
2374
|
|
|
2375
2375
|
Args:
|
|
2376
|
-
requests (AsyncIterator[`google.cloud.
|
|
2376
|
+
requests (AsyncIterator[`google.cloud._storage_v2.types.BidiReadObjectRequest`]):
|
|
2377
2377
|
The request object AsyncIterator. Request message for BidiReadObject.
|
|
2378
2378
|
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
2379
2379
|
should be retried.
|
|
@@ -2384,7 +2384,7 @@ class StorageAsyncClient:
|
|
|
2384
2384
|
be of type `bytes`.
|
|
2385
2385
|
|
|
2386
2386
|
Returns:
|
|
2387
|
-
AsyncIterable[google.cloud.
|
|
2387
|
+
AsyncIterable[google.cloud._storage_v2.types.BidiReadObjectResponse]:
|
|
2388
2388
|
Response message for BidiReadObject.
|
|
2389
2389
|
"""
|
|
2390
2390
|
|
|
@@ -2454,9 +2454,9 @@ class StorageAsyncClient:
|
|
|
2454
2454
|
print(response)
|
|
2455
2455
|
|
|
2456
2456
|
Args:
|
|
2457
|
-
request (Optional[Union[google.cloud.
|
|
2457
|
+
request (Optional[Union[google.cloud._storage_v2.types.UpdateObjectRequest, dict]]):
|
|
2458
2458
|
The request object. Request message for UpdateObject.
|
|
2459
|
-
object_ (:class:`google.cloud.
|
|
2459
|
+
object_ (:class:`google.cloud._storage_v2.types.Object`):
|
|
2460
2460
|
Required. The object to update.
|
|
2461
2461
|
The object's bucket and name fields are
|
|
2462
2462
|
used to identify the object to update.
|
|
@@ -2493,7 +2493,7 @@ class StorageAsyncClient:
|
|
|
2493
2493
|
be of type `bytes`.
|
|
2494
2494
|
|
|
2495
2495
|
Returns:
|
|
2496
|
-
google.cloud.
|
|
2496
|
+
google.cloud._storage_v2.types.Object:
|
|
2497
2497
|
An object.
|
|
2498
2498
|
"""
|
|
2499
2499
|
# Create or coerce a protobuf request object.
|
|
@@ -2578,41 +2578,41 @@ class StorageAsyncClient:
|
|
|
2578
2578
|
explicitly by the client or due to a network error or an error
|
|
2579
2579
|
response from the server), the client should do as follows:
|
|
2580
2580
|
|
|
2581
|
-
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2581
|
+
- Check the result Status of the stream, to determine if writing
|
|
2582
|
+
can be resumed on this stream or must be restarted from
|
|
2583
|
+
scratch (by calling ``StartResumableWrite()``). The resumable
|
|
2584
|
+
errors are DEADLINE_EXCEEDED, INTERNAL, and UNAVAILABLE. For
|
|
2585
|
+
each case, the client should use binary exponential backoff
|
|
2586
|
+
before retrying. Additionally, writes can be resumed after
|
|
2587
|
+
RESOURCE_EXHAUSTED errors, but only after taking appropriate
|
|
2588
|
+
measures, which may include reducing aggregate send rate
|
|
2589
|
+
across clients and/or requesting a quota increase for your
|
|
2590
|
+
project.
|
|
2591
|
+
- If the call to ``WriteObject`` returns ``ABORTED``, that
|
|
2592
|
+
indicates concurrent attempts to update the resumable write,
|
|
2593
|
+
caused either by multiple racing clients or by a single client
|
|
2594
|
+
where the previous request was timed out on the client side
|
|
2595
|
+
but nonetheless reached the server. In this case the client
|
|
2596
|
+
should take steps to prevent further concurrent writes (e.g.,
|
|
2597
|
+
increase the timeouts, stop using more than one process to
|
|
2598
|
+
perform the upload, etc.), and then should follow the steps
|
|
2599
|
+
below for resuming the upload.
|
|
2600
|
+
- For resumable errors, the client should call
|
|
2601
|
+
``QueryWriteStatus()`` and then continue writing from the
|
|
2602
|
+
returned ``persisted_size``. This may be less than the amount
|
|
2603
|
+
of data the client previously sent. Note also that it is
|
|
2604
|
+
acceptable to send data starting at an offset earlier than the
|
|
2605
|
+
returned ``persisted_size``; in this case, the service will
|
|
2606
|
+
skip data at offsets that were already persisted (without
|
|
2607
|
+
checking that it matches the previously written data), and
|
|
2608
|
+
write only the data starting from the persisted offset. Even
|
|
2609
|
+
though the data isn't written, it may still incur a
|
|
2610
|
+
performance cost over resuming at the correct write offset.
|
|
2611
|
+
This behavior can make client-side handling simpler in some
|
|
2612
|
+
cases.
|
|
2613
|
+
- Clients must only send data that is a multiple of 256 KiB per
|
|
2614
|
+
message, unless the object is being finished with
|
|
2615
|
+
``finish_write`` set to ``true``.
|
|
2616
2616
|
|
|
2617
2617
|
The service will not view the object as complete until the
|
|
2618
2618
|
client has sent a ``WriteObjectRequest`` with ``finish_write``
|
|
@@ -2674,7 +2674,7 @@ class StorageAsyncClient:
|
|
|
2674
2674
|
print(response)
|
|
2675
2675
|
|
|
2676
2676
|
Args:
|
|
2677
|
-
requests (AsyncIterator[`google.cloud.
|
|
2677
|
+
requests (AsyncIterator[`google.cloud._storage_v2.types.WriteObjectRequest`]):
|
|
2678
2678
|
The request object AsyncIterator. Request message for WriteObject.
|
|
2679
2679
|
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
2680
2680
|
should be retried.
|
|
@@ -2685,7 +2685,7 @@ class StorageAsyncClient:
|
|
|
2685
2685
|
be of type `bytes`.
|
|
2686
2686
|
|
|
2687
2687
|
Returns:
|
|
2688
|
-
google.cloud.
|
|
2688
|
+
google.cloud._storage_v2.types.WriteObjectResponse:
|
|
2689
2689
|
Response message for WriteObject.
|
|
2690
2690
|
"""
|
|
2691
2691
|
|
|
@@ -2774,7 +2774,7 @@ class StorageAsyncClient:
|
|
|
2774
2774
|
print(response)
|
|
2775
2775
|
|
|
2776
2776
|
Args:
|
|
2777
|
-
requests (AsyncIterator[`google.cloud.
|
|
2777
|
+
requests (AsyncIterator[`google.cloud._storage_v2.types.BidiWriteObjectRequest`]):
|
|
2778
2778
|
The request object AsyncIterator. Request message for BidiWriteObject.
|
|
2779
2779
|
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
2780
2780
|
should be retried.
|
|
@@ -2785,7 +2785,7 @@ class StorageAsyncClient:
|
|
|
2785
2785
|
be of type `bytes`.
|
|
2786
2786
|
|
|
2787
2787
|
Returns:
|
|
2788
|
-
AsyncIterable[google.cloud.
|
|
2788
|
+
AsyncIterable[google.cloud._storage_v2.types.BidiWriteObjectResponse]:
|
|
2789
2789
|
Response message for BidiWriteObject.
|
|
2790
2790
|
"""
|
|
2791
2791
|
|
|
@@ -2856,7 +2856,7 @@ class StorageAsyncClient:
|
|
|
2856
2856
|
print(response)
|
|
2857
2857
|
|
|
2858
2858
|
Args:
|
|
2859
|
-
request (Optional[Union[google.cloud.
|
|
2859
|
+
request (Optional[Union[google.cloud._storage_v2.types.ListObjectsRequest, dict]]):
|
|
2860
2860
|
The request object. Request message for ListObjects.
|
|
2861
2861
|
parent (:class:`str`):
|
|
2862
2862
|
Required. Name of the bucket in which
|
|
@@ -2874,7 +2874,7 @@ class StorageAsyncClient:
|
|
|
2874
2874
|
be of type `bytes`.
|
|
2875
2875
|
|
|
2876
2876
|
Returns:
|
|
2877
|
-
google.cloud.
|
|
2877
|
+
google.cloud._storage_v2.services.storage.pagers.ListObjectsAsyncPager:
|
|
2878
2878
|
The result of a call to
|
|
2879
2879
|
Objects.ListObjects
|
|
2880
2880
|
Iterating over this object will yield
|
|
@@ -2989,7 +2989,7 @@ class StorageAsyncClient:
|
|
|
2989
2989
|
print(response)
|
|
2990
2990
|
|
|
2991
2991
|
Args:
|
|
2992
|
-
request (Optional[Union[google.cloud.
|
|
2992
|
+
request (Optional[Union[google.cloud._storage_v2.types.RewriteObjectRequest, dict]]):
|
|
2993
2993
|
The request object. Request message for RewriteObject. If the source object
|
|
2994
2994
|
is encrypted using a Customer-Supplied Encryption Key
|
|
2995
2995
|
the key information must be provided in the
|
|
@@ -3010,7 +3010,7 @@ class StorageAsyncClient:
|
|
|
3010
3010
|
be of type `bytes`.
|
|
3011
3011
|
|
|
3012
3012
|
Returns:
|
|
3013
|
-
google.cloud.
|
|
3013
|
+
google.cloud._storage_v2.types.RewriteResponse:
|
|
3014
3014
|
A rewrite response.
|
|
3015
3015
|
"""
|
|
3016
3016
|
# Create or coerce a protobuf request object.
|
|
@@ -3102,7 +3102,7 @@ class StorageAsyncClient:
|
|
|
3102
3102
|
print(response)
|
|
3103
3103
|
|
|
3104
3104
|
Args:
|
|
3105
|
-
request (Optional[Union[google.cloud.
|
|
3105
|
+
request (Optional[Union[google.cloud._storage_v2.types.StartResumableWriteRequest, dict]]):
|
|
3106
3106
|
The request object. Request message StartResumableWrite.
|
|
3107
3107
|
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
3108
3108
|
should be retried.
|
|
@@ -3113,7 +3113,7 @@ class StorageAsyncClient:
|
|
|
3113
3113
|
be of type `bytes`.
|
|
3114
3114
|
|
|
3115
3115
|
Returns:
|
|
3116
|
-
google.cloud.
|
|
3116
|
+
google.cloud._storage_v2.types.StartResumableWriteResponse:
|
|
3117
3117
|
Response object for StartResumableWrite.
|
|
3118
3118
|
"""
|
|
3119
3119
|
# Create or coerce a protobuf request object.
|
|
@@ -3211,7 +3211,7 @@ class StorageAsyncClient:
|
|
|
3211
3211
|
print(response)
|
|
3212
3212
|
|
|
3213
3213
|
Args:
|
|
3214
|
-
request (Optional[Union[google.cloud.
|
|
3214
|
+
request (Optional[Union[google.cloud._storage_v2.types.QueryWriteStatusRequest, dict]]):
|
|
3215
3215
|
The request object. Request object for ``QueryWriteStatus``.
|
|
3216
3216
|
upload_id (:class:`str`):
|
|
3217
3217
|
Required. The name of the resume
|
|
@@ -3230,7 +3230,7 @@ class StorageAsyncClient:
|
|
|
3230
3230
|
be of type `bytes`.
|
|
3231
3231
|
|
|
3232
3232
|
Returns:
|
|
3233
|
-
google.cloud.
|
|
3233
|
+
google.cloud._storage_v2.types.QueryWriteStatusResponse:
|
|
3234
3234
|
Response object for QueryWriteStatus.
|
|
3235
3235
|
"""
|
|
3236
3236
|
# Create or coerce a protobuf request object.
|
|
@@ -3333,7 +3333,7 @@ class StorageAsyncClient:
|
|
|
3333
3333
|
print(response)
|
|
3334
3334
|
|
|
3335
3335
|
Args:
|
|
3336
|
-
request (Optional[Union[google.cloud.
|
|
3336
|
+
request (Optional[Union[google.cloud._storage_v2.types.MoveObjectRequest, dict]]):
|
|
3337
3337
|
The request object. Request message for MoveObject.
|
|
3338
3338
|
bucket (:class:`str`):
|
|
3339
3339
|
Required. Name of the bucket in which
|
|
@@ -3363,7 +3363,7 @@ class StorageAsyncClient:
|
|
|
3363
3363
|
be of type `bytes`.
|
|
3364
3364
|
|
|
3365
3365
|
Returns:
|
|
3366
|
-
google.cloud.
|
|
3366
|
+
google.cloud._storage_v2.types.Object:
|
|
3367
3367
|
An object.
|
|
3368
3368
|
"""
|
|
3369
3369
|
# Create or coerce a protobuf request object.
|