// Code generated by swaggo/swag. DO NOT EDIT.

package docs

import "github.com/swaggo/swag"

const docTemplate = `{
    "schemes": {{ marshal .Schemes }},
    "swagger": "2.0",
    "info": {
        "description": "{{escape .Description}}",
        "title": "{{.Title}}",
        "contact": {},
        "version": "{{.Version}}"
    },
    "host": "{{.Host}}",
    "basePath": "{{.BasePath}}",
    "paths": {
        "/cluster-or-branch": {
            "get": {
                "description": "Get cluster or branch by primary_id or keyspace_id, either primary_id or keyspace_id should be provided.",
                "produces": [
                    "application/json"
                ],
                "summary": "Get cluster or branch by primary_id or keyspace_id",
                "parameters": [
                    {
                        "type": "string",
                        "description": "primary id of the cluster or branch",
                        "name": "primary_id",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "keyspace id of the cluster or branch",
                        "name": "keyspace_id",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/repository.ClusterBranch"
                        }
                    }
                }
            }
        }
    },
    "definitions": {
        "repository.CBType": {
            "type": "integer",
            "enum": [
                0,
                1
            ],
            "x-enum-varnames": [
                "CBTypeCluster",
                "CBTypeBranch"
            ]
        },
        "repository.ClusterBranch": {
            "type": "object",
            "properties": {
                "cluster_id": {
                    "description": "cluster_id is the cluster id related to the cluster or branch.\nfor cluster, it's the primary id of cluster.\nfor branch, it's the main branch id of branch.",
                    "type": "integer"
                },
                "encrypt_keyspace": {
                    "description": "encrypt_keyspace indicates whether the resource has enabled \"Enhanced Encryption at Rest\"",
                    "type": "boolean"
                },
                "keyspace_id": {
                    "description": "keyspace_id is the keyspace id of the resource.",
                    "type": "integer"
                },
                "name": {
                    "description": "name is the name of branch, for cluster it's is empty.",
                    "type": "string"
                },
                "primary_id": {
                    "description": "primary_id is the primary id of cluster or branch.\nfor example, cluster: 10001, branch: bran-123.",
                    "type": "string"
                },
                "project_id": {
                    "description": "project_id is the project id of the resource.",
                    "type": "integer"
                },
                "tenant_id": {
                    "description": "tenant_id is the tenant id of the resource.",
                    "type": "integer"
                },
                "type": {
                    "description": "type indicates the result is a cluster or a branch. 0: cluster, 1: branch.",
                    "allOf": [
                        {
                            "$ref": "#/definitions/repository.CBType"
                        }
                    ]
                }
            }
        }
    }
}`

// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
	Version:          "1.0",
	Host:             "meta-service.tidb-admin:8080",
	BasePath:         "/api/v1",
	Schemes:          []string{},
	Title:            "Serverless Meta Service",
	Description:      "meta service is responsible for providing meta information of serverless resources.",
	InfoInstanceName: "swagger",
	SwaggerTemplate:  docTemplate,
}

func init() {
	swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
}
