Class: Google::Pubsub::V1::Topic

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb

Overview

A topic resource.

Instance Attribute Summary collapse

Instance Attribute Details

#labelsHash{String => String}

Returns User labels.

Returns:

  • (Hash{String => String})

    User labels.



48
# File 'lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb', line 48

class Topic; end

#message_storage_policyGoogle::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.

Returns:

  • (Google::Pubsub::V1::MessageStoragePolicy)

    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

#nameString

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"+.

Returns:

  • (String)

    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