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

Constructor Details

#initialize(**args) ⇒ Topic

Returns a new instance of Topic.



579
580
581
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 579

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

Instance Attribute Details

#nameString

Name of the topic. Corresponds to the JSON property name

Returns:

  • (String)


577
578
579
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 577

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



584
585
586
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 584

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