Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.storage_v2 import gapic_version as package_version
from google.cloud._storage_v2 import gapic_version as package_version

__version__ = package_version.__version__

Expand Down
File renamed without changes.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@
OptionalRetry = Union[retries.Retry, object, None] # type: ignore
OptionalAsyncRetry = Union[retries_async.AsyncRetry, object, None] # type: ignore

from google.cloud.storage_v2.types import storage
from google.cloud._storage_v2.types import storage


class ListBucketsPager:
"""A pager for iterating through ``list_buckets`` requests.

This class thinly wraps an initial
:class:`google.cloud.storage_v2.types.ListBucketsResponse` object, and
:class:`google.cloud._storage_v2.types.ListBucketsResponse` object, and
provides an ``__iter__`` method to iterate through its
``buckets`` field.

Expand All @@ -53,7 +53,7 @@ class ListBucketsPager:
through the ``buckets`` field on the
corresponding responses.

All the usual :class:`google.cloud.storage_v2.types.ListBucketsResponse`
All the usual :class:`google.cloud._storage_v2.types.ListBucketsResponse`
attributes are available on the pager. If multiple requests are made, only
the most recent response is retained, and thus used for attribute lookup.
"""
Expand All @@ -73,9 +73,9 @@ def __init__(
Args:
method (Callable): The method that was originally called, and
which instantiated this pager.
request (google.cloud.storage_v2.types.ListBucketsRequest):
request (google.cloud._storage_v2.types.ListBucketsRequest):
The initial request object.
response (google.cloud.storage_v2.types.ListBucketsResponse):
response (google.cloud._storage_v2.types.ListBucketsResponse):
The initial response object.
retry (google.api_core.retry.Retry): Designation of what errors,
if any, should be retried.
Expand Down Expand Up @@ -120,7 +120,7 @@ class ListBucketsAsyncPager:
"""A pager for iterating through ``list_buckets`` requests.

This class thinly wraps an initial
:class:`google.cloud.storage_v2.types.ListBucketsResponse` object, and
:class:`google.cloud._storage_v2.types.ListBucketsResponse` object, and
provides an ``__aiter__`` method to iterate through its
``buckets`` field.

Expand All @@ -129,7 +129,7 @@ class ListBucketsAsyncPager:
through the ``buckets`` field on the
corresponding responses.

All the usual :class:`google.cloud.storage_v2.types.ListBucketsResponse`
All the usual :class:`google.cloud._storage_v2.types.ListBucketsResponse`
attributes are available on the pager. If multiple requests are made, only
the most recent response is retained, and thus used for attribute lookup.
"""
Expand All @@ -149,9 +149,9 @@ def __init__(
Args:
method (Callable): The method that was originally called, and
which instantiated this pager.
request (google.cloud.storage_v2.types.ListBucketsRequest):
request (google.cloud._storage_v2.types.ListBucketsRequest):
The initial request object.
response (google.cloud.storage_v2.types.ListBucketsResponse):
response (google.cloud._storage_v2.types.ListBucketsResponse):
The initial response object.
retry (google.api_core.retry.AsyncRetry): Designation of what errors,
if any, should be retried.
Expand Down Expand Up @@ -200,7 +200,7 @@ class ListObjectsPager:
"""A pager for iterating through ``list_objects`` requests.

This class thinly wraps an initial
:class:`google.cloud.storage_v2.types.ListObjectsResponse` object, and
:class:`google.cloud._storage_v2.types.ListObjectsResponse` object, and
provides an ``__iter__`` method to iterate through its
``objects`` field.

Expand All @@ -209,7 +209,7 @@ class ListObjectsPager:
through the ``objects`` field on the
corresponding responses.

All the usual :class:`google.cloud.storage_v2.types.ListObjectsResponse`
All the usual :class:`google.cloud._storage_v2.types.ListObjectsResponse`
attributes are available on the pager. If multiple requests are made, only
the most recent response is retained, and thus used for attribute lookup.
"""
Expand All @@ -229,9 +229,9 @@ def __init__(
Args:
method (Callable): The method that was originally called, and
which instantiated this pager.
request (google.cloud.storage_v2.types.ListObjectsRequest):
request (google.cloud._storage_v2.types.ListObjectsRequest):
The initial request object.
response (google.cloud.storage_v2.types.ListObjectsResponse):
response (google.cloud._storage_v2.types.ListObjectsResponse):
The initial response object.
retry (google.api_core.retry.Retry): Designation of what errors,
if any, should be retried.
Expand Down Expand Up @@ -276,7 +276,7 @@ class ListObjectsAsyncPager:
"""A pager for iterating through ``list_objects`` requests.

This class thinly wraps an initial
:class:`google.cloud.storage_v2.types.ListObjectsResponse` object, and
:class:`google.cloud._storage_v2.types.ListObjectsResponse` object, and
provides an ``__aiter__`` method to iterate through its
``objects`` field.

Expand All @@ -285,7 +285,7 @@ class ListObjectsAsyncPager:
through the ``objects`` field on the
corresponding responses.

All the usual :class:`google.cloud.storage_v2.types.ListObjectsResponse`
All the usual :class:`google.cloud._storage_v2.types.ListObjectsResponse`
attributes are available on the pager. If multiple requests are made, only
the most recent response is retained, and thus used for attribute lookup.
"""
Expand All @@ -305,9 +305,9 @@ def __init__(
Args:
method (Callable): The method that was originally called, and
which instantiated this pager.
request (google.cloud.storage_v2.types.ListObjectsRequest):
request (google.cloud._storage_v2.types.ListObjectsRequest):
The initial request object.
response (google.cloud.storage_v2.types.ListObjectsResponse):
response (google.cloud._storage_v2.types.ListObjectsResponse):
The initial response object.
retry (google.api_core.retry.AsyncRetry): Designation of what errors,
if any, should be retried.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import abc
from typing import Awaitable, Callable, Dict, Optional, Sequence, Union

from google.cloud.storage_v2 import gapic_version as package_version
from google.cloud._storage_v2 import gapic_version as package_version

import google.auth # type: ignore
import google.api_core
Expand All @@ -27,7 +27,7 @@
from google.oauth2 import service_account # type: ignore
import google.protobuf

from google.cloud.storage_v2.types import storage
from google.cloud._storage_v2.types import storage
from google.iam.v1 import iam_policy_pb2 # type: ignore
from google.iam.v1 import policy_pb2 # type: ignore
from google.longrunning import operations_pb2 # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import grpc # type: ignore
import proto # type: ignore

from google.cloud.storage_v2.types import storage
from google.cloud._storage_v2.types import storage
from google.iam.v1 import iam_policy_pb2 # type: ignore
from google.iam.v1 import policy_pb2 # type: ignore
from google.longrunning import operations_pb2 # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import proto # type: ignore
from grpc.experimental import aio # type: ignore

from google.cloud.storage_v2.types import storage
from google.cloud._storage_v2.types import storage
from google.iam.v1 import iam_policy_pb2 # type: ignore
from google.iam.v1 import policy_pb2 # type: ignore
from google.longrunning import operations_pb2 # type: ignore
Expand Down
Loading