File: //lib/google-cloud-sdk/lib/googlecloudsdk/command_lib/pubsub/flags.yaml
topic-name:
api_field: topicId
arg_name: topic
required: true
is_positional: true
help_text: |
Topic ID.
subscription-name:
api_field: subscriptionId
arg_name: subscription
is_positional: true
required: true
help_text: |
Subscription ID.
subscription-topic-name:
api_field: subscription.topic
arg_name: topic
required: true
help_text: |
Topic ID associated with the subscription.
partitions:
api_field: topic.partitionConfig.count
arg_name: partitions
required: false
help_text: |
Number of partitions in the topic.
per-partition-publish-mib:
api_field: topic.partitionConfig.capacity.publishMibPerSec
arg_name: per-partition-publish-mib
required: false
help_text: |
Topic partition publish throughput capacity in MiB/s. Must be between 4 and 16.
per-partition-subscribe-mib:
api_field: topic.partitionConfig.capacity.subscribeMibPerSec
arg_name: per-partition-subscribe-mib
required: false
help_text: |
Topic partition subscribe throughput capacity in MiB/s. Must be between 4 and 32.
per-partition-bytes:
api_field: topic.retentionConfig.perPartitionBytes
arg_name: per-partition-bytes
type: googlecloudsdk.core.util.scaled_integer:ParseInteger
required: false
help_text: |
Provisioned storage, in bytes, per partition. If the number of bytes
stored in any of the topic's partitions exceeds this value, older
messages will be dropped to make room for newer ones, regardless of the
value of `message-retention-period`.
A valid example value of this flag would be `per-partition-bytes=30GiB`.
message-retention-period:
api_field: topic.retentionConfig.period
arg_name: message-retention-period
type: googlecloudsdk.core.util.times:ParseDuration
processor: googlecloudsdk.command_lib.pubsub.lite_util:DurationToSeconds
required: false
help_text: |
How long a published message is retained. If unset, messages will only be
dropped to make space for new ones once the `per-partition-bytes` limit is
reached.
A valid example value of this flag would be `message-retention-period="2w"`.
delivery-requirement:
api_field: subscription.deliveryConfig.deliveryRequirement
arg_name: delivery-requirement
choices:
- arg_value: deliver-immediately
enum_value: DELIVER_IMMEDIATELY
- arg_value: deliver-after-stored
enum_value: DELIVER_AFTER_STORED
help_text: |
When this subscription should send messages to subscribers relative to
messages persistence in storage.
See https://cloud.google.com/pubsub/lite/docs/subscriptions#creating_lite_subscriptions
for more info.