Class: Google::Apis::SecretmanagerV1::Topic
- Inherits:
-
Object
- Object
- Google::Apis::SecretmanagerV1::Topic
- 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
-
#name ⇒ String
Identifier.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Topic
constructor
A new instance of Topic.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Topic
Returns a new instance of Topic.
1183 1184 1185 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 1183 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Identifier. 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
1181 1182 1183 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 1181 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1188 1189 1190 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 1188 def update!(**args) @name = args[:name] if args.key?(:name) end |