# Path: google/cloud/logging_v2/types/logging_config.py
# class LifecycleState(proto.Enum):
# class OperationState(proto.Enum):
# class LogBucket(proto.Message):
# class LogView(proto.Message):
# class LogSink(proto.Message):
#     class VersionFormat(proto.Enum):
# class BigQueryOptions(proto.Message):
# class ListBucketsRequest(proto.Message):
# class ListBucketsResponse(proto.Message):
# class CreateBucketRequest(proto.Message):
# class UpdateBucketRequest(proto.Message):
# class GetBucketRequest(proto.Message):
# class DeleteBucketRequest(proto.Message):
# class UndeleteBucketRequest(proto.Message):
# class ListViewsRequest(proto.Message):
# class ListViewsResponse(proto.Message):
# class CreateViewRequest(proto.Message):
# class UpdateViewRequest(proto.Message):
# class GetViewRequest(proto.Message):
# class DeleteViewRequest(proto.Message):
# class ListSinksRequest(proto.Message):
# class ListSinksResponse(proto.Message):
# class GetSinkRequest(proto.Message):
# class CreateSinkRequest(proto.Message):
# class UpdateSinkRequest(proto.Message):
# class DeleteSinkRequest(proto.Message):
# class LogExclusion(proto.Message):
# class ListExclusionsRequest(proto.Message):
# class ListExclusionsResponse(proto.Message):
# class GetExclusionRequest(proto.Message):
# class CreateExclusionRequest(proto.Message):
# class UpdateExclusionRequest(proto.Message):
# class DeleteExclusionRequest(proto.Message):
# class GetCmekSettingsRequest(proto.Message):
# class UpdateCmekSettingsRequest(proto.Message):
# class CmekSettings(proto.Message):
# class GetSettingsRequest(proto.Message):
# class UpdateSettingsRequest(proto.Message):
# class Settings(proto.Message):
# class CopyLogEntriesRequest(proto.Message):
# class CopyLogEntriesMetadata(proto.Message):
# class CopyLogEntriesResponse(proto.Message):
#     LIFECYCLE_STATE_UNSPECIFIED = 0
#     ACTIVE = 1
#     DELETE_REQUESTED = 2
#     OPERATION_STATE_UNSPECIFIED = 0
#     OPERATION_STATE_SCHEDULED = 1
#     OPERATION_STATE_WAITING_FOR_PERMISSIONS = 2
#     OPERATION_STATE_RUNNING = 3
#     OPERATION_STATE_SUCCEEDED = 4
#     OPERATION_STATE_FAILED = 5
#     OPERATION_STATE_CANCELLED = 6
#         VERSION_FORMAT_UNSPECIFIED = 0
#         V2 = 1
#         V1 = 2
#     def raw_page(self):
#     def raw_page(self):
#     def raw_page(self):
#     def raw_page(self):


from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.logging_v2.types import logging_config
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#



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

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

    If there are more pages, the ``__iter__`` method will make additional
    ``ListBuckets`` requests and continue to iterate
    through the ``buckets`` field on the
    corresponding responses.

    All the usual :class:`google.cloud.logging_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.
    """

    def __init__(
        self,

# Path: google/cloud/logging_v2/types/logging_config.py
# class LifecycleState(proto.Enum):
# class OperationState(proto.Enum):
# class LogBucket(proto.Message):
# class LogView(proto.Message):
# class LogSink(proto.Message):
#     class VersionFormat(proto.Enum):
# class BigQueryOptions(proto.Message):
# class ListBucketsRequest(proto.Message):
# class ListBucketsResponse(proto.Message):
# class CreateBucketRequest(proto.Message):
# class UpdateBucketRequest(proto.Message):
# class GetBucketRequest(proto.Message):
# class DeleteBucketRequest(proto.Message):
# class UndeleteBucketRequest(proto.Message):
# class ListViewsRequest(proto.Message):
# class ListViewsResponse(proto.Message):
# class CreateViewRequest(proto.Message):
# class UpdateViewRequest(proto.Message):
# class GetViewRequest(proto.Message):
# class DeleteViewRequest(proto.Message):
# class ListSinksRequest(proto.Message):
# class ListSinksResponse(proto.Message):
# class GetSinkRequest(proto.Message):
# class CreateSinkRequest(proto.Message):
# class UpdateSinkRequest(proto.Message):
# class DeleteSinkRequest(proto.Message):
# class LogExclusion(proto.Message):
# class ListExclusionsRequest(proto.Message):
# class ListExclusionsResponse(proto.Message):
# class GetExclusionRequest(proto.Message):
# class CreateExclusionRequest(proto.Message):
# class UpdateExclusionRequest(proto.Message):
# class DeleteExclusionRequest(proto.Message):
# class GetCmekSettingsRequest(proto.Message):
# class UpdateCmekSettingsRequest(proto.Message):
# class CmekSettings(proto.Message):
# class GetSettingsRequest(proto.Message):
# class UpdateSettingsRequest(proto.Message):
# class Settings(proto.Message):
# class CopyLogEntriesRequest(proto.Message):
# class CopyLogEntriesMetadata(proto.Message):
# class CopyLogEntriesResponse(proto.Message):
#     LIFECYCLE_STATE_UNSPECIFIED = 0
#     ACTIVE = 1
#     DELETE_REQUESTED = 2
#     OPERATION_STATE_UNSPECIFIED = 0
#     OPERATION_STATE_SCHEDULED = 1
#     OPERATION_STATE_WAITING_FOR_PERMISSIONS = 2
#     OPERATION_STATE_RUNNING = 3
#     OPERATION_STATE_SUCCEEDED = 4
#     OPERATION_STATE_FAILED = 5
#     OPERATION_STATE_CANCELLED = 6
#         VERSION_FORMAT_UNSPECIFIED = 0
#         V2 = 1
#         V1 = 2
#     def raw_page(self):
#     def raw_page(self):
#     def raw_page(self):
#     def raw_page(self):


# Path: google/cloud/logging_v2/services/config_service_v2/pagers.py
from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.logging_v2.types import logging_config

#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#



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

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

    If there are more pages, the ``__iter__`` method will make additional
    ``ListBuckets`` requests and continue to iterate
    through the ``buckets`` field on the
    corresponding responses.

    All the usual :class:`google.cloud.logging_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.
    """

    def __init__(
        self,

        method: Callable[..., logging_config.ListBucketsResponse],