Class: Google::Apis::PubsubV1beta1a::Topic

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/pubsub_v1beta1a/classes.rb,
generated/google/apis/pubsub_v1beta1a/representations.rb,
generated/google/apis/pubsub_v1beta1a/representations.rb

Overview

A topic resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Topic

Returns a new instance of Topic.



594
595
596
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 594

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

Name of the topic. Corresponds to the JSON property name

Returns:

  • (String)


592
593
594
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 592

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



599
600
601
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 599

def update!(**args)
  @name = args[:name] if args.key?(:name)
end