release_tracks: [GA, ALPHA, BETA]

help_text:
  brief: |
    Create a Managed Service for Apache Kafka topic.
  description: |
    Create a Managed Service for Apache Kafka topic.

  examples: |
    To create a topic in a cluster named mycluster located in us-central1,
    run the following:

      $ {command} mytopic \
          --cluster=mycluster
          --location=us-central1 \
          --partitions=1 \
          --replication-factor=3

request:
  collection: managedkafka.projects.locations.clusters.topics

arguments:
  resource:
    help_text: Identifies the name of the topic that this command creates.
    spec: !REF googlecloudsdk.command_lib.managed_kafka.resources:topic

  params:
  - _REF_: googlecloudsdk.command_lib.managed_kafka.flags:partitions
    required: true
  - _REF_: googlecloudsdk.command_lib.managed_kafka.flags:replication-factor
    required: true
  - _REF_: googlecloudsdk.command_lib.managed_kafka.flags:configs
