Builds a Subscription Object
Subscription(
dead_letter_policy = NULL,
msg_retention_duration = NULL,
labels = NULL,
retry_policy = NULL,
push_config = NULL,
ack_deadline = NULL,
expiration_policy = NULL,
filter = NULL,
detached = NULL,
retain_acked_msgs = NULL,
topic = NULL,
name = NULL,
enable_msg_ordering = NULL,
topic_msg_retention = NULL
)DeadLetterPolicy A policy that specifies the conditions for dead
lettering messages in this subscription
character How long to retain unacknowledged messages in
the subscription's backlog, from the moment a message is published
list See Creating and managing labels
RetryPolicy A policy that specifies how Pub/Sub retries message
delivery for this subscription
PushConfig If push delivery is used with this subscription, this
field is used to configure it
character The approximate amount of time (on a best-effort basis)
Pub/Sub waits for the subscriber to acknowledge receipt before resending the message
ExpirationPolicy A policy that specifies the conditions for
this subscription's expiration
character An expression written in the Pub/Sub filter language
logical Indicates whether the subscription is detached from its topic
logical Indicates whether to retain acknowledged messages
character, Topic A Topic object or topic name
character A name for the subscription
logical If true, messages published with the same ordering_key
in PubsubMessage will be delivered to the subscribers in the order in which they are
received by the Pub/Sub system
character minimum duration for which a message is retained after
it is published to the subscription's topic
Subscription object
Other Object functions:
DeadLetterPolicy(),
DlqPolicy(),
ExpirationPolicy(),
MessageStoragePolicy(),
PubsubMessage(),
PushConfig(),
RetryPolicy(),
SchemaSettings(),
Schema(),
Snapshot(),
Topic()