Class: Google::Pubsub::V1::Topic
- Inherits:
-
Object
- Object
- Google::Pubsub::V1::Topic
- Defined in:
- lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb
Overview
A topic resource.
Instance Attribute Summary collapse
-
#labels ⇒ Hash{String => String}
User labels.
-
#message_storage_policy ⇒ Google::Pubsub::V1::MessageStoragePolicy
Policy constraining how messages published to the topic may be stored.
-
#name ⇒ String
The name of the topic.
Instance Attribute Details
#labels ⇒ Hash{String => String}
Returns User labels.
48 |
# File 'lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb', line 48 class Topic; end |
#message_storage_policy ⇒ Google::Pubsub::V1::MessageStoragePolicy
Returns Policy constraining how messages published to the topic may be stored. It is determined when the topic is created based on the policy configured at the project level. It must not be set by the caller in the request to CreateTopic or to UpdateTopic. This field will be populated in the responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the response, then no constraints are in effect.
48 |
# File 'lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb', line 48 class Topic; end |
#name ⇒ String
Returns The name of the topic. It must have the format +"projects/{project}/topics/{topic}"+. +{topic}+ must start with a letter, and contain only letters (+[A-Za-z]+), numbers (+[0-9]+), dashes (+-+), underscores (+_+), periods (+.+), tildes (+~+), plus (+++) or percent signs (+%+). It must be between 3 and 255 characters in length, and it must not start with +"goog"+.
48 |
# File 'lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb', line 48 class Topic; end |