Class: Google::Apis::SecretmanagerV1beta2::Topic

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

Overview

A Pub/Sub topic which Secret Manager will publish to when control plane events occur on this secret.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Topic

Returns a new instance of Topic.



1174
1175
1176
# File 'lib/google/apis/secretmanager_v1beta2/classes.rb', line 1174

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

Instance Attribute Details

#nameString

Required. The resource name of the Pub/Sub topic that will be published to, in the following format: projects/*/topics/*. For publication to succeed, the Secret Manager service agent must have the pubsub.topic.publish permission on the topic. The Pub/Sub Publisher role (roles/pubsub.publisher) includes this permission. Corresponds to the JSON property name

Returns:

  • (String)


1172
1173
1174
# File 'lib/google/apis/secretmanager_v1beta2/classes.rb', line 1172

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1179
1180
1181
# File 'lib/google/apis/secretmanager_v1beta2/classes.rb', line 1179

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