{
  "basePath": "/api/v2023/clusterManagement/v1beta2",
  "consumes": [
    "application/json"
  ],
  "definitions": {
    "ClusterNodeChangingProgress": {
      "properties": {
        "matchingNodeSpecNodeCount": {
          "description": "The number of nodes that match the specified node spec.",
          "format": "int32",
          "readOnly": true,
          "type": "integer"
        },
        "remainingDeletionNodeCount": {
          "description": "The number of nodes pending deletion. This value appears only during node deletion operations.",
          "format": "int32",
          "readOnly": true,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "ClusterSpendingLimit": {
      "description": "Message for spending limit configuration.",
      "properties": {
        "monthly": {
          "description": "The maximum spending limit for the cluster per month, in USD cents.",
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "ClusterStorageNodeSettingStorageType": {
      "description": " - Basic: Data disk: gp3; Raft log disk: none.\n - Standard: Data disk: gp3; Raft log disk: gp3.\n - Performance: Data disk: gp3; Raft log disk: io2.\n - Plus: Data disk: io2; Raft log disk: none.",
      "enum": [
        "Basic",
        "Standard",
        "Performance",
        "Plus"
      ],
      "type": "string"
    },
    "EndpointsPrivate": {
      "description": "Message for private endpoint to securely connect to the cluster.",
      "properties": {
        "alicloud": {
          "allOf": [
            {
              "$ref": "#/definitions/PrivateALICLOUD"
            }
          ],
          "readOnly": true
        },
        "authorizedNetworks": {
          "items": {
            "$ref": "#/definitions/EndpointsPrivateAuthorizedNetwork",
            "type": "object"
          },
          "type": "array"
        },
        "aws": {
          "allOf": [
            {
              "$ref": "#/definitions/PrivateAWS"
            }
          ],
          "readOnly": true
        },
        "gcp": {
          "allOf": [
            {
              "$ref": "#/definitions/PrivateGCP"
            }
          ],
          "readOnly": true
        },
        "host": {
          "description": "The hostname of the private endpoint.",
          "readOnly": true,
          "type": "string"
        },
        "port": {
          "description": "The port number of the private endpoint.",
          "format": "int32",
          "readOnly": true,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "EndpointsPrivateAuthorizedNetwork": {
      "properties": {
        "displayName": {
          "type": "string"
        },
        "vpcEndpointId": {
          "type": "string"
        }
      },
      "required": [
        "vpcEndpointId",
        "displayName"
      ],
      "type": "object"
    },
    "EndpointsPublic": {
      "description": "Message for public endpoint to connect to the cluster.",
      "properties": {
        "authorizedNetworks": {
          "description": "The list of networks that are allowed to connect to the cluster.",
          "items": {
            "$ref": "#/definitions/EndpointsPublicAuthorizedNetwork",
            "type": "object"
          },
          "type": "array"
        },
        "disabled": {
          "description": "Indicates whether the public endpoint is disabled.",
          "type": "boolean"
        },
        "host": {
          "description": "The hostname of the public endpoint.",
          "readOnly": true,
          "type": "string"
        },
        "port": {
          "format": "int32",
          "readOnly": true,
          "title": "The port number of the public endpoint",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "EndpointsPublicAuthorizedNetwork": {
      "properties": {
        "displayName": {
          "description": "The display name of the authorized network.",
          "type": "string"
        },
        "endIpAddress": {
          "description": "The ending IP address of the authorized network range.",
          "type": "string"
        },
        "startIpAddress": {
          "description": "The starting IP address of the authorized network range.",
          "type": "string"
        }
      },
      "required": [
        "startIpAddress",
        "endIpAddress",
        "displayName"
      ],
      "type": "object"
    },
    "ListCloudProvidersResponseGroupedCloudProvider": {
      "properties": {
        "cloudProviders": {
          "items": {
            "$ref": "#/definitions/v1beta1RegionCloudProvider"
          },
          "type": "array"
        },
        "servicePlan": {
          "$ref": "#/definitions/commonv1beta1ServicePlan"
        }
      },
      "type": "object"
    },
    "ListRegionsResponseFlatView": {
      "properties": {
        "regions": {
          "items": {
            "$ref": "#/definitions/commonv1beta1Region",
            "type": "object"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "ListRegionsResponseServicePlanGroup": {
      "properties": {
        "regions": {
          "items": {
            "$ref": "#/definitions/commonv1beta1Region",
            "type": "object"
          },
          "type": "array"
        },
        "servicePlan": {
          "$ref": "#/definitions/commonv1beta1ServicePlan"
        }
      },
      "type": "object"
    },
    "ListRegionsResponseServicePlanGroupedView": {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/definitions/ListRegionsResponseServicePlanGroup",
            "type": "object"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "PrivateALICLOUD": {
      "description": "The [Alibaba Cloud PrivateLink](https://www.alibabacloud.com/help/en/privatelink/product-overview/what-is-a-private-network-connection) configuration for private access.",
      "properties": {
        "availabilityZone": {
          "description": "A list of availability zones where the service is available.",
          "items": {
            "type": "string"
          },
          "readOnly": true,
          "type": "array"
        },
        "serviceName": {
          "description": "The Alibaba Cloud service name for private access.",
          "readOnly": true,
          "type": "string"
        }
      },
      "type": "object"
    },
    "PrivateAWS": {
      "description": "The [AWS PrivateLink](https://aws.amazon.com/privatelink/) configuration details for private access.",
      "properties": {
        "availabilityZone": {
          "description": "A list of availability zones where the service is available.",
          "items": {
            "type": "string"
          },
          "readOnly": true,
          "type": "array"
        },
        "serviceName": {
          "description": "The AWS service name for private access.",
          "readOnly": true,
          "type": "string"
        }
      },
      "type": "object"
    },
    "PrivateGCP": {
      "description": "Message for GCP Private Service information.",
      "properties": {
        "serviceAttachmentName": {
          "description": "The target GCP service attachment name for private access.",
          "readOnly": true,
          "type": "string"
        }
      },
      "type": "object"
    },
    "TiDBServiceMoveTiDBBody": {
      "description": "MoveTiDBRequest moves a single Starter or Essential tidb to a target project.",
      "properties": {
        "name": {
          "description": "new name of instance after move, if not provided, the name won't be changed.",
          "type": "string"
        },
        "targetProjectId": {
          "description": "target_project_id is the destination project.",
          "type": "string"
        }
      },
      "required": [
        "targetProjectId"
      ],
      "type": "object"
    },
    "bffcluster_managementv1beta2BindTagsResponse": {
      "properties": {
        "tags": {
          "items": {
            "$ref": "#/definitions/commonv1beta1Tag",
            "type": "object"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "bffcluster_managementv1beta2ListCloudProvidersResponse": {
      "properties": {
        "cloudProviders": {
          "items": {
            "$ref": "#/definitions/ListCloudProvidersResponseGroupedCloudProvider",
            "type": "object"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "bffcluster_managementv1beta2ListRegionsResponse": {
      "properties": {
        "flatView": {
          "$ref": "#/definitions/ListRegionsResponseFlatView"
        },
        "servicePlanGroupView": {
          "$ref": "#/definitions/ListRegionsResponseServicePlanGroupedView"
        }
      },
      "type": "object"
    },
    "bffcluster_managementv1beta2ListTidbsResponse": {
      "properties": {
        "nextPageToken": {
          "type": "string"
        },
        "tidbs": {
          "items": {
            "$ref": "#/definitions/bffcluster_managementv1beta2Tidb",
            "type": "object"
          },
          "type": "array"
        },
        "totalSize": {
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "bffcluster_managementv1beta2Tidb": {
      "properties": {
        "byocInstance": {
          "$ref": "#/definitions/tidb_cloud_open_apinextgenv1beta2Tidb"
        },
        "dedicatedCluster": {
          "$ref": "#/definitions/tidb_cloud_open_apidedicatedv1beta1Cluster"
        },
        "engineType": {
          "$ref": "#/definitions/commonv1beta1EngineType"
        },
        "essentialInstance": {
          "$ref": "#/definitions/tidb_cloud_open_apiserverlessv1beta1Cluster"
        },
        "essentialV2Instance": {
          "$ref": "#/definitions/tidb_cloud_open_apinextgenv1beta2Tidb"
        },
        "name": {
          "readOnly": true,
          "type": "string"
        },
        "organizationId": {
          "format": "uint64",
          "readOnly": true,
          "type": "string"
        },
        "originalProjectId": {
          "format": "uint64",
          "readOnly": true,
          "type": "string"
        },
        "premiumInstance": {
          "$ref": "#/definitions/tidb_cloud_open_apinextgenv1beta2Tidb"
        },
        "premiumReservedInstance": {
          "$ref": "#/definitions/tidb_cloud_open_apinextgenv1beta2Tidb"
        },
        "projectId": {
          "format": "uint64",
          "readOnly": true,
          "type": "string"
        },
        "ruVersion": {
          "description": "The version of RU (Request Unit) calculation used by the TiDB kernel.\nOnly visible in BFF API (Console), not in public OpenAPI.",
          "format": "int32",
          "readOnly": true,
          "type": "integer"
        },
        "servicePlan": {
          "$ref": "#/definitions/commonv1beta1ServicePlan"
        },
        "starterInstance": {
          "$ref": "#/definitions/tidb_cloud_open_apiserverlessv1beta1Cluster"
        },
        "tags": {
          "items": {
            "$ref": "#/definitions/commonv1beta1Tag",
            "type": "object"
          },
          "type": "array"
        },
        "tidbId": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "bffcluster_managementv1beta2UnbindTagsResponse": {
      "properties": {
        "tags": {
          "items": {
            "$ref": "#/definitions/commonv1beta1Tag",
            "type": "object"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "commonv1beta1ClusterState": {
      "description": "Enum of possible states of a cluster.\n\n - CREATING: Cluster is being created.\n - DELETING: Cluster is being deleted.\n - ACTIVE: Cluster is active for use.\n - RESTORING: Cluster data is being restored.\n - MAINTENANCE: Cluster is under maintenance.\n - DELETED: Cluster has been deleted.\n - INACTIVE: Cluster is not active, but not being deleted.\n - UPGRADING: Cluster is being updated.\nOnly for Dedicated Cluster.\n - IMPORTING: Cluster is being imported.\nOnly for Dedicated Cluster.\n - MODIFYING: Cluster is being modified.\nOnly for Dedicated Cluster.\n - PAUSING: Cluster is being paused.\nOnly for Dedicated Cluster.\n - PAUSED: Cluster is paused.\nOnly for Dedicated Cluster.\n - RESUMING: Cluster is resuming.\nOnly for Dedicated Cluster.",
      "enum": [
        "CREATING",
        "DELETING",
        "ACTIVE",
        "RESTORING",
        "MAINTENANCE",
        "DELETED",
        "INACTIVE",
        "UPGRADING",
        "IMPORTING",
        "MODIFYING",
        "PAUSING",
        "PAUSED",
        "RESUMING"
      ],
      "type": "string"
    },
    "commonv1beta1EngineType": {
      "enum": [
        "MYSQL_COMPATIBLE",
        "POSTGRESQL_COMPATIBLE"
      ],
      "type": "string"
    },
    "commonv1beta1Region": {
      "description": "A representation of a region for deploying TiDB clusters.",
      "properties": {
        "cloudProvider": {
          "allOf": [
            {
              "$ref": "#/definitions/v1beta1RegionCloudProvider"
            }
          ],
          "description": "The cloud provider that offers the region.\n\n- `\"aws\"`: Amazon Web Services\n\n- `\"gcp\"`: Google Cloud\n\n- `\"azure\"`: Microsoft Azure\n\n- `\"alicloud\"`: Alibaba Cloud",
          "example": "aws",
          "readOnly": true
        },
        "displayName": {
          "description": "A human-readable name for the region. For example, `Oregon (us-west-2)`.",
          "example": "Oregon (us-west-2)",
          "readOnly": true,
          "type": "string"
        },
        "name": {
          "description": "The unique name of the region, in the format of `regions/{region_id}`. For example, `regions/aws-us-west-2`.",
          "example": "regions/aws-us-west-2",
          "pattern": "^regions/(aws|gcp|azure)-(.+)$",
          "type": "string"
        },
        "provider": {
          "description": "**Deprecated.** Use `cloudProvider` instead. The name of the cloud provider. For example, `aws`, `gcp`, `azure`, or `alicloud`.",
          "example": "aws",
          "readOnly": true,
          "title": "Deprecated",
          "type": "string",
          "x-nullable": true
        },
        "regionId": {
          "description": "The unique identifier for the region, in the format of `{cloud_provider}-{region_code}`. For example, `aws-us-west-2`.",
          "example": "aws-us-west-2",
          "pattern": "^(aws|gcp|azure|alicloud)-[a-z0-9-]+$",
          "readOnly": true,
          "type": "string"
        },
        "servicePlans": {
          "description": "The service plans available in this region. Premium, Essential_V2, and Premium_Reserved can appear together in the same logical region. Starter, Essential, and BYOC are standalone service plans and cannot share a logical region with any other service plan.",
          "example": [
            "Premium",
            "Essential_V2",
            "Premium_Reserved"
          ],
          "items": {
            "$ref": "#/definitions/commonv1beta1ServicePlan"
          },
          "readOnly": true,
          "title": "ServicePlan",
          "type": "array"
        },
        "supportedServicePlans": {
          "items": {
            "$ref": "#/definitions/v1beta1ServicePlanInfo",
            "type": "object"
          },
          "readOnly": true,
          "type": "array"
        }
      },
      "type": "object"
    },
    "commonv1beta1ServicePlan": {
      "enum": [
        "Starter",
        "Essential",
        "Premium",
        "BYOC",
        "Dedicated",
        "Premium_Reserved",
        "Essential_V2"
      ],
      "type": "string"
    },
    "commonv1beta1Tag": {
      "properties": {
        "key": {
          "description": "The key of the tag.",
          "example": "env",
          "type": "string"
        },
        "name": {
          "description": "The unique name of the tag, in the format `tags/{key}:{value}`.",
          "example": "tags/aaa:bbb",
          "pattern": "^tags/(.+):(.+)$",
          "type": "string"
        },
        "value": {
          "description": "The value of the tag.",
          "example": "prod",
          "type": "string"
        }
      },
      "required": [
        "key",
        "value"
      ],
      "type": "object"
    },
    "dedicatedv1beta1ClusterPausePlan": {
      "properties": {
        "pauseType": {
          "allOf": [
            {
              "$ref": "#/definitions/dedicatedv1beta1ClusterPausePlanType"
            }
          ],
          "description": "The type of the pause plan.\n\n- `\"NORMAL\"`: the default pause plan.\n- `\"DEPRECATE\"`: the legacy pause plan and will be removed in a future release.",
          "title": "PausePlanType"
        },
        "scheduledResumeTime": {
          "description": "The scheduled time for the cluster to automatically resume from the `PAUSED` state, in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        }
      },
      "required": [
        "pauseType"
      ],
      "type": "object"
    },
    "dedicatedv1beta1ClusterPausePlanType": {
      "enum": [
        "NORMAL",
        "DEPRECATE"
      ],
      "title": "- NORMAL: default pause plan\n - DEPRECATE: old pause plan, will be removed",
      "type": "string"
    },
    "dedicatedv1beta1TidbNodeGroup": {
      "properties": {
        "clusterId": {
          "description": "The ID of the cluster that the TiDB node group belongs to.\n\n- This field is **optional** when creating a cluster with the default TiDB group.\n\n- This field is **required** when creating a non-default TiDB group.",
          "example": "1",
          "type": "string"
        },
        "displayName": {
          "description": "The display name of the TiDB group.",
          "example": "DefaultGroup",
          "type": "string"
        },
        "endpoints": {
          "description": "The endpoints of the TiDB group.",
          "example": [],
          "items": {
            "$ref": "#/definitions/dedicatedv1beta1TidbNodeGroupEndpoint",
            "type": "object"
          },
          "readOnly": true,
          "title": "Endpoint",
          "type": "array"
        },
        "isDefaultGroup": {
          "description": "Indicates whether this is the default TiDB node group.",
          "example": false,
          "readOnly": true,
          "type": "boolean"
        },
        "name": {
          "description": "The resource name of the TiDB group, in the format of `tidbNodeGroups/{tidb_node_group_id}`.",
          "example": "tidbNodeGroups/1",
          "readOnly": true,
          "type": "string"
        },
        "nodeChangingProgress": {
          "allOf": [
            {
              "$ref": "#/definitions/ClusterNodeChangingProgress"
            }
          ],
          "description": "The progress of node configuration changes.",
          "readOnly": true,
          "title": "NodeChangingProgress"
        },
        "nodeCount": {
          "description": "The number of TiDB nodes in the TiDB group. It must be greater than or equal to `1`.",
          "example": 2,
          "format": "int32",
          "minimum": 1,
          "type": "integer"
        },
        "nodeSpecDisplayName": {
          "description": "The display name of the node spec of the TiDB group. For example, `8 vCPU, 32 GiB`.",
          "example": "8 vCPU, 32 GiB",
          "readOnly": true,
          "type": "string"
        },
        "nodeSpecKey": {
          "description": "The node spec key of the TiDB group. For example, `8C32G`.",
          "example": "8C32G",
          "type": "string"
        },
        "nodeSpecVersion": {
          "description": "The version tag of the node spec resource. The performance and price of the component may vary based on the version tag.",
          "readOnly": true,
          "type": "string"
        },
        "state": {
          "allOf": [
            {
              "$ref": "#/definitions/dedicatedv1beta1TidbNodeGroupState"
            }
          ],
          "description": "The current state of the TiDB group.",
          "example": "ACTIVE",
          "readOnly": true
        },
        "tidbNodeGroupId": {
          "description": "The unique ID of the TiDB group.",
          "example": "1",
          "readOnly": true,
          "type": "string"
        },
        "tiproxyNodeChangingProgress": {
          "allOf": [
            {
              "$ref": "#/definitions/ClusterNodeChangingProgress"
            }
          ],
          "description": "The progress of TiProxy node configuration changes.",
          "readOnly": true
        },
        "tiproxySetting": {
          "allOf": [
            {
              "$ref": "#/definitions/dedicatedv1beta1TidbNodeGroupTiProxySetting"
            }
          ],
          "description": "Configures TiProxy settings for this TiDB group. If not specified, the default TiProxy settings is used."
        }
      },
      "required": [
        "nodeCount"
      ],
      "type": "object"
    },
    "dedicatedv1beta1TidbNodeGroupEndpoint": {
      "properties": {
        "connectionType": {
          "allOf": [
            {
              "$ref": "#/definitions/v1beta1TidbNodeGroupEndpointConnectionType"
            }
          ],
          "description": "The connection type for TiDB node group endpoints.\n\n- `\"PUBLIC\"`: indicates that the endpoint is accessible over the public network.\n\n- `\"VPC_PEERING\"`: indicates that the endpoint is accessible over [VPC peering](https://docs.pingcap.com/tidbcloud/tidb-cloud-glossary/#vpc-peering).\n\n- `\"PRIVATE_ENDPOINT\"`: indicates that the endpoint is accessible over a private link.",
          "example": "PRIVATE_ENDPOINT",
          "readOnly": true
        },
        "host": {
          "description": "The hostname or IP address of the endpoint. For `PRIVATE_ENDPOINT` connection types, availability varies by cloud provider:\n\n- For clusters deployed on AWS, the `host` field is available after the private link service is ready.\n\n- For clusters deployed on Google Cloud or Azure, the `host` field is available after you create a `PrivateEndpointConnection`.",
          "readOnly": true,
          "type": "string"
        },
        "port": {
          "description": "The port of the endpoint connection.",
          "format": "int32",
          "readOnly": true,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "dedicatedv1beta1TidbNodeGroupState": {
      "description": " - ACTIVE: Indicates the TiDB group is active and ready for use.\n - MODIFYING: Indicates the TiDB group is being modified.\n - PAUSED: Indicates the TiDB group is paused.",
      "enum": [
        "ACTIVE",
        "MODIFYING",
        "PAUSED"
      ],
      "type": "string"
    },
    "dedicatedv1beta1TidbNodeGroupTiProxySetting": {
      "properties": {
        "nodeCount": {
          "description": "The number of TiProxy nodes in the TiDB group. If not specified or set to `0`, TiProxy is disabled.",
          "example": 2,
          "format": "int32",
          "type": "integer",
          "x-nullable": true
        },
        "nodeSpecDisplayName": {
          "description": "The display name of the TiProxy node spec. For example, `2 vCPU, 4 GiB`.",
          "example": "2 vCPU, 4 GiB",
          "readOnly": true,
          "type": "string"
        },
        "nodeSpecKey": {
          "description": "The node spec key of the TiProxy nodes in the cluster. For example, `2C4G`.\n\nTo view available node specs, use the [List node specs](#tag/RegionService/operation/RegionService_ListNodeSpecs) endpoint.",
          "example": "2C4G",
          "type": "string"
        },
        "nodeSpecVersion": {
          "readOnly": true,
          "type": "string"
        }
      },
      "required": [
        "nodeSpecKey"
      ],
      "type": "object"
    },
    "googlerpcStatus": {
      "description": "The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors).",
      "properties": {
        "code": {
          "description": "The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code].",
          "format": "int32",
          "type": "integer"
        },
        "details": {
          "description": "A list of messages that carry the error details.  There is a common set of\nmessage types for APIs to use.",
          "items": {
            "$ref": "#/definitions/protobufAny",
            "type": "object"
          },
          "type": "array"
        },
        "message": {
          "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "nextgenv1beta2CmekAccessIamPrincipalAliyunCmekPrincipal": {
      "properties": {
        "accountId": {
          "description": "The Alibaba Cloud account ID of the CMEK IAM principal.",
          "readOnly": true,
          "type": "string"
        }
      },
      "type": "object"
    },
    "nextgenv1beta2CmekAccessIamPrincipalAwsCmekPrincipal": {
      "properties": {
        "accountId": {
          "description": "The AWS account ID of the CMEK IAM principal.",
          "readOnly": true,
          "type": "string"
        },
        "externalId": {
          "description": "The AWS STS AssumeRole `ExternalId` that must be pinned in the KMS\nkey policy's `Condition` block when granting access to this principal.",
          "readOnly": true,
          "type": "string"
        }
      },
      "type": "object"
    },
    "nextgenv1beta2ConnectionReachability": {
      "properties": {
        "detail": {
          "allOf": [
            {
              "$ref": "#/definitions/nextgenv1beta2ConnectionReachabilityDetail"
            }
          ],
          "description": "The detailed reachability status of the endpoint connection.",
          "readOnly": true
        },
        "reachable": {
          "description": "Indicates whether the endpoint is reachable.",
          "readOnly": true,
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "nextgenv1beta2ConnectionReachabilityDetail": {
      "properties": {
        "dnsReachable": {
          "description": "Indicates whether the DNS is reachable.",
          "readOnly": true,
          "type": "boolean"
        },
        "endpointActive": {
          "description": "Indicates whether the endpoint is active.",
          "readOnly": true,
          "type": "boolean"
        },
        "message": {
          "description": "A human-readable message that describes the reachability status.",
          "readOnly": true,
          "type": "string"
        },
        "serviceActive": {
          "description": "Indicates whether the service is active.",
          "readOnly": true,
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "nextgenv1beta2CustomerManagedEncryptionKey": {
      "properties": {
        "aliyunKms": {
          "allOf": [
            {
              "$ref": "#/definitions/nextgenv1beta2CustomerManagedEncryptionKeyAliyunKms"
            }
          ],
          "description": "The configuration for Alibaba Cloud KMS."
        },
        "aliyunPrincipal": {
          "allOf": [
            {
              "$ref": "#/definitions/nextgenv1beta2CmekAccessIamPrincipalAliyunCmekPrincipal"
            }
          ],
          "description": "Alibaba Cloud RAM principal."
        },
        "awsKms": {
          "allOf": [
            {
              "$ref": "#/definitions/nextgenv1beta2CustomerManagedEncryptionKeyAwsKms"
            }
          ],
          "description": "The configuration for AWS KMS."
        },
        "awsPrincipal": {
          "allOf": [
            {
              "$ref": "#/definitions/nextgenv1beta2CmekAccessIamPrincipalAwsCmekPrincipal"
            }
          ],
          "description": "AWS IAM principal."
        },
        "cloudProvider": {
          "allOf": [
            {
              "$ref": "#/definitions/v1beta1RegionCloudProvider"
            }
          ],
          "description": "The cloud provider where the CMEK is located.\n\n- `\"aws\"`: Amazon Web Services\n\n- `\"gcp\"`: Google Cloud (not yet supported, planned for a future release)\n\n- `\"azure\"`: Microsoft Azure (not yet supported, planned for a future release)\n\n- `\"alicloud\"`: Alibaba Cloud",
          "readOnly": true
        },
        "createTime": {
          "description": "The timestamp when the CMEK was created, in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "customerManagedEncryptionKeyId": {
          "description": "The ID of the CMEK.",
          "readOnly": true,
          "type": "string"
        },
        "name": {
          "description": "The unique name of the CMEK, in the format of `cmeks/{cmek_id}`.",
          "readOnly": true,
          "type": "string"
        },
        "regionId": {
          "description": "The region where the CMEK is located, in the format of `{cloud_provider}-{region_code}`. For example, `aws-us-west-2`.",
          "type": "string"
        },
        "servicePlan": {
          "$ref": "#/definitions/commonv1beta1ServicePlan"
        }
      },
      "required": [
        "regionId",
        "servicePlan"
      ],
      "type": "object"
    },
    "nextgenv1beta2CustomerManagedEncryptionKeyAliyunKms": {
      "properties": {
        "kmsKeyArn": {
          "description": "The Alibaba Cloud KMS key ARN used for encryption, e.g.\n`acs:kms:ap-southeast-1:5841052134823325:key/key-sgp68887a54phjt9703ut`.",
          "type": "string"
        }
      },
      "required": [
        "kmsKeyArn"
      ],
      "type": "object"
    },
    "nextgenv1beta2CustomerManagedEncryptionKeyAwsKms": {
      "properties": {
        "kmsKeyArn": {
          "description": "The Amazon Resource Name (ARN) of the AWS KMS key used for encryption.",
          "type": "string"
        }
      },
      "required": [
        "kmsKeyArn"
      ],
      "type": "object"
    },
    "protobufAny": {
      "additionalProperties": {},
      "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n    Foo foo = ...;\n    Any any;\n    any.PackFrom(foo);\n    ...\n    if (any.UnpackTo(\u0026foo)) {\n      ...\n    }\n\nExample 2: Pack and unpack a message in Java.\n\n    Foo foo = ...;\n    Any any = Any.pack(foo);\n    ...\n    if (any.is(Foo.class)) {\n      foo = any.unpack(Foo.class);\n    }\n    // or ...\n    if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n      foo = any.unpack(Foo.getDefaultInstance());\n    }\n\n Example 3: Pack and unpack a message in Python.\n\n    foo = Foo(...)\n    any = Any()\n    any.Pack(foo)\n    ...\n    if any.Is(Foo.DESCRIPTOR):\n      any.Unpack(foo)\n      ...\n\n Example 4: Pack and unpack a message in Go\n\n     foo := \u0026pb.Foo{...}\n     any, err := anypb.New(foo)\n     if err != nil {\n       ...\n     }\n     ...\n     foo := \u0026pb.Foo{}\n     if err := any.UnmarshalTo(foo); err != nil {\n       ...\n     }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n    package google.profile;\n    message Person {\n      string first_name = 1;\n      string last_name = 2;\n    }\n\n    {\n      \"@type\": \"type.googleapis.com/google.profile.Person\",\n      \"firstName\": \u003cstring\u003e,\n      \"lastName\": \u003cstring\u003e\n    }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n    {\n      \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n      \"value\": \"1.212s\"\n    }",
      "properties": {
        "@type": {
          "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n  value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n  URL, or have them precompiled into a binary to avoid any\n  lookup. Therefore, binary compatibility needs to be preserved\n  on changes to types. (Use versioned type names to manage\n  breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "serverlessv1beta1ClusterHighAvailabilityType": {
      "description": "The high availability configuration for the cluster.\n\n- `ZONAL`: high availability within a single availability zone. For more information, see [Zonal high availability architecture](https://docs.pingcap.com/tidbcloud/serverless-high-availability/#zonal-high-availability-architecture).\n- `REGIONAL`: high availability across multiple availability zones within a region. For more information, see [Regional high availability architecture](https://docs.pingcap.com/tidbcloud/serverless-high-availability/#regional-high-availability-architecture).",
      "enum": [
        "ZONAL",
        "REGIONAL"
      ],
      "type": "string"
    },
    "tidb_cloud_open_apidedicatedv1beta1Cluster": {
      "description": "Cluster represents a dedicated TiDB cluster.",
      "properties": {
        "annotations": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "The annotations for the cluster. The following lists some predefined annotations:\n- `tidb.cloud/has-set-password`: indicates whether the cluster has a root password set.\n- `tidb.cloud/available-features`: lists available features of the cluster.\n- `tidb.cloud/insufficient-vm-resource`: indicates insufficient virtual machine resources during during cluster creation or modification.",
          "example": {
            "tidb.cloud/has-set-password": "false"
          },
          "readOnly": true,
          "title": "map\u003cstring, string\u003e",
          "type": "object"
        },
        "cloudProvider": {
          "allOf": [
            {
              "$ref": "#/definitions/v1beta1RegionCloudProvider"
            }
          ],
          "description": "The cloud provider where the cluster is located.\n\n- `\"aws\"`: Amazon Web Services\n\n- `\"gcp\"`: Google Cloud\n\n- `\"azure\"`: Microsoft Azure\n\n- `\"alicloud\"`: Alibaba Cloud",
          "example": "aws",
          "readOnly": true,
          "title": "CloudProvider"
        },
        "clusterId": {
          "description": "The ID of the cluster.",
          "example": "1",
          "readOnly": true,
          "type": "string"
        },
        "createTime": {
          "description": "The timestamp when the cluster was created, in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.",
          "example": "2023-10-01T12:00:00Z",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "createdBy": {
          "description": "The email address or public API key of the user who create the cluster.",
          "example": "test@example.com",
          "readOnly": true,
          "type": "string"
        },
        "displayName": {
          "description": "The user-defined name of the cluster.",
          "example": "foo-bar",
          "maxLength": 64,
          "minLength": 4,
          "pattern": "^[A-Za-z0-9][-A-Za-z0-9]{2,62}[A-Za-z0-9]$",
          "type": "string"
        },
        "labels": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "Key-value pairs used to label the cluster. If the `tidb.cloud/project` label is not specified, the cluster is associated with the default project in the creator's organization. \n\n**Note**: Currently, only the `tidb.cloud/project` label key can be specified when creating a new cluster.",
          "example": {
            "tidb.cloud/project": "1"
          },
          "title": "map\u003cstring, string\u003e",
          "type": "object"
        },
        "name": {
          "description": "The unique identifier for the TiDB cluster, which is generated by the API and follows the format `clusters/{clusterId}`.",
          "example": "clusters/1",
          "readOnly": true,
          "type": "string"
        },
        "pausePlan": {
          "allOf": [
            {
              "$ref": "#/definitions/dedicatedv1beta1ClusterPausePlan"
            }
          ],
          "description": "The pause plan configuration of the cluster.",
          "readOnly": true,
          "title": "PausePlan"
        },
        "port": {
          "default": "4000",
          "description": "The port for cluster connections. All network endpoints in the cluster use this port.",
          "example": 4000,
          "format": "int32",
          "maximum": 65535,
          "minimum": 1024,
          "type": "integer"
        },
        "regionDisplayName": {
          "description": "The display name of the region where the cluster is located. For example, `N. Virginia (us-east-1)`.",
          "example": "N. Virginia (us-east-1)",
          "readOnly": true,
          "type": "string"
        },
        "regionId": {
          "description": "The region where the cluster is deployed, in the format of `{cloud_provider}-{region_code}`. For example, `aws-us-west-2`.",
          "example": "aws-us-west-2",
          "type": "string"
        },
        "rootPassword": {
          "description": "The root password of the cluster. It must be between 8 and 64 characters long and can contain letters, numbers, and special characters.",
          "example": "my-shining-password",
          "maxLength": 64,
          "minLength": 8,
          "pattern": "^.{8,64}$",
          "type": "string"
        },
        "state": {
          "allOf": [
            {
              "$ref": "#/definitions/commonv1beta1ClusterState"
            }
          ],
          "description": "The current state of the cluster.",
          "example": "ACTIVE",
          "readOnly": true
        },
        "tags": {
          "items": {
            "$ref": "#/definitions/commonv1beta1Tag",
            "type": "object"
          },
          "type": "array"
        },
        "tidbNodeSetting": {
          "allOf": [
            {
              "$ref": "#/definitions/v1beta1ClusterTidbNodeSetting"
            }
          ],
          "description": "The configuration for [TiDB nodes](https://docs.pingcap.com/tidbcloud/tidb-cloud-glossary/#tidb-node) in a TiDB Cloud Dedicated cluster.\n\nTo view available node specs for a specific region and cloud provider, use the [List node specs](#tag/RegionService/operation/RegionService_ListNodeSpecs) endpoint.",
          "title": "TidbNodeSetting"
        },
        "tiflashNodeSetting": {
          "allOf": [
            {
              "$ref": "#/definitions/v1beta1ClusterStorageNodeSetting"
            }
          ],
          "description": "The configuration for [TiFlash nodes](https://docs.pingcap.com/tidbcloud/tidb-cloud-glossary/#tiflash-node) in a TiDB Cloud Dedicated cluster. If not set, TiFlash is disabled.\n\nTo view available node specs for a specific region and cloud provider, use the [List node specs](#tag/RegionService/operation/RegionService_ListNodeSpecs) endpoint.",
          "example": {
            "nodeCount": 3,
            "nodeSpecKey": "16C128G",
            "storageSizeGi": 500,
            "storageType": "Basic"
          },
          "title": "StorageNodeSetting"
        },
        "tikvNodeSetting": {
          "allOf": [
            {
              "$ref": "#/definitions/v1beta1ClusterStorageNodeSetting"
            }
          ],
          "description": "The configuration for [TiKV nodes](https://docs.pingcap.com/tidbcloud/tidb-cloud-glossary/#tikv-node) in a TiDB Cloud Dedicated cluster.\n\nTo view available node specs for a specific region and cloud provider, use the [List node specs](#tag/RegionService/operation/RegionService_ListNodeSpecs) endpoint.",
          "title": "StorageNodeSetting"
        },
        "updateTime": {
          "description": "The timestamp when the cluster was last updated, in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.",
          "example": "2023-10-01T12:00:00Z",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "version": {
          "description": "The TiDB version of the cluster.",
          "example": "8.5.2",
          "readOnly": true,
          "type": "string"
        }
      },
      "required": [
        "displayName",
        "regionId",
        "tidbNodeSetting",
        "tikvNodeSetting",
        "port"
      ],
      "type": "object"
    },
    "tidb_cloud_open_apinextgenv1beta2Tidb": {
      "properties": {
        "annotations": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "The annotations for the TiDB Cloud Premium instance. The following lists some predefined annotations:\n- `tidb.cloud/has-set-password`: indicates whether the TiDB Cloud Premium instance has a root password set.\n- `tidb.cloud/available-features`: lists available features of the TiDB Cloud Premium instance.",
          "type": "object"
        },
        "automaticResumeAt": {
          "description": "The scheduled time when the Resource Pool will automatically resume this instance's pool.\nThis field is set only while the Resource Pool is paused.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "capacityUpdateTime": {
          "description": "The timestamp when the capacity of the TiDB Cloud Premium instance was last updated, in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "cloudProvider": {
          "allOf": [
            {
              "$ref": "#/definitions/v1beta1RegionCloudProvider"
            }
          ],
          "description": "The cloud provider where the TiDB Cloud Premium instance is deployed.\n\n- `\"aws\"`: Amazon Web Services\n\n- `\"gcp\"`: Google Cloud\n\n- `\"azure\"`: Microsoft Azure\n\n- `\"alicloud\"`: Alibaba Cloud",
          "readOnly": true
        },
        "createTime": {
          "description": "The timestamp when the TiDB Cloud Premium instance was created, in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "creator": {
          "description": "The email address or public API key of the user who created the TiDB Cloud Premium instance.",
          "readOnly": true,
          "type": "string"
        },
        "displayName": {
          "description": "The user-defined name of the TiDB Cloud Premium instance.",
          "example": "foo-bar",
          "maxLength": 64,
          "minLength": 4,
          "pattern": "^[A-Za-z0-9][-A-Za-z0-9]{2,62}[A-Za-z0-9]$",
          "type": "string"
        },
        "dualLayerDataEncryption": {
          "allOf": [
            {
              "$ref": "#/definitions/v1beta2TidbDualLayerDataEncryption"
            }
          ],
          "description": "The dual-layer data encryption configuration for the TiDB Cloud Premium instance."
        },
        "endpoints": {
          "description": "The connection endpoints for accessing the TiDB Cloud Premium instance.",
          "items": {
            "$ref": "#/definitions/v1beta2TidbEndpoint",
            "type": "object"
          },
          "readOnly": true,
          "type": "array"
        },
        "highAvailabilityType": {
          "allOf": [
            {
              "$ref": "#/definitions/v1beta2TidbHighAvailabilityType"
            }
          ],
          "description": "The high availability configuration for the TiDB Cloud instance.\n- `REGIONAL`: high availability across multiple availability zones within a region. For more information, see [Regional high availability architecture](https://docs.pingcap.com/tidbcloud/serverless-high-availability/#regional-high-availability-architecture).\n- `ZONAL`: high availability within a single availability zone. For more information, see [Zonal high availability architecture](https://docs.pingcap.com/tidbcloud/serverless-high-availability/#zonal-high-availability-architecture).\nTiDB Cloud Premium and Premium Reserved support only `REGIONAL`.\nIf omitted for TiDB Cloud Essential, the selected resource pool determines the value."
        },
        "labels": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "The labels for the TiDB Cloud Premium instance.\n- `tidb.cloud/organization`: the ID of the organization where the TiDB Cloud Premium instance belongs.\n- `tidb.cloud/project`: the ID of the project where the TiDB Cloud Premium instance belongs.",
          "type": "object"
        },
        "maxRcu": {
          "description": "The maximum number of Request Capacity Units (RCUs) for the TiDB Cloud Premium instance.",
          "format": "int64",
          "type": "string"
        },
        "minRcu": {
          "description": "The minimum number of Request Capacity Units (RCUs) for the TiDB Cloud Premium instance.\n\nThis field is read-only and is automatically calculated as `max(5000, maxRcu / 4)`.",
          "format": "int64",
          "readOnly": true,
          "type": "string"
        },
        "name": {
          "description": "The unique identifier for the TiDB Cloud Premium instance, which is generated by the API and follows the format `tidbs/{tidbId}`.",
          "readOnly": true,
          "type": "string"
        },
        "regionDisplayName": {
          "description": "The display name of the region where the TiDB Cloud Premium instance is deployed. For example, `Oregon (us-west-2)`.",
          "readOnly": true,
          "type": "string"
        },
        "regionId": {
          "description": "The unique identifier of the region where the TiDB Cloud Premium instance is deployed, in the format of `{cloud_provider}-{region_code}`. For example, `aws-us-west-2`.",
          "type": "string"
        },
        "reservedCapacity": {
          "allOf": [
            {
              "$ref": "#/definitions/v1beta2ReservedCapacity"
            }
          ],
          "description": "The current Reserved capacity information. This field is only returned for\nPremium Reserved instances.",
          "readOnly": true
        },
        "reservedCapacityTemplateId": {
          "description": "The capacity template ID for Premium Reserved. This field is only accepted\nwhen `service_plan` is `Premium_Reserved`; it is not returned in responses.",
          "format": "int64",
          "type": "string"
        },
        "resourcePoolDisplayName": {
          "description": "The current display name of the selected resource pool.\nCurrently, this field is only returned for TiDB Cloud BYOC instances.",
          "readOnly": true,
          "type": "string",
          "x-nullable": true
        },
        "resourcePoolId": {
          "description": "The resource pool selected for this TiDB Cloud instance.\nCurrently, this field is only used for TiDB Cloud BYOC instances.",
          "type": "string",
          "x-nullable": true
        },
        "rootPassword": {
          "description": "The root password of the TiDB Cloud Premium instance.\n\nThis field supports two input formats:\n- Plaintext password (legacy behavior)\n- RSA-OAEP-SHA256 encrypted payload prefixed with `rsa_oaep_sha256:`\n\nIf the marker prefix is present, the server parses and decrypts the encrypted payload.\nAny parse/decrypt failure returns an explicit parameter error without plaintext fallback.\nIf the marker prefix is absent, the value is treated as plaintext for backward compatibility.\n\nFor plaintext input, the password must be between 8 and 64 characters long and can contain letters,\nnumbers, and special characters.",
          "example": "my-shining-password",
          "pattern": "^(rsa_oaep_sha256:.+|.{8,64})$",
          "type": "string"
        },
        "servicePlan": {
          "allOf": [
            {
              "$ref": "#/definitions/commonv1beta1ServicePlan"
            }
          ],
          "description": "The plan of the service.\n\n- `Premium`: [TiDB Cloud Premium](https://docs.pingcap.com/tidbcloud/select-cluster-tier/#tidb-cloud-premium)\n\n- `Premium_Reserved`: TiDB Cloud Premium Reserved"
        },
        "state": {
          "allOf": [
            {
              "$ref": "#/definitions/commonv1beta1ClusterState"
            }
          ],
          "description": "The current state of the TiDB Cloud Premium instance.",
          "readOnly": true
        },
        "tags": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "tidbId": {
          "description": "The ID of the TiDB Cloud Premium instance.",
          "readOnly": true,
          "type": "string"
        },
        "tidbVersion": {
          "description": "The version of the TiDB instance.",
          "readOnly": true,
          "type": "string"
        },
        "updateTime": {
          "description": "The timestamp when the TiDB Cloud Premium instance was last updated, in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        }
      },
      "required": [
        "displayName",
        "regionId",
        "maxRcu",
        "servicePlan"
      ],
      "type": "object"
    },
    "tidb_cloud_open_apiserverlessv1beta1Cluster": {
      "description": "Message for a TiDB Cloud Starter or Essential cluster.",
      "properties": {
        "annotations": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "The annotations for the cluster. The following lists some predefined annotations.\n\n- `tidb.cloud/has-set-password`: indicates whether the cluster has a root password set.\n- `tidb.cloud/available-features`: lists available features of the cluster.",
          "readOnly": true,
          "type": "object"
        },
        "auditLogConfig": {
          "allOf": [
            {
              "$ref": "#/definitions/v1beta1ClusterAuditLogConfig"
            }
          ],
          "description": "The audit log configuration for the cluster."
        },
        "autoScaling": {
          "allOf": [
            {
              "$ref": "#/definitions/v1beta1ClusterAutoScaling"
            }
          ],
          "description": "The auto-scaling configuration for the cluster."
        },
        "automatedBackupPolicy": {
          "allOf": [
            {
              "$ref": "#/definitions/v1beta1ClusterAutomatedBackupPolicy"
            }
          ],
          "description": "The schedule and retention rules for automated database backups."
        },
        "clusterId": {
          "description": "The ID of the cluster.",
          "readOnly": true,
          "type": "string"
        },
        "createTime": {
          "description": "The timestamp when the cluster was created, in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "createdBy": {
          "description": "The email address of the user who create the cluster.",
          "readOnly": true,
          "type": "string"
        },
        "displayName": {
          "description": "The user-defined name of the cluster.",
          "example": "foo-bar",
          "maxLength": 64,
          "minLength": 4,
          "pattern": "^[A-Za-z0-9][-A-Za-z0-9]{2,62}[A-Za-z0-9]$",
          "type": "string"
        },
        "encryptionConfig": {
          "allOf": [
            {
              "$ref": "#/definitions/v1beta1ClusterEncryptionConfig"
            }
          ],
          "description": "The data encryption settings for the cluster."
        },
        "endpoints": {
          "allOf": [
            {
              "$ref": "#/definitions/v1beta1ClusterEndpoints"
            }
          ],
          "description": "The connection endpoints for accessing the cluster."
        },
        "engineType": {
          "allOf": [
            {
              "$ref": "#/definitions/commonv1beta1EngineType"
            }
          ],
          "description": "The database engine compatibility of the cluster.\n\n- `MYSQL_COMPATIBLE`: TiDB Starter/Essential MySQL-compatible engine.\n- `POSTGRESQL_COMPATIBLE`: TiDB Starter PostgreSQL-compatible engine."
        },
        "highAvailabilityType": {
          "$ref": "#/definitions/serverlessv1beta1ClusterHighAvailabilityType"
        },
        "labels": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "The labels for the cluster.\n\n- `tidb.cloud/organization`: the ID of the organization where the cluster belongs.\n- `tidb.cloud/project`: the ID of the project where the cluster belongs.",
          "type": "object"
        },
        "name": {
          "description": "The unique identifier for the TiDB cluster, which is generated by the API and follows the format `clusters/{clusterId}`.",
          "readOnly": true,
          "type": "string"
        },
        "region": {
          "allOf": [
            {
              "$ref": "#/definitions/commonv1beta1Region"
            }
          ],
          "description": "The region where the cluster is deployed."
        },
        "rootPassword": {
          "description": "The root password of the cluster. It must be between 8 and 64 characters long and can contain letters, numbers, and special characters.",
          "example": "my-shining-password",
          "maxLength": 64,
          "minLength": 8,
          "pattern": "^.{8,64}$",
          "type": "string"
        },
        "servicePlan": {
          "allOf": [
            {
              "$ref": "#/definitions/commonv1beta1ServicePlan"
            }
          ],
          "description": "The plan of the service.\n\n- `Starter`: [TiDB Cloud Starter](https://docs.pingcap.com/tidbcloud/select-cluster-tier/#tidb-cloud-serverless)\n- `Essential`: [TiDB Cloud Essential](https://docs.pingcap.com/tidbcloud/select-cluster-tier/#essential)",
          "readOnly": true
        },
        "spendingLimit": {
          "allOf": [
            {
              "$ref": "#/definitions/ClusterSpendingLimit"
            }
          ],
          "description": "The [spending limit](https://docs.pingcap.com/tidbcloud/tidb-cloud-glossary/#spending-limit) for the cluster."
        },
        "state": {
          "allOf": [
            {
              "$ref": "#/definitions/commonv1beta1ClusterState"
            }
          ],
          "description": "The current state of the cluster.",
          "readOnly": true
        },
        "tags": {
          "items": {
            "$ref": "#/definitions/commonv1beta1Tag",
            "type": "object"
          },
          "type": "array"
        },
        "updateTime": {
          "description": "The timestamp when the cluster was last updated, in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "userPrefix": {
          "description": "The unique prefix automatically generated for SQL usernames on this cluster. TiDB Cloud uses this prefix to distinguish between clusters. For more information, see [User name prefix](https://docs.pingcap.com/tidbcloud/select-cluster-tier/#user-name-prefix).",
          "readOnly": true,
          "type": "string"
        },
        "version": {
          "description": "The TiDB version of the cluster.",
          "readOnly": true,
          "type": "string"
        }
      },
      "required": [
        "displayName",
        "region"
      ],
      "type": "object"
    },
    "v1beta1ClusterAuditLogConfig": {
      "description": "Message for audit log configuration.",
      "properties": {
        "enabled": {
          "description": "Whether audit log is enabled.",
          "type": "boolean",
          "x-nullable": true
        },
        "unredacted": {
          "description": "Whether unredacted the audit log.",
          "type": "boolean",
          "x-nullable": true
        }
      },
      "type": "object"
    },
    "v1beta1ClusterAutoScaling": {
      "description": "Message for auto scaling configuration.",
      "properties": {
        "maxRcu": {
          "description": "The maximum number of Request Capacity Units (RCUs) for auto-scaling.",
          "format": "int64",
          "type": "integer"
        },
        "minRcu": {
          "description": "The minimum number of Request Capacity Units (RCUs) for auto-scaling.",
          "format": "int64",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "v1beta1ClusterAutomatedBackupPolicy": {
      "description": "Message for automated backup configuration for a cluster.",
      "properties": {
        "retentionDays": {
          "description": "The number of days to retain automated backups.",
          "format": "int32",
          "type": "integer"
        },
        "startTime": {
          "description": "The UTC time of day in `HH:mm` format when the automated backup starts.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "v1beta1ClusterEncryptionConfig": {
      "description": "Message for encryption settings for a cluster.",
      "properties": {
        "enhancedEncryptionEnabled": {
          "description": "Indicates whether enhanced encryption for cluster data is enabled.",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "v1beta1ClusterEndpoints": {
      "description": "Message for endpoint information for connecting to a cluster.",
      "properties": {
        "private": {
          "allOf": [
            {
              "$ref": "#/definitions/EndpointsPrivate"
            }
          ],
          "description": "The private endpoint for securely connecting to the cluster. For more information, see [Network](https://docs.pingcap.com/tidbcloud/connect-to-tidb-cluster-serverless/#network)."
        },
        "public": {
          "allOf": [
            {
              "$ref": "#/definitions/EndpointsPublic"
            }
          ],
          "description": "The public endpoint configuration for connecting to the cluster. For more information, see [Network](https://docs.pingcap.com/tidbcloud/connect-to-tidb-cluster-serverless/#network)."
        }
      },
      "type": "object"
    },
    "v1beta1ClusterStorageNodeSetting": {
      "properties": {
        "dataStoreIops": {
          "description": "The IOPS (input/output operations per second) of the data store for the node. Only supported for AWS clusters with `Plus` TiKV storage type. If not specified, the default IOPS of the data store is used.",
          "example": 3000,
          "format": "int32",
          "type": "integer",
          "x-nullable": true
        },
        "nodeChangingProgress": {
          "allOf": [
            {
              "$ref": "#/definitions/ClusterNodeChangingProgress"
            }
          ],
          "description": "The progress of the node changing.",
          "readOnly": true,
          "title": "NodeChangingProgress"
        },
        "nodeCount": {
          "description": "The number of nodes in the cluster.",
          "example": 3,
          "format": "int32",
          "type": "integer"
        },
        "nodeSpecDisplayName": {
          "description": "The display name of the node spec. For example, `8 vCPU, 32 GiB`.",
          "example": "8 vCPU, 32 GiB",
          "readOnly": true,
          "type": "string"
        },
        "nodeSpecKey": {
          "description": "The node spec key of the nodes in the cluster. For example, `8C32G`.",
          "example": "8C32G",
          "type": "string"
        },
        "nodeSpecVersion": {
          "description": "The version tag of the node spec resource. The performance and price of the component may vary based on the version tag.",
          "example": "v1",
          "readOnly": true,
          "type": "string"
        },
        "raftStoreIops": {
          "description": "The IOPS (input/output operations per second) of the Raft store for the node. If not specified, the default IOPS of Raft store is used. It is recommended to leave it blank to use the default settings for optimal performance.",
          "example": 3000,
          "format": "int32",
          "type": "integer",
          "x-nullable": true
        },
        "storageSizeGi": {
          "description": "The storage size of each node in gibibytes (GiB). To view supported storage size ranges, use the [List node specs](#tag/RegionService/operation/RegionService_ListNodeSpecs) or [Get a node spec](#tag/RegionService/operation/RegionService_GetNodeSpec) endpoint.",
          "example": 500,
          "format": "int32",
          "type": "integer"
        },
        "storageType": {
          "allOf": [
            {
              "$ref": "#/definitions/ClusterStorageNodeSettingStorageType"
            }
          ],
          "description": "The storage type of the node. For more information, see [TiKV node storage types](https://docs.pingcap.com/tidbcloud/size-your-cluster/#tikv-node-storage-types) and [TiFlash node storage types](https://docs.pingcap.com/tidbcloud/size-your-cluster/#tiflash-node-storage-types).",
          "example": "Standard"
        }
      },
      "required": [
        "nodeCount",
        "nodeSpecKey",
        "storageSizeGi"
      ],
      "type": "object"
    },
    "v1beta1ClusterTidbNodeSetting": {
      "properties": {
        "nodeSpecDisplayName": {
          "description": "The display name of the node spec. For example, `8 vCPU, 32 GiB`.",
          "example": "8 vCPU, 32 GiB",
          "readOnly": true,
          "type": "string"
        },
        "nodeSpecKey": {
          "description": "The node spec key of the TiDB nodes in the cluster. For example, `8C32G`. \n\nTo get the node spec available configurations of a specific region for a cloud provider, please refer to [List node specs](#tag/RegionService/operation/RegionService_ListNodeSpecs) API.",
          "example": "8C32G",
          "type": "string"
        },
        "nodeSpecVersion": {
          "description": "The version tag of the node spec resource. The performance and price of the component may vary based on the version tag.",
          "example": "v1",
          "readOnly": true,
          "type": "string"
        },
        "tidbNodeGroups": {
          "description": "The [TiDB node groups](https://docs.pingcap.com/tidbcloud/tidb-node-group-overview/) in the cluster.\n\nWhen you create a cluster, this array must contain exactly one `TidbNodeGroup` object, and the `nodeCount` field must be set.",
          "items": {
            "$ref": "#/definitions/dedicatedv1beta1TidbNodeGroup",
            "type": "object"
          },
          "title": "TidbNodeGroup",
          "type": "array"
        }
      },
      "required": [
        "tidbNodeGroups"
      ],
      "type": "object"
    },
    "v1beta1RegionCloudProvider": {
      "description": "Enum of cloud provider names.\n\n - aws: Amazon Web Services.\n - gcp: Google Cloud Platform.\n - azure: Microsoft Azure.\n - alicloud: Alibaba Cloud.",
      "enum": [
        "aws",
        "gcp",
        "azure",
        "alicloud"
      ],
      "type": "string"
    },
    "v1beta1ServicePlanInfo": {
      "properties": {
        "displayName": {
          "type": "string"
        },
        "servicePlan": {
          "$ref": "#/definitions/commonv1beta1ServicePlan"
        },
        "supportedEngineTypes": {
          "items": {
            "$ref": "#/definitions/commonv1beta1EngineType"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "v1beta1TidbNodeGroupEndpointConnectionType": {
      "description": "The connection type for TiDB node group endpoints.\n\n - PUBLIC: Indicates that the endpoint is accessible over the public network.\n - VPC_PEERING: Indicates that the endpoint is accessible over [VPC peering](https://docs.pingcap.com/tidbcloud/tidb-cloud-glossary/#vpc-peering).\n - PRIVATE_ENDPOINT: Indicates that the endpoint is accessible over a private link.",
      "enum": [
        "PUBLIC",
        "VPC_PEERING",
        "PRIVATE_ENDPOINT"
      ],
      "type": "string"
    },
    "v1beta2ApproveProjectMigrationTaskRequest": {
      "properties": {
        "migrations": {
          "items": {
            "$ref": "#/definitions/v1beta2Migration",
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "migrations"
      ],
      "type": "object"
    },
    "v1beta2ApproveProjectMigrationTaskResponse": {
      "properties": {
        "task": {
          "$ref": "#/definitions/v1beta2ProjectMigrationTask"
        }
      },
      "type": "object"
    },
    "v1beta2BatchMoveTiDBsRequest": {
      "description": "BatchMoveTiDBsRequest moves multiple Starter/Essential TiDBs from one project to another.\nMax 1000 tidbs per request.",
      "properties": {
        "servicePlans": {
          "description": "service_plans filters which service plans to move (optional; default: all supported plans).",
          "items": {
            "$ref": "#/definitions/commonv1beta1ServicePlan"
          },
          "type": "array"
        },
        "sourceProjectId": {
          "description": "source_project_id is the source project (required).",
          "type": "string"
        },
        "targetProjectId": {
          "description": "target_project_id is the destination project (required).",
          "type": "string"
        }
      },
      "required": [
        "sourceProjectId",
        "targetProjectId"
      ],
      "type": "object"
    },
    "v1beta2BatchMoveTiDBsResponse": {
      "properties": {
        "failedTidbIds": {
          "description": "failed_tidb_ids lists the IDs of TiDBs that failed to move.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "successTidbIds": {
          "description": "success_tidb_ids lists the IDs of TiDBs that were successfully moved.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "total": {
          "description": "total is the number of TiDBs scheduled for migration.",
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "v1beta2ClusterInventoryItem": {
      "properties": {
        "currentCount": {
          "format": "int32",
          "readOnly": true,
          "type": "integer"
        },
        "limit": {
          "format": "int32",
          "readOnly": true,
          "type": "integer"
        },
        "servicePlan": {
          "allOf": [
            {
              "$ref": "#/definitions/commonv1beta1ServicePlan"
            }
          ],
          "readOnly": true
        }
      },
      "type": "object"
    },
    "v1beta2GetClusterInventoryResponse": {
      "properties": {
        "inventories": {
          "items": {
            "$ref": "#/definitions/v1beta2ClusterInventoryItem",
            "type": "object"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "v1beta2ListRegionsRequestViewMode": {
      "enum": [
        "SERVICE_PLAN_GROUP",
        "FLAT"
      ],
      "type": "string"
    },
    "v1beta2ListTidbsRequestViewMode": {
      "enum": [
        "BASIC",
        "MINI"
      ],
      "type": "string"
    },
    "v1beta2Migration": {
      "properties": {
        "countInSourceProject": {
          "format": "uint64",
          "readOnly": true,
          "type": "string"
        },
        "countInTargetProject": {
          "format": "uint64",
          "readOnly": true,
          "type": "string"
        },
        "sourceProjectId": {
          "format": "uint64",
          "type": "string"
        },
        "sourceProjectName": {
          "readOnly": true,
          "type": "string"
        },
        "targetProjectId": {
          "format": "uint64",
          "type": "string"
        },
        "targetProjectName": {
          "type": "string"
        }
      },
      "required": [
        "sourceProjectId"
      ],
      "type": "object"
    },
    "v1beta2MoveTiDBResponse": {
      "properties": {
        "tidb": {
          "allOf": [
            {
              "$ref": "#/definitions/bffcluster_managementv1beta2Tidb"
            }
          ],
          "description": "tidb is the moved tidb."
        }
      },
      "type": "object"
    },
    "v1beta2ProjectMigrationTask": {
      "properties": {
        "migrations": {
          "items": {
            "$ref": "#/definitions/v1beta2Migration",
            "type": "object"
          },
          "readOnly": true,
          "type": "array"
        },
        "orgId": {
          "format": "uint64",
          "readOnly": true,
          "type": "string"
        },
        "state": {
          "allOf": [
            {
              "$ref": "#/definitions/v1beta2ProjectMigrationTaskState"
            }
          ],
          "readOnly": true
        }
      },
      "type": "object"
    },
    "v1beta2ProjectMigrationTaskState": {
      "enum": [
        "PENDING",
        "RUNNING",
        "SUCCEED",
        "FAILED"
      ],
      "type": "string"
    },
    "v1beta2ReservedCapacity": {
      "properties": {
        "description": {
          "readOnly": true,
          "type": "string"
        },
        "id": {
          "format": "int64",
          "readOnly": true,
          "type": "string"
        },
        "name": {
          "readOnly": true,
          "type": "string"
        },
        "peakQps": {
          "format": "int64",
          "readOnly": true,
          "type": "string"
        },
        "purchasedVcpu": {
          "format": "int64",
          "readOnly": true,
          "type": "string"
        },
        "scope": {
          "allOf": [
            {
              "$ref": "#/definitions/v1beta2ReservedCapacityScope"
            }
          ],
          "readOnly": true
        },
        "templateCode": {
          "readOnly": true,
          "type": "string"
        },
        "workloadType": {
          "readOnly": true,
          "type": "string"
        }
      },
      "type": "object"
    },
    "v1beta2ReservedCapacityScope": {
      "enum": [
        "DEFAULT",
        "ORG_PRIVATE"
      ],
      "type": "string"
    },
    "v1beta2TiDBServiceBindTagsBody": {
      "properties": {
        "tags": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "tags"
      ],
      "type": "object"
    },
    "v1beta2TiDBServiceUnbindTagsBody": {
      "properties": {
        "tags": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "tags"
      ],
      "type": "object"
    },
    "v1beta2TidbDualLayerDataEncryption": {
      "description": "The dual-layer data encryption configuration for a TiDB Cloud Premium instance. Specify exactly one of the following options: `noEncryption`, `defaultKey`, or `cmek`.",
      "properties": {
        "cmek": {
          "allOf": [
            {
              "$ref": "#/definitions/nextgenv1beta2CustomerManagedEncryptionKey"
            }
          ],
          "description": "Enables dual-layer data encryption using a customer-managed encryption key (CMEK).\nConfigure the key according to the cloud provider:\n- AWS: set `awsKms` and `awsPrincipal`.\n- Alibaba Cloud: set `aliyunKms` and `aliyunPrincipal`."
        },
        "defaultKey": {
          "description": "Enables dual-layer data encryption using the TiDB Cloud default key.",
          "properties": {},
          "type": "object"
        },
        "noEncryption": {
          "description": "Disables dual-layer data encryption. The TiDB Cloud Premium instance uses the default encryption provided by the cloud provider.",
          "properties": {},
          "type": "object"
        }
      },
      "type": "object"
    },
    "v1beta2TidbEndpoint": {
      "properties": {
        "connectionReachability": {
          "allOf": [
            {
              "$ref": "#/definitions/nextgenv1beta2ConnectionReachability"
            }
          ],
          "description": "The reachability status of the endpoint connection.",
          "readOnly": true
        },
        "connectionType": {
          "allOf": [
            {
              "$ref": "#/definitions/v1beta2TidbEndpointConnectionType"
            }
          ],
          "description": "The connection type of the endpoint.\n\n- `PUBLIC`: a public endpoint. For more information, see [Network](https://docs.pingcap.com/tidbcloud/connect-to-tidb-instance/#network).\n\n- `PRIVATE_ENDPOINT`: a private endpoint. For more information, see [Network](https://docs.pingcap.com/tidbcloud/connect-to-tidb-instance/#network).\n\n- `VPC_PEERING`: a VPC peering endpoint (not yet supported, planned for a future release).",
          "readOnly": true
        },
        "egressIps": {
          "description": "The public egress IP addresses used by the TiDB Cloud Premium instance.\n\nThis field is returned only for public endpoints. You can use these IP addresses\nto configure allowlists on upstream services when connecting through a public endpoint.",
          "items": {
            "type": "string"
          },
          "readOnly": true,
          "type": "array"
        },
        "host": {
          "description": "The hostname of the endpoint.\n\nWhen `connectionType` is `\"PRIVATE_ENDPOINT\"`, the behavior of the `host` field varies by cloud provider:\n- For AWS, this field is available after the Private Link service is ready.\n- For Google Cloud and Azure, this field is available after you create a private endpoint connection.",
          "readOnly": true,
          "type": "string"
        },
        "port": {
          "description": "The port number of the endpoint.",
          "format": "int32",
          "readOnly": true,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "v1beta2TidbEndpointConnectionType": {
      "enum": [
        "PUBLIC",
        "PRIVATE_ENDPOINT",
        "VPC_PEERING"
      ],
      "type": "string"
    },
    "v1beta2TidbHighAvailabilityType": {
      "description": "The high availability configuration for the TiDB Cloud Premium instance.\n\n - REGIONAL: High availability across multiple availability zones within a region.\n - ZONAL: High availability within a single availability zone.",
      "enum": [
        "REGIONAL",
        "ZONAL"
      ],
      "type": "string"
    }
  },
  "info": {
    "description": "TiDB Cloud One Console API.",
    "title": "TiDB Cloud One Console API",
    "version": "v1beta2"
  },
  "paths": {
    "/api/v2023/clusterManagement/v1beta2/project-migration": {
      "get": {
        "operationId": "TiDBService_GetProjectMigrationTask",
        "parameters": [
          {
            "description": "Organization id",
            "format": "uint64",
            "in": "query",
            "name": "orgId",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/v1beta2ProjectMigrationTask"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "tags": [
          "TiDBService"
        ]
      }
    },
    "/api/v2023/clusterManagement/v1beta2/project-migration:approve": {
      "post": {
        "operationId": "TiDBService_ApproveProjectMigrationTask",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/v1beta2ApproveProjectMigrationTaskRequest"
            }
          },
          {
            "description": "Organization id",
            "format": "uint64",
            "in": "query",
            "name": "orgId",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/v1beta2ApproveProjectMigrationTaskResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "tags": [
          "TiDBService"
        ]
      }
    },
    "/api/v2023/clusterManagement/v1beta2/regions": {
      "get": {
        "operationId": "RegionService_ListRegions",
        "parameters": [
          {
            "collectionFormat": "multi",
            "description": " - aws: Amazon Web Services.\n - gcp: Google Cloud Platform.\n - azure: Microsoft Azure.\n - alicloud: Alibaba Cloud.",
            "in": "query",
            "items": {
              "enum": [
                "aws",
                "gcp",
                "azure",
                "alicloud"
              ],
              "type": "string"
            },
            "name": "cloudProviders",
            "required": false,
            "type": "array"
          },
          {
            "collectionFormat": "multi",
            "in": "query",
            "items": {
              "enum": [
                "Starter",
                "Essential",
                "Premium",
                "BYOC",
                "Dedicated",
                "Premium_Reserved",
                "Essential_V2"
              ],
              "type": "string"
            },
            "name": "servicePlans",
            "required": false,
            "type": "array"
          },
          {
            "enum": [
              "SERVICE_PLAN_GROUP",
              "FLAT"
            ],
            "in": "query",
            "name": "viewMode",
            "required": false,
            "type": "string"
          },
          {
            "description": "Organization id",
            "format": "uint64",
            "in": "query",
            "name": "orgId",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/bffcluster_managementv1beta2ListRegionsResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "summary": "List all regions",
        "tags": [
          "RegionService"
        ]
      }
    },
    "/api/v2023/clusterManagement/v1beta2/regions:listCloudProviders": {
      "get": {
        "operationId": "RegionService_ListCloudProviders",
        "parameters": [
          {
            "collectionFormat": "multi",
            "description": " - aws: Amazon Web Services.\n - gcp: Google Cloud Platform.\n - azure: Microsoft Azure.\n - alicloud: Alibaba Cloud.",
            "in": "query",
            "items": {
              "enum": [
                "aws",
                "gcp",
                "azure",
                "alicloud"
              ],
              "type": "string"
            },
            "name": "cloudProviders",
            "required": false,
            "type": "array"
          },
          {
            "collectionFormat": "multi",
            "in": "query",
            "items": {
              "enum": [
                "Starter",
                "Essential",
                "Premium",
                "BYOC",
                "Dedicated",
                "Premium_Reserved",
                "Essential_V2"
              ],
              "type": "string"
            },
            "name": "servicePlans",
            "required": false,
            "type": "array"
          },
          {
            "description": "Organization id",
            "format": "uint64",
            "in": "query",
            "name": "orgId",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/bffcluster_managementv1beta2ListCloudProvidersResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "summary": "List all cloud providers",
        "tags": [
          "RegionService"
        ]
      }
    },
    "/api/v2023/clusterManagement/v1beta2/tidbs": {
      "get": {
        "operationId": "TiDBService_ListTidbs",
        "parameters": [
          {
            "collectionFormat": "multi",
            "in": "query",
            "items": {
              "enum": [
                "Starter",
                "Essential",
                "Premium",
                "BYOC",
                "Dedicated",
                "Premium_Reserved",
                "Essential_V2"
              ],
              "type": "string"
            },
            "name": "servicePlans",
            "required": false,
            "type": "array"
          },
          {
            "collectionFormat": "multi",
            "in": "query",
            "items": {
              "type": "string"
            },
            "name": "tidbIds",
            "required": false,
            "type": "array"
          },
          {
            "collectionFormat": "multi",
            "description": " - aws: Amazon Web Services.\n - gcp: Google Cloud Platform.\n - azure: Microsoft Azure.\n - alicloud: Alibaba Cloud.",
            "in": "query",
            "items": {
              "enum": [
                "aws",
                "gcp",
                "azure",
                "alicloud"
              ],
              "type": "string"
            },
            "name": "cloudProviders",
            "required": false,
            "type": "array"
          },
          {
            "collectionFormat": "multi",
            "in": "query",
            "items": {
              "type": "string"
            },
            "name": "regionIds",
            "required": false,
            "type": "array"
          },
          {
            "collectionFormat": "multi",
            "in": "query",
            "items": {
              "type": "string"
            },
            "name": "projectIds",
            "required": false,
            "type": "array"
          },
          {
            "in": "query",
            "name": "name",
            "required": false,
            "type": "string"
          },
          {
            "enum": [
              "BASIC",
              "MINI"
            ],
            "in": "query",
            "name": "viewMode",
            "required": false,
            "type": "string"
          },
          {
            "collectionFormat": "multi",
            "in": "query",
            "items": {
              "type": "string"
            },
            "name": "tags",
            "required": false,
            "type": "array"
          },
          {
            "collectionFormat": "multi",
            "description": "If specified, only TiDBs of the given engine types are returned.",
            "in": "query",
            "items": {
              "enum": [
                "MYSQL_COMPATIBLE",
                "POSTGRESQL_COMPATIBLE"
              ],
              "type": "string"
            },
            "name": "engineTypes",
            "required": false,
            "type": "array"
          },
          {
            "description": "When true, for Dedicated clusters only, skip Regional Server enrichment in\nListClusters (global-layer metadata only). Ignored when view_mode is MINI.\nIgnored for Serverless and NextGen service plans.\nDefault false preserves the current FullView list item shape.",
            "in": "query",
            "name": "globalMetaOnly",
            "required": false,
            "type": "boolean"
          },
          {
            "format": "int32",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "type": "integer"
          },
          {
            "in": "query",
            "name": "pageToken",
            "required": false,
            "type": "string"
          },
          {
            "format": "int32",
            "in": "query",
            "name": "skip",
            "required": false,
            "type": "integer"
          },
          {
            "description": "Organization id",
            "format": "uint64",
            "in": "query",
            "name": "orgId",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/bffcluster_managementv1beta2ListTidbsResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "tags": [
          "TiDBService"
        ]
      }
    },
    "/api/v2023/clusterManagement/v1beta2/tidbs/{tidbId}": {
      "get": {
        "operationId": "TiDBService_GetTidb",
        "parameters": [
          {
            "in": "path",
            "name": "tidbId",
            "required": true,
            "type": "string"
          },
          {
            "description": "When true, for Dedicated clusters only, skip Regional Server enrichment and\nreturn global-layer metadata only (no endpoints, scaling progress, etc.).\nIgnored for Serverless and NextGen service plans.\nDefault false preserves the current FullView response shape.",
            "in": "query",
            "name": "globalMetaOnly",
            "required": false,
            "type": "boolean"
          },
          {
            "description": "Organization id",
            "format": "uint64",
            "in": "query",
            "name": "orgId",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/bffcluster_managementv1beta2Tidb"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "tags": [
          "TiDBService"
        ]
      }
    },
    "/api/v2023/clusterManagement/v1beta2/tidbs/{tidbId}:bindTags": {
      "post": {
        "operationId": "TiDBService_BindTags",
        "parameters": [
          {
            "in": "path",
            "name": "tidbId",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/v1beta2TiDBServiceBindTagsBody"
            }
          },
          {
            "description": "Organization id",
            "format": "uint64",
            "in": "query",
            "name": "orgId",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/bffcluster_managementv1beta2BindTagsResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "tags": [
          "TiDBService"
        ]
      }
    },
    "/api/v2023/clusterManagement/v1beta2/tidbs/{tidbId}:move": {
      "post": {
        "operationId": "TiDBService_MoveTiDB",
        "parameters": [
          {
            "description": "tidb_id is the ID of the TiDB to move.",
            "in": "path",
            "name": "tidbId",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/TiDBServiceMoveTiDBBody"
            }
          },
          {
            "description": "Organization id",
            "format": "uint64",
            "in": "query",
            "name": "orgId",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/v1beta2MoveTiDBResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "summary": "Move a tidb to another project",
        "tags": [
          "TiDBService"
        ]
      }
    },
    "/api/v2023/clusterManagement/v1beta2/tidbs/{tidbId}:unbindTags": {
      "post": {
        "operationId": "TiDBService_UnbindTags",
        "parameters": [
          {
            "in": "path",
            "name": "tidbId",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/v1beta2TiDBServiceUnbindTagsBody"
            }
          },
          {
            "description": "Organization id",
            "format": "uint64",
            "in": "query",
            "name": "orgId",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/bffcluster_managementv1beta2UnbindTagsResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "tags": [
          "TiDBService"
        ]
      }
    },
    "/api/v2023/clusterManagement/v1beta2/tidbs:batchMove": {
      "post": {
        "operationId": "TiDBService_BatchMoveTiDBs",
        "parameters": [
          {
            "description": "BatchMoveTiDBsRequest moves multiple Starter/Essential TiDBs from one project to another.\nMax 1000 tidbs per request.",
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/v1beta2BatchMoveTiDBsRequest"
            }
          },
          {
            "description": "Organization id",
            "format": "uint64",
            "in": "query",
            "name": "orgId",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/v1beta2BatchMoveTiDBsResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "summary": "Batch move tidbs to another project",
        "tags": [
          "TiDBService"
        ]
      }
    },
    "/api/v2023/clusterManagement/v1beta2/tidbs:inventory": {
      "get": {
        "operationId": "TiDBService_GetClusterInventory",
        "parameters": [
          {
            "description": "Organization id",
            "format": "uint64",
            "in": "query",
            "name": "orgId",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/v1beta2GetClusterInventoryResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/googlerpcStatus"
            }
          }
        },
        "tags": [
          "TiDBService"
        ]
      }
    }
  },
  "produces": [
    "application/json"
  ],
  "schemes": [
    "https"
  ],
  "swagger": "2.0",
  "tags": [
    {
      "name": "TiDBService"
    },
    {
      "name": "RegionService"
    }
  ]
}