Skip to content

Commit

Permalink
feat: surface ReservationPath and Reservation (#274)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
anguillanneuf and tseaver committed Nov 30, 2021
1 parent 248e77a commit eb50503
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions google/cloud/pubsublite/__init__.py
Expand Up @@ -71,6 +71,7 @@
from google.cloud.pubsublite_v1.types.common import AttributeValues
from google.cloud.pubsublite_v1.types.common import Cursor
from google.cloud.pubsublite_v1.types.common import PubSubMessage
from google.cloud.pubsublite_v1.types.common import Reservation
from google.cloud.pubsublite_v1.types.common import SequencedMessage
from google.cloud.pubsublite_v1.types.common import Subscription
from google.cloud.pubsublite_v1.types.common import TimeTarget
Expand Down Expand Up @@ -164,6 +165,7 @@
"PublishResponse",
"PublisherServiceAsyncClient",
"PublisherServiceClient",
"Reservation",
"SeekSubscriptionRequest",
"SeekSubscriptionResponse",
"SeekRequest",
Expand Down
12 changes: 7 additions & 5 deletions google/cloud/pubsublite/types/__init__.py
Expand Up @@ -15,21 +15,23 @@

from .location import CloudRegion, CloudZone
from .partition import Partition
from .paths import LocationPath, TopicPath, SubscriptionPath
from .paths import LocationPath, ReservationPath, TopicPath, SubscriptionPath
from .message_metadata import MessageMetadata
from .flow_control_settings import FlowControlSettings, DISABLED_FLOW_CONTROL
from .backlog_location import BacklogLocation, PublishTime, EventTime

__all__ = (
"BacklogLocation",
"CloudRegion",
"CloudZone",
"EventTime",
"FlowControlSettings",
"LocationPath",
"Partition",
"MessageMetadata",
"Partition",
"PublishTime",
"Reservation",
"ReservationPath",
"SubscriptionPath",
"TopicPath",
"BacklogLocation",
"PublishTime",
"EventTime",
)

0 comments on commit eb50503

Please sign in to comment.