Class: Google::Apis::PubsubliteV1::Topic

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

Overview

Metadata about a topic resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Topic

Returns a new instance of Topic.



429
430
431
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 429

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

Instance Attribute Details

#nameString

The name of the topic. Structured like: projects/project_number/locations/ location/topics/topic_id Corresponds to the JSON property name

Returns:

  • (String)


417
418
419
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 417

def name
  @name
end

#partition_configGoogle::Apis::PubsubliteV1::PartitionConfig

The settings for a topic's partitions. Corresponds to the JSON property partitionConfig



422
423
424
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 422

def partition_config
  @partition_config
end

#retention_configGoogle::Apis::PubsubliteV1::RetentionConfig

The settings for a topic's message retention. Corresponds to the JSON property retentionConfig



427
428
429
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 427

def retention_config
  @retention_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



434
435
436
437
438
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 434

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