{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-bigtable/json-schema/google-cloud-bigtable-app-profile-schema.json",
  "title": "AppProfile",
  "description": "A configuration object describing how Cloud Bigtable should treat traffic from a particular end user application.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-bigtable-projects-api-openapi.yml#/components/schemas/AppProfile",
  "type": "object",
  "properties": {
    "description": {
      "type": "string",
      "description": "Long form description of the use case for this AppProfile."
    },
    "dataBoostIsolationReadOnly": {
      "$ref": "#/$defs/DataBoostIsolationReadOnly",
      "description": "Specifies that this app profile is intended for read-only usage via the Data Boost feature."
    },
    "name": {
      "type": "string",
      "description": "The unique name of the app profile, up to 50 characters long. Values are of the form `projects/{project}/instances/{instance}/appProfiles/_a-zA-Z0-9*`."
    },
    "standardIsolation": {
      "$ref": "#/$defs/StandardIsolation",
      "description": "The standard options used for isolating this app profile's traffic from other use cases."
    },
    "etag": {
      "description": "Strongly validated etag for optimistic concurrency control. Preserve the value returned from `GetAppProfile` when calling `UpdateAppProfile` to fail the request if there has been a modification in the meantime. The `update_mask` of the request need not include `etag` for this protection to apply. See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more details.",
      "type": "string"
    },
    "singleClusterRouting": {
      "$ref": "#/$defs/SingleClusterRouting",
      "description": "Use a single-cluster routing policy."
    },
    "priority": {
      "type": "string",
      "enum": [
        "PRIORITY_UNSPECIFIED",
        "PRIORITY_LOW",
        "PRIORITY_MEDIUM",
        "PRIORITY_HIGH"
      ],
      "description": "This field has been deprecated in favor of `standard_isolation.priority`. If you set this field, `standard_isolation.priority` will be set instead. The priority of requests sent using this app profile.",
      "deprecated": true
    },
    "multiClusterRoutingUseAny": {
      "$ref": "#/$defs/MultiClusterRoutingUseAny",
      "description": "Use a multi-cluster routing policy."
    }
  },
  "$defs": {
    "DataBoostIsolationReadOnly": {
      "properties": {
        "computeBillingOwner": {
          "description": "The Compute Billing Owner for this Data Boost App Profile.",
          "type": "string",
          "enum": [
            "COMPUTE_BILLING_OWNER_UNSPECIFIED",
            "HOST_PAYS"
          ]
        }
      },
      "type": "object",
      "description": "Data Boost is a serverless compute capability that lets you run high-throughput read jobs and queries on your Bigtable data, without impacting the performance of the clusters that handle your application traffic. Data Boost supports read-only use cases with single-cluster routing."
    },
    "MemoryConfig": {
      "type": "object",
      "properties": {},
      "description": "If set, eligible single-row requests (currently limited to ReadRows) using this app profile will be routed to the memory layer. All eligible writes populate the memory layer. MemoryConfig can only be set if the AppProfile uses single cluster routing and the configured cluster has a memory layer enabled."
    },
    "MultiClusterRoutingUseAny": {
      "type": "object",
      "description": "Read/write requests are routed to the nearest cluster in the instance, and will fail over to the nearest cluster that is available in the event of transient errors or delays. Clusters in a region are considered equidistant. Choosing this option sacrifices read-your-writes consistency to improve availability.",
      "properties": {
        "clusterIds": {
          "description": "The set of clusters to route to. The order is ignored; clusters will be tried in order of distance. If left empty, all clusters are eligible.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "rowAffinity": {
          "$ref": "#/$defs/RowAffinity",
          "description": "Row affinity sticky routing based on the row key of the request. Requests that span multiple rows are routed non-deterministically."
        }
      }
    },
    "RowAffinity": {
      "properties": {},
      "description": "If enabled, Bigtable will route the request based on the row key of the request, rather than randomly. Instead, each row key will be assigned to a cluster, and will stick to that cluster. If clusters are added or removed, then this may affect which row keys stick to which clusters. To avoid this, users can use a cluster group to specify which clusters are to be used. In this case, new clusters that are not a part of the cluster group will not be routed to, and routing will be unaffected by the new cluster. Moreover, clusters specified in the cluster group cannot be deleted unless removed from the cluster group.",
      "type": "object"
    },
    "SingleClusterRouting": {
      "description": "Unconditionally routes all read/write requests to a specific cluster. This option preserves read-your-writes consistency but does not improve availability.",
      "type": "object",
      "properties": {
        "allowTransactionalWrites": {
          "description": "Whether or not `CheckAndMutateRow` and `ReadModifyWriteRow` requests are allowed by this app profile. It is unsafe to send these requests to the same table/row/column in multiple clusters.",
          "type": "boolean"
        },
        "clusterId": {
          "type": "string",
          "description": "The cluster to which read/write requests should be routed."
        }
      }
    },
    "StandardIsolation": {
      "properties": {
        "memoryConfig": {
          "$ref": "#/$defs/MemoryConfig",
          "description": "Optional. The memory config to use for requests sent using this app profile."
        },
        "priority": {
          "description": "The priority of requests sent using this app profile.",
          "type": "string",
          "enum": [
            "PRIORITY_UNSPECIFIED",
            "PRIORITY_LOW",
            "PRIORITY_MEDIUM",
            "PRIORITY_HIGH"
          ]
        }
      },
      "type": "object",
      "description": "Standard options for isolating this app profile's traffic from other use cases."
    }
  }
}