Class: Google::Apis::PubsubV1beta2::Topic
- Inherits:
-
Object
- Object
- Google::Apis::PubsubV1beta2::Topic
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/pubsub_v1beta2/classes.rb,
lib/google/apis/pubsub_v1beta2/representations.rb,
lib/google/apis/pubsub_v1beta2/representations.rb
Overview
A topic resource.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the topic.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Topic
constructor
A new instance of Topic.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Topic
Returns a new instance of Topic.
836 837 838 |
# File 'lib/google/apis/pubsub_v1beta2/classes.rb', line 836 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ 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"
.
Corresponds to the JSON property name
834 835 836 |
# File 'lib/google/apis/pubsub_v1beta2/classes.rb', line 834 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
841 842 843 |
# File 'lib/google/apis/pubsub_v1beta2/classes.rb', line 841 def update!(**args) @name = args[:name] if args.key?(:name) end |