types:
- type: router
  visible: true
  description: Configure custom domains for Cloud Run services with Google Cloud Load Balancer.
  required_apis:
  - compute.googleapis.com

- type: redis
  description: Configure a Redis instance (Cloud Memorystore) and connect it to a Cloud Run Service.
  visible: true
  parameters:
  - name: memory-size-gb
    description: Memory capacity of the Redis instance.
    data_type: int
    default: 1
  required_apis:
  - redis.googleapis.com
  - vpcaccess.googleapis.com

- type: cloudsql
  description: Configure a CloudSQL database instance and connect it to a Cloud Run Service.
  visible: false
  parameters:
  - name: tier
    description: 'The service tier of the instance. For example: db-f1-micro or db-g1-small.'
    data_type: string
    update_allowed: false
    required: true
  - name: version
    description: >-
      The version of CloudSQL software. For example: MYSQL_8_0, POSTGRES_14, or SQLSERVER_2019_STANDARD.
      See https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/SqlDatabaseVersion for more details.
    data_type: string
    update_allowed: false
    required: true
  required_apis:
  - sqladmin.googleapis.com
  - cloudresourcemanager.googleapis.com
  - secretmanager.googleapis.com

- type: firebase-hosting
  description: Configure custom domains for Cloud Run services with Firebase Hosting.
  visible: true
  parameters:
  - name: site-id
    description: 'The name of the Firebase Hosting site, which is the sub-domain of the default firebase domains created.'
    data_type: string
    update_allowed: true
    required: true
  required_apis:
  - firebasehosting.googleapis.com
