Class: Google::Apis::SecretmanagerV1::Topic

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/secretmanager_v1/classes.rb,
lib/google/apis/secretmanager_v1/representations.rb,
lib/google/apis/secretmanager_v1/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.



1056
1057
1058
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 1056

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 P4SA must have pubsub.publisher permissions on the topic. Corresponds to the JSON property name

Returns:

  • (String)


1054
1055
1056
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 1054

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1061
1062
1063
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 1061

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