- release_tracks: [ALPHA, BETA, GA]

  help_text:
    brief: Create a Realm.
    description: |
      Create a Cloud Game Server Realm.

      ## EXAMPLES

      To create Realm 'my-realm' in project 'my-project' with location in 'my-location' and time zone 'UTC', run:

        $ {command} my-realm --project=my-project --location=my-location --time-zone=UTC --labels=a=x,b=y


  request:
    collection: gameservices.projects.locations.realms
    ALPHA:
      api_version: v1alpha
    BETA:
      api_version: v1beta
    GA:
      api_version: v1

  arguments:
    resource:
      help_text: Cloud Game Server Realm to create.
      spec: !REF googlecloudsdk.command_lib.game.resources:realm

    params:
    - arg_name: description
      api_field: realm.description
      help_text: |
        Game server realm description.
    - arg_name: time-zone
      required: true
      api_field: realm.timeZone
      help_text: |
        Time zone where all realm-specific policies are evaluated. The value of this field must be
        from the IANA time zone database: https://www.iana.org/time-zones.
    labels:
      api_field: realm.labels

  async:
    collection: gameservices.projects.locations.operations
