- release_tracks: [ALPHA]
  help_text:
    brief: Create a new Cloud Media Asset asset type.
    description: Create a new Media Asset asset type.
    examples: |
      To create a new asset type with id  my-at with in the default project and 'us-central1' location, run:

        $ {command} my-at --create-asset-type-configs-file asset_type.json --labels a=x,b=y

      , where assetType.json can be:
      {
        "metadataConfigs": {
          "file": {
            "complexType": "system:gcs-file",
            "required": true
          }
        },
        "sortOrder": {"field":"createTime"}
      }

  request:
    collection: mediaasset.projects.locations.assetTypes
    method: create
    modify_request_hooks:
    - googlecloudsdk.command_lib.media.asset.hooks:AddDefaultParentInfoToAssetTypeRequests
    - googlecloudsdk.command_lib.media.asset.asset_types.hooks:ParseCreateConfigFile
    ALPHA:
      api_version: v1alpha

  arguments:
    resource:
      help_text: The Cloud Media Asset asset type to create.
      spec: !REF googlecloudsdk.command_lib.media.asset.resources:asset_type

    params:
    - _REF_: googlecloudsdk.command_lib.media.asset.flags:create-asset-type-config-file
    labels:
      api_field: assetType.labels

  response:
    modify_response_hooks:
    - googlecloudsdk.command_lib.media.asset.asset_types.hooks:ProcessOutput
