Skip to content

Commit eb50503

Browse files
feat: surface ReservationPath and Reservation (#274)
* feat: surface Reservation in types * Update google/cloud/pubsublite/types/__init__.py Co-authored-by: Tres Seaver <tseaver@palladion.com> * remove reservation * add reservatin to path Co-authored-by: Tres Seaver <tseaver@palladion.com>
1 parent 248e77a commit eb50503

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

google/cloud/pubsublite/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
from google.cloud.pubsublite_v1.types.common import AttributeValues
7272
from google.cloud.pubsublite_v1.types.common import Cursor
7373
from google.cloud.pubsublite_v1.types.common import PubSubMessage
74+
from google.cloud.pubsublite_v1.types.common import Reservation
7475
from google.cloud.pubsublite_v1.types.common import SequencedMessage
7576
from google.cloud.pubsublite_v1.types.common import Subscription
7677
from google.cloud.pubsublite_v1.types.common import TimeTarget
@@ -164,6 +165,7 @@
164165
"PublishResponse",
165166
"PublisherServiceAsyncClient",
166167
"PublisherServiceClient",
168+
"Reservation",
167169
"SeekSubscriptionRequest",
168170
"SeekSubscriptionResponse",
169171
"SeekRequest",

google/cloud/pubsublite/types/__init__.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,23 @@
1515

1616
from .location import CloudRegion, CloudZone
1717
from .partition import Partition
18-
from .paths import LocationPath, TopicPath, SubscriptionPath
18+
from .paths import LocationPath, ReservationPath, TopicPath, SubscriptionPath
1919
from .message_metadata import MessageMetadata
2020
from .flow_control_settings import FlowControlSettings, DISABLED_FLOW_CONTROL
2121
from .backlog_location import BacklogLocation, PublishTime, EventTime
2222

2323
__all__ = (
24+
"BacklogLocation",
2425
"CloudRegion",
2526
"CloudZone",
27+
"EventTime",
2628
"FlowControlSettings",
2729
"LocationPath",
28-
"Partition",
2930
"MessageMetadata",
31+
"Partition",
32+
"PublishTime",
33+
"Reservation",
34+
"ReservationPath",
3035
"SubscriptionPath",
3136
"TopicPath",
32-
"BacklogLocation",
33-
"PublishTime",
34-
"EventTime",
3537
)

0 commit comments

Comments
 (0)