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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eTopic\u003c/code\u003e class in the Google Cloud Secret Manager v1 API is used for defining a Pub/Sub topic that receives notifications about control plane events related to secrets.\u003c/p\u003e\n"],["\u003cp\u003eVersion 2.5.0 is the latest release, and there are multiple previous versions available, going back to version 1.3.0, each with its own documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTopic\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eName\u003c/code\u003e property of the \u003ccode\u003eTopic\u003c/code\u003e class specifies the Pub/Sub topic's resource name and requires the Secret Manager service agent to have \u003ccode\u003epubsub.topic.publish\u003c/code\u003e permission.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTopicName\u003c/code\u003e property provides a strongly-typed view over the \u003ccode\u003eName\u003c/code\u003e resource property.\u003c/p\u003e\n"]]],[],null,["# Secret Manager v1 API - Class Topic (2.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.0 (latest)](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Topic)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.5.0/Google.Cloud.SecretManager.V1.Topic)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.4.0/Google.Cloud.SecretManager.V1.Topic)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.3.0/Google.Cloud.SecretManager.V1.Topic)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.2.0/Google.Cloud.SecretManager.V1.Topic)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.1.0/Google.Cloud.SecretManager.V1.Topic)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.0.0/Google.Cloud.SecretManager.V1.Topic)\n- [1.9.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.9.0/Google.Cloud.SecretManager.V1.Topic)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.8.0/Google.Cloud.SecretManager.V1.Topic)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.7.0/Google.Cloud.SecretManager.V1.Topic)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.6.0/Google.Cloud.SecretManager.V1.Topic)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.5.0/Google.Cloud.SecretManager.V1.Topic)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.4.0/Google.Cloud.SecretManager.V1.Topic)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.3.0/Google.Cloud.SecretManager.V1.Topic) \n\n public sealed class Topic : IMessage\u003cTopic\u003e, IEquatable\u003cTopic\u003e, IDeepCloneable\u003cTopic\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Secret Manager v1 API class Topic.\n\nA Pub/Sub topic which Secret Manager will publish to when control plane\nevents occur on this secret. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Topic \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Topic](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Topic), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Topic](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Topic), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Topic](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Topic), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.SecretManager.V1](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.SecretManager.V1.dll\n\nConstructors\n------------\n\n### Topic()\n\n public Topic()\n\n### Topic(Topic)\n\n public Topic(Topic other)\n\nProperties\n----------\n\n### Name\n\n public string Name { get; set; }\n\nIdentifier. The resource name of the Pub/Sub topic that will be published\nto, in the following format: `projects/*/topics/*`. For publication to\nsucceed, the Secret Manager service agent must have the\n`pubsub.topic.publish` permission on the topic. The Pub/Sub Publisher role\n(`roles/pubsub.publisher`) includes this permission.\n\n### TopicName\n\n public TopicName TopicName { get; set; }\n\n[TopicName](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.TopicName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Topic#Google_Cloud_SecretManager_V1_Topic_Name) resource name property."]]