Resource: Topic
Metadata about a topic resource.
JSON representation |
---|
{ "name": string, "partitionConfig": { object ( |
Fields | |
---|---|
name |
The name of the topic. Structured like: projects/{project_number}/locations/{location}/topics/{topicId} |
partitionConfig |
The settings for this topic's partitions. |
retentionConfig |
The settings for this topic's message retention. |
reservationConfig |
The settings for this topic's Reservation usage. |
PartitionConfig
The settings for a topic's partitions.
JSON representation |
---|
{ "count": string, // Union field |
Fields | |
---|---|
count |
The number of partitions in the topic. Must be at least 1. Once a topic has been created the number of partitions can be increased but not decreased. Message ordering is not guaranteed across a topic resize. For more information see https://cloud.google.com/pubsub/lite/docs/topics#scaling_capacity |
Union field dimension . The throughput dimension of this topic. dimension can be only one of the following: |
|
scale |
DEPRECATED: Use capacity instead which can express a superset of configurations. Every partition in the topic is allocated throughput equivalent to |
capacity |
The capacity configuration. |
Capacity
The throughput capacity configuration for each partition.
JSON representation |
---|
{ "publishMibPerSec": integer, "subscribeMibPerSec": integer } |
Fields | |
---|---|
publishMibPerSec |
Publish throughput capacity per partition in MiB/s. Must be >= 4 and <= 16. |
subscribeMibPerSec |
Subscribe throughput capacity per partition in MiB/s. Must be >= 4 and <= 32. |
RetentionConfig
The settings for a topic's message retention.
JSON representation |
---|
{ "perPartitionBytes": string, "period": string } |
Fields | |
---|---|
perPartitionBytes |
The provisioned storage, in bytes, per partition. If the number of bytes stored in any of the topic's partitions grows beyond this value, older messages will be dropped to make room for newer ones, regardless of the value of |
period |
How long a published message is retained. If unset, messages will be retained as long as the bytes retained for each partition is below A duration in seconds with up to nine fractional digits, ending with ' |
ReservationConfig
The settings for this topic's Reservation usage.
JSON representation |
---|
{ "throughputReservation": string } |
Fields | |
---|---|
throughputReservation |
The Reservation to use for this topic's throughput capacity. Structured like: projects/{project_number}/locations/{location}/reservations/{reservationId} |
Methods |
|
---|---|
|
Creates a new topic. |
|
Deletes the specified topic. |
|
Returns the topic configuration. |
|
Returns the partition information for the requested topic. |
|
Returns the list of topics for the given project. |
|
Updates properties of the specified topic. |