public sealed class CreateTopicRequest : IMessage<CreateTopicRequest>, IEquatable<CreateTopicRequest>, IDeepCloneable<CreateTopicRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Managed Service for Apache Kafka API v1 API class CreateTopicRequest.
Request for CreateTopic.
Implements
IMessageCreateTopicRequest, IEquatableCreateTopicRequest, IDeepCloneableCreateTopicRequest, IBufferMessage, IMessageNamespace
Google.Cloud.ManagedKafka.V1Assembly
Google.Cloud.ManagedKafka.V1.dll
Constructors
CreateTopicRequest()
public CreateTopicRequest()
CreateTopicRequest(CreateTopicRequest)
public CreateTopicRequest(CreateTopicRequest other)
Parameter | |
---|---|
Name | Description |
other |
CreateTopicRequest |
Properties
Parent
public string Parent { get; set; }
Required. The parent cluster in which to create the topic.
Structured like
projects/{project}/locations/{location}/clusters/{cluster}
.
Property Value | |
---|---|
Type | Description |
string |
ParentAsClusterName
public ClusterName ParentAsClusterName { get; set; }
ClusterName-typed view over the Parent resource name property.
Property Value | |
---|---|
Type | Description |
ClusterName |
Topic
public Topic Topic { get; set; }
Required. Configuration of the topic to create. Its name
field is
ignored.
Property Value | |
---|---|
Type | Description |
Topic |
TopicId
public string TopicId { get; set; }
Required. The ID to use for the topic, which will become the final component of the topic's name.
This value is structured like: my-topic-name
.
Property Value | |
---|---|
Type | Description |
string |