@@ -224,6 +224,7 @@ def create_subscription(
224224 retain_acked_messages = None ,
225225 message_retention_duration = None ,
226226 labels = None ,
227+ enable_message_ordering = None ,
227228 expiration_policy = None ,
228229 retry = google .api_core .gapic_v1 .method .DEFAULT ,
229230 timeout = google .api_core .gapic_v1 .method .DEFAULT ,
@@ -309,6 +310,13 @@ def create_subscription(
309310 message :class:`~google.cloud.pubsub_v1.types.Duration`
310311 labels (dict[str -> str]): See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
311312 managing labels</a>.
313+ enable_message_ordering (bool): If true, messages published with the same ``ordering_key`` in
314+ ``PubsubMessage`` will be delivered to the subscribers in the order in
315+ which they are received by the Pub/Sub system. Otherwise, they may be
316+ delivered in any order. EXPERIMENTAL: This feature is part of a closed
317+ alpha release. This API might be changed in backward-incompatible ways
318+ and is not recommended for production use. It is not subject to any SLA
319+ or deprecation policy.
312320 expiration_policy (Union[dict, ~google.cloud.pubsub_v1.types.ExpirationPolicy]): A policy that specifies the conditions for this subscription's
313321 expiration. A subscription is considered active as long as any connected
314322 subscriber is successfully consuming messages from the subscription or
@@ -359,6 +367,7 @@ def create_subscription(
359367 retain_acked_messages = retain_acked_messages ,
360368 message_retention_duration = message_retention_duration ,
361369 labels = labels ,
370+ enable_message_ordering = enable_message_ordering ,
362371 expiration_policy = expiration_policy ,
363372 )
364373 return self ._inner_api_calls ["create_subscription" ](
0 commit comments