Class: Google::Apis::PubsubV1::Topic
- Inherits:
-
Object
- Object
- Google::Apis::PubsubV1::Topic
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pubsub_v1/classes.rb,
generated/google/apis/pubsub_v1/representations.rb,
generated/google/apis/pubsub_v1/representations.rb
Overview
A topic resource.
Instance Attribute Summary collapse
- #labels ⇒ Hash<String,String>
-
#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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Topic
Returns a new instance of Topic
1035 1036 1037 |
# File 'generated/google/apis/pubsub_v1/classes.rb', line 1035 def initialize(**args) update!(**args) end |
Instance Attribute Details
#labels ⇒ Hash<String,String>
See Creating and
managing labels.
Corresponds to the JSON property labels
1023 1024 1025 |
# File 'generated/google/apis/pubsub_v1/classes.rb', line 1023 def labels @labels end |
#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
1033 1034 1035 |
# File 'generated/google/apis/pubsub_v1/classes.rb', line 1033 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1040 1041 1042 1043 |
# File 'generated/google/apis/pubsub_v1/classes.rb', line 1040 def update!(**args) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) end |