{
    "components": {
        "schemas": {
            "BatchSourceConfig": {
                "properties": {
                    "discoveryTriggererClassName": {
                        "type": "string"
                    },
                    "discoveryTriggererConfig": {
                        "additionalProperties": {
                            "type": "object"
                        },
                        "type": "object"
                    }
                },
                "type": "object"
            },
            "BatchingConfig": {
                "properties": {
                    "batchBuilder": {
                        "type": "string"
                    },
                    "batchingMaxBytes": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "batchingMaxMessages": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "batchingMaxPublishDelayMs": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "enabled": {
                        "type": "boolean"
                    },
                    "roundRobinRouterBatchingPartitionSwitchFrequency": {
                        "format": "int32",
                        "type": "integer"
                    }
                },
                "type": "object"
            },
            "ConfigFieldDefinition": {
                "properties": {
                    "attributes": {
                        "additionalProperties": {
                            "type": "string"
                        },
                        "type": "object"
                    },
                    "fieldName": {
                        "type": "string"
                    },
                    "typeName": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "ConnectorDefinition": {
                "properties": {
                    "description": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "sinkClass": {
                        "type": "string"
                    },
                    "sinkConfigClass": {
                        "type": "string"
                    },
                    "sourceClass": {
                        "type": "string"
                    },
                    "sourceConfigClass": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "CryptoConfig": {
                "properties": {
                    "consumerCryptoFailureAction": {
                        "enum": [
                            "FAIL",
                            "DISCARD",
                            "CONSUME"
                        ],
                        "type": "string"
                    },
                    "cryptoKeyReaderClassName": {
                        "type": "string"
                    },
                    "cryptoKeyReaderConfig": {
                        "additionalProperties": {
                            "type": "object"
                        },
                        "type": "object"
                    },
                    "encryptionKeys": {
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    },
                    "producerCryptoFailureAction": {
                        "enum": [
                            "FAIL",
                            "SEND"
                        ],
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "ExceptionInformation": {
                "properties": {
                    "exceptionString": {
                        "type": "string"
                    },
                    "timestampMs": {
                        "format": "int64",
                        "type": "integer"
                    }
                },
                "type": "object"
            },
            "FormDataContentDisposition": {
                "properties": {
                    "creationDate": {
                        "format": "date-time",
                        "type": "string"
                    },
                    "fileName": {
                        "type": "string"
                    },
                    "modificationDate": {
                        "format": "date-time",
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "parameters": {
                        "additionalProperties": {
                            "type": "string"
                        },
                        "type": "object"
                    },
                    "readDate": {
                        "format": "date-time",
                        "type": "string"
                    },
                    "size": {
                        "format": "int64",
                        "type": "integer"
                    },
                    "type": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "ProducerConfig": {
                "properties": {
                    "batchBuilder": {
                        "type": "string"
                    },
                    "batchingConfig": {
                        "$ref": "#/components/schemas/BatchingConfig"
                    },
                    "compressionType": {
                        "enum": [
                            "NONE",
                            "LZ4",
                            "ZLIB",
                            "ZSTD",
                            "SNAPPY"
                        ],
                        "type": "string"
                    },
                    "cryptoConfig": {
                        "$ref": "#/components/schemas/CryptoConfig"
                    },
                    "maxPendingMessages": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "maxPendingMessagesAcrossPartitions": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "useThreadLocalProducers": {
                        "type": "boolean"
                    }
                },
                "type": "object"
            },
            "Resources": {
                "properties": {
                    "cpu": {
                        "format": "double",
                        "type": "number"
                    },
                    "disk": {
                        "format": "int64",
                        "type": "integer"
                    },
                    "ram": {
                        "format": "int64",
                        "type": "integer"
                    }
                },
                "type": "object"
            },
            "SourceConfig": {
                "properties": {
                    "archive": {
                        "type": "string"
                    },
                    "batchBuilder": {
                        "type": "string"
                    },
                    "batchSourceConfig": {
                        "$ref": "#/components/schemas/BatchSourceConfig"
                    },
                    "className": {
                        "type": "string"
                    },
                    "configs": {
                        "additionalProperties": {
                            "type": "object"
                        },
                        "type": "object"
                    },
                    "customRuntimeOptions": {
                        "type": "string"
                    },
                    "logTopic": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "namespace": {
                        "type": "string"
                    },
                    "parallelism": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "processingGuarantees": {
                        "enum": [
                            "ATLEAST_ONCE",
                            "ATMOST_ONCE",
                            "EFFECTIVELY_ONCE",
                            "MANUAL"
                        ],
                        "type": "string"
                    },
                    "producerConfig": {
                        "$ref": "#/components/schemas/ProducerConfig"
                    },
                    "resources": {
                        "$ref": "#/components/schemas/Resources"
                    },
                    "runtimeFlags": {
                        "type": "string"
                    },
                    "schemaType": {
                        "type": "string"
                    },
                    "secrets": {
                        "additionalProperties": {
                            "type": "object"
                        },
                        "type": "object"
                    },
                    "serdeClassName": {
                        "type": "string"
                    },
                    "sourceType": {
                        "type": "string"
                    },
                    "tenant": {
                        "type": "string"
                    },
                    "topicName": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "SourceInstanceStatus": {
                "properties": {
                    "instanceId": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "status": {
                        "$ref": "#/components/schemas/SourceInstanceStatusData"
                    }
                },
                "type": "object"
            },
            "SourceInstanceStatusData": {
                "properties": {
                    "error": {
                        "type": "string"
                    },
                    "lastReceivedTime": {
                        "format": "int64",
                        "type": "integer"
                    },
                    "latestSourceExceptions": {
                        "items": {
                            "$ref": "#/components/schemas/ExceptionInformation"
                        },
                        "type": "array"
                    },
                    "latestSystemExceptions": {
                        "items": {
                            "$ref": "#/components/schemas/ExceptionInformation"
                        },
                        "type": "array"
                    },
                    "numReceivedFromSource": {
                        "format": "int64",
                        "type": "integer"
                    },
                    "numRestarts": {
                        "format": "int64",
                        "type": "integer"
                    },
                    "numSourceExceptions": {
                        "format": "int64",
                        "type": "integer"
                    },
                    "numSystemExceptions": {
                        "format": "int64",
                        "type": "integer"
                    },
                    "numWritten": {
                        "format": "int64",
                        "type": "integer"
                    },
                    "running": {
                        "type": "boolean"
                    },
                    "workerId": {
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "SourceStatus": {
                "properties": {
                    "instances": {
                        "items": {
                            "$ref": "#/components/schemas/SourceInstanceStatus"
                        },
                        "type": "array"
                    },
                    "numInstances": {
                        "format": "int32",
                        "type": "integer"
                    },
                    "numRunning": {
                        "format": "int32",
                        "type": "integer"
                    }
                },
                "type": "object"
            },
            "UpdateOptions": {
                "description": "Options while updating the sink",
                "properties": {
                    "update-auth-data": {
                        "description": "Whether or not to update the auth data",
                        "type": "boolean"
                    }
                },
                "type": "object"
            }
        }
    },
    "info": {
        "description": "This provides the REST API for Pulsar Source operations",
        "license": {
            "name": "Apache 2.0",
            "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
        },
        "title": "Pulsar Source REST API",
        "version": "v3"
    },
    "openapi": "3.0.1",
    "paths": {
        "/admin/v3/sources/builtinsources": {
            "get": {
                "operationId": "getSourceList",
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "items": {
                                        "$ref": "#/components/schemas/ConnectorDefinition"
                                    },
                                    "type": "array"
                                }
                            }
                        },
                        "description": "Fetches the list of built-in Pulsar IO sources"
                    },
                    "400": {
                        "description": "Invalid request"
                    },
                    "403": {
                        "description": "The requester doesn't have admin permissions"
                    },
                    "408": {
                        "description": "Request timeout"
                    },
                    "503": {
                        "description": "Function worker service is now initializing. Please try again later."
                    }
                },
                "summary": "Fetches the list of built-in Pulsar IO sources",
                "tags": [
                    "sources"
                ]
            }
        },
        "/admin/v3/sources/builtinsources/{name}/configdefinition": {
            "get": {
                "operationId": "getSourceConfigDefinition",
                "parameters": [
                    {
                        "description": "The name of the builtin source",
                        "in": "path",
                        "name": "name",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "items": {
                                        "$ref": "#/components/schemas/ConfigFieldDefinition"
                                    },
                                    "type": "array"
                                }
                            }
                        },
                        "description": "Fetches information about config fields associated with the specified builtin source"
                    },
                    "403": {
                        "description": "The requester doesn't have admin permissions"
                    },
                    "404": {
                        "description": "builtin source does not exist"
                    },
                    "500": {
                        "description": "Internal server error"
                    },
                    "503": {
                        "description": "Function worker service is now initializing. Please try again later."
                    }
                },
                "summary": "Fetches information about config fields associated with the specified builtin source",
                "tags": [
                    "sources"
                ]
            }
        },
        "/admin/v3/sources/reloadBuiltInSources": {
            "post": {
                "operationId": "reloadSources",
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {}
                        },
                        "description": "Reload the built-in connectors, including Sources and Sinks"
                    },
                    "401": {
                        "description": "This operation requires super-user access"
                    },
                    "500": {
                        "description": "Internal server error"
                    },
                    "503": {
                        "description": "Function worker service is now initializing. Please try again later."
                    }
                },
                "summary": "Reload the built-in connectors, including Sources and Sinks",
                "tags": [
                    "sources"
                ]
            }
        },
        "/admin/v3/sources/{tenant}/{namespace}": {
            "get": {
                "operationId": "listSources",
                "parameters": [
                    {
                        "description": "The tenant of a Pulsar Source",
                        "in": "path",
                        "name": "tenant",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The namespace of a Pulsar Source",
                        "in": "path",
                        "name": "namespace",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "items": {
                                        "type": "string"
                                    },
                                    "type": "array"
                                }
                            }
                        },
                        "description": "Lists all Pulsar Sources currently deployed in a given namespace"
                    },
                    "400": {
                        "description": "Invalid request"
                    },
                    "401": {
                        "description": "Client is not authorized to perform operation"
                    },
                    "500": {
                        "description": "Internal Server Error"
                    },
                    "503": {
                        "description": "Function worker service is now initializing. Please try again later."
                    }
                },
                "summary": "Lists all Pulsar Sources currently deployed in a given namespace",
                "tags": [
                    "sources"
                ]
            }
        },
        "/admin/v3/sources/{tenant}/{namespace}/{sourceName}": {
            "delete": {
                "operationId": "deregisterSource",
                "parameters": [
                    {
                        "description": "The tenant of a Pulsar Source",
                        "in": "path",
                        "name": "tenant",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The namespace of a Pulsar Source",
                        "in": "path",
                        "name": "namespace",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The name of a Pulsar Source",
                        "in": "path",
                        "name": "sourceName",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The Pulsar Source was successfully deleted"
                    },
                    "400": {
                        "description": "Invalid request"
                    },
                    "401": {
                        "description": "Client is not authorized to perform operation"
                    },
                    "404": {
                        "description": "Not Found (The Pulsar Source doesn't exist)"
                    },
                    "408": {
                        "description": "Request timeout"
                    },
                    "500": {
                        "description": "Internal Server Error"
                    },
                    "503": {
                        "description": "Function worker service is now initializing. Please try again later."
                    }
                },
                "summary": "Deletes a Pulsar Source currently running in cluster mode",
                "tags": [
                    "sources"
                ]
            },
            "get": {
                "operationId": "getSourceInfo",
                "parameters": [
                    {
                        "description": "The tenant of a Pulsar Source",
                        "in": "path",
                        "name": "tenant",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The namespace of a Pulsar Source",
                        "in": "path",
                        "name": "namespace",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The name of a Pulsar Source",
                        "in": "path",
                        "name": "sourceName",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SourceConfig"
                                }
                            }
                        },
                        "description": "Fetches information about a Pulsar Source currently running in cluster mode"
                    },
                    "400": {
                        "description": "Invalid request"
                    },
                    "404": {
                        "description": "Not Found (The Pulsar Source doesn't exist)"
                    },
                    "503": {
                        "description": "Function worker service is now initializing. Please try again later."
                    }
                },
                "summary": "Fetches information about a Pulsar Source currently running in cluster mode",
                "tags": [
                    "sources"
                ]
            },
            "post": {
                "operationId": "registerSource",
                "parameters": [
                    {
                        "description": "The tenant of a Pulsar Source",
                        "in": "path",
                        "name": "tenant",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The namespace of a Pulsar Source",
                        "in": "path",
                        "name": "namespace",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The name of a Pulsar Source",
                        "in": "path",
                        "name": "sourceName",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "properties": {
                                    "data": {
                                        "$ref": "#/components/schemas/FormDataContentDisposition"
                                    },
                                    "sourceConfig": {
                                        "$ref": "#/components/schemas/SourceConfig"
                                    },
                                    "url": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Pulsar Source successfully created"
                    },
                    "400": {
                        "description": "Invalid request (The Pulsar Source already exists or Tenant, Namespace or Name is not provided, etc.)"
                    },
                    "401": {
                        "description": "Client is not authorized to perform operation"
                    },
                    "500": {
                        "description": "Internal Server Error"
                    },
                    "503": {
                        "description": "Function worker service is now initializing. Please try again later."
                    }
                },
                "summary": "Creates a new Pulsar Source in cluster mode",
                "tags": [
                    "sources"
                ]
            },
            "put": {
                "operationId": "updateSource",
                "parameters": [
                    {
                        "description": "The tenant of a Pulsar Source",
                        "in": "path",
                        "name": "tenant",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The namespace of a Pulsar Source",
                        "in": "path",
                        "name": "namespace",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The name of a Pulsar Source",
                        "in": "path",
                        "name": "sourceName",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "properties": {
                                    "data": {
                                        "$ref": "#/components/schemas/FormDataContentDisposition"
                                    },
                                    "sourceConfig": {
                                        "$ref": "#/components/schemas/SourceConfig"
                                    },
                                    "updateOptions": {
                                        "$ref": "#/components/schemas/UpdateOptions"
                                    },
                                    "url": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Pulsar Source successfully updated"
                    },
                    "400": {
                        "description": "Invalid request (The Pulsar Source already exists or Tenant, Namespace or Name is not provided, etc.)"
                    },
                    "401": {
                        "description": "Client is not authorized to perform operation"
                    },
                    "403": {
                        "description": "The requester doesn't have admin permissions"
                    },
                    "404": {
                        "description": "Not Found (The Pulsar Source doesn't exist)"
                    },
                    "500": {
                        "description": "Internal Server Error"
                    },
                    "503": {
                        "description": "Function worker service is now initializing. Please try again later."
                    }
                },
                "summary": "Updates a Pulsar Source currently running in cluster mode",
                "tags": [
                    "sources"
                ]
            }
        },
        "/admin/v3/sources/{tenant}/{namespace}/{sourceName}/restart": {
            "post": {
                "operationId": "restartSource",
                "parameters": [
                    {
                        "description": "The tenant of a Pulsar Source",
                        "in": "path",
                        "name": "tenant",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The namespace of a Pulsar Source",
                        "in": "path",
                        "name": "namespace",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The name of a Pulsar Source",
                        "in": "path",
                        "name": "sourceName",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Operation successful"
                    },
                    "400": {
                        "description": "Invalid request"
                    },
                    "401": {
                        "description": "Client is not authorized to perform operation"
                    },
                    "404": {
                        "description": "Not Found (The Pulsar Source doesn't exist)"
                    },
                    "500": {
                        "description": "Internal server error"
                    },
                    "503": {
                        "description": "Function worker service is now initializing. Please try again later."
                    }
                },
                "summary": "Restart all instances of a Pulsar Source",
                "tags": [
                    "sources"
                ]
            }
        },
        "/admin/v3/sources/{tenant}/{namespace}/{sourceName}/start": {
            "post": {
                "operationId": "startSource",
                "parameters": [
                    {
                        "description": "The tenant of a Pulsar Source",
                        "in": "path",
                        "name": "tenant",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The namespace of a Pulsar Source",
                        "in": "path",
                        "name": "namespace",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The name of a Pulsar Source",
                        "in": "path",
                        "name": "sourceName",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Operation successful"
                    },
                    "400": {
                        "description": "Invalid request"
                    },
                    "401": {
                        "description": "Client is not authorized to perform operation"
                    },
                    "404": {
                        "description": "Not Found (The Pulsar Source doesn't exist)"
                    },
                    "500": {
                        "description": "Internal server error"
                    },
                    "503": {
                        "description": "Function worker service is now initializing. Please try again later."
                    }
                },
                "summary": "Start all instances of a Pulsar Source",
                "tags": [
                    "sources"
                ]
            }
        },
        "/admin/v3/sources/{tenant}/{namespace}/{sourceName}/status": {
            "get": {
                "operationId": "getSourceStatus",
                "parameters": [
                    {
                        "description": "The tenant of a Pulsar Source",
                        "in": "path",
                        "name": "tenant",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The namespace of a Pulsar Source",
                        "in": "path",
                        "name": "namespace",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The name of a Pulsar Source",
                        "in": "path",
                        "name": "sourceName",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SourceStatus"
                                }
                            }
                        },
                        "description": "Displays the status of a Pulsar Source running in cluster mode"
                    },
                    "307": {
                        "description": "Current broker doesn't serve the namespace of this source"
                    },
                    "500": {
                        "description": "Internal Server Error"
                    },
                    "503": {
                        "description": "Function worker service is now initializing. Please try again later."
                    }
                },
                "summary": "Displays the status of a Pulsar Source running in cluster mode",
                "tags": [
                    "sources"
                ]
            }
        },
        "/admin/v3/sources/{tenant}/{namespace}/{sourceName}/stop": {
            "post": {
                "operationId": "stopSource",
                "parameters": [
                    {
                        "description": "The tenant of a Pulsar Source",
                        "in": "path",
                        "name": "tenant",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The namespace of a Pulsar Source",
                        "in": "path",
                        "name": "namespace",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The name of a Pulsar Source",
                        "in": "path",
                        "name": "sourceName",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Operation successful"
                    },
                    "400": {
                        "description": "Invalid request"
                    },
                    "401": {
                        "description": "Client is not authorized to perform operation"
                    },
                    "404": {
                        "description": "Not Found (The Pulsar Source doesn't exist)"
                    },
                    "500": {
                        "description": "Internal server error"
                    },
                    "503": {
                        "description": "Function worker service is now initializing. Please try again later."
                    }
                },
                "summary": "Stop all instances of a Pulsar Source",
                "tags": [
                    "sources"
                ]
            }
        },
        "/admin/v3/sources/{tenant}/{namespace}/{sourceName}/{instanceId}/restart": {
            "post": {
                "operationId": "restartSource_1",
                "parameters": [
                    {
                        "description": "The tenant of a Pulsar Source",
                        "in": "path",
                        "name": "tenant",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The namespace of a Pulsar Source",
                        "in": "path",
                        "name": "namespace",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The name of a Pulsar Source",
                        "in": "path",
                        "name": "sourceName",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The instanceId of a Pulsar Source (if instance-id is not provided, the stats of all instances is returned).",
                        "in": "path",
                        "name": "instanceId",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Operation successful"
                    },
                    "307": {
                        "description": "Current broker doesn't serve the namespace of this source"
                    },
                    "400": {
                        "description": "Invalid request"
                    },
                    "401": {
                        "description": "Client is not authorized to perform operation"
                    },
                    "404": {
                        "description": "Not Found (The Pulsar Source doesn't exist)"
                    },
                    "500": {
                        "description": "Internal server error"
                    },
                    "503": {
                        "description": "Function worker service is now initializing. Please try again later."
                    }
                },
                "summary": "Restart an instance of a Pulsar Source",
                "tags": [
                    "sources"
                ]
            }
        },
        "/admin/v3/sources/{tenant}/{namespace}/{sourceName}/{instanceId}/start": {
            "post": {
                "operationId": "startSource_1",
                "parameters": [
                    {
                        "description": "The tenant of a Pulsar Source",
                        "in": "path",
                        "name": "tenant",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The namespace of a Pulsar Source",
                        "in": "path",
                        "name": "namespace",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The name of a Pulsar Source",
                        "in": "path",
                        "name": "sourceName",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The instanceId of a Pulsar Source (if instance-id is not provided, the stats of all instances is returned).",
                        "in": "path",
                        "name": "instanceId",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Operation successful"
                    },
                    "400": {
                        "description": "Invalid request"
                    },
                    "401": {
                        "description": "Client is not authorized to perform operation"
                    },
                    "404": {
                        "description": "Not Found (The Pulsar Source doesn't exist)"
                    },
                    "500": {
                        "description": "Internal server error"
                    },
                    "503": {
                        "description": "Function worker service is now initializing. Please try again later."
                    }
                },
                "summary": "Start an instance of a Pulsar Source",
                "tags": [
                    "sources"
                ]
            }
        },
        "/admin/v3/sources/{tenant}/{namespace}/{sourceName}/{instanceId}/status": {
            "get": {
                "operationId": "getSourceInstanceStatus",
                "parameters": [
                    {
                        "description": "The tenant of a Pulsar Source",
                        "in": "path",
                        "name": "tenant",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The namespace of a Pulsar Source",
                        "in": "path",
                        "name": "namespace",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The name of a Pulsar Source",
                        "in": "path",
                        "name": "sourceName",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The instanceId of a Pulsar Source (if instance-id is not provided, the stats of all instances is returned).",
                        "in": "path",
                        "name": "instanceId",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SourceInstanceStatusData"
                                }
                            }
                        },
                        "description": "Displays the status of a Pulsar Source instance"
                    },
                    "307": {
                        "description": "Current broker doesn't serve the namespace of this source"
                    },
                    "500": {
                        "description": "Internal Server Error"
                    },
                    "503": {
                        "description": "Function worker service is now initializing. Please try again later."
                    }
                },
                "summary": "Displays the status of a Pulsar Source instance",
                "tags": [
                    "sources"
                ]
            }
        },
        "/admin/v3/sources/{tenant}/{namespace}/{sourceName}/{instanceId}/stop": {
            "post": {
                "operationId": "stopSource_1",
                "parameters": [
                    {
                        "description": "The tenant of a Pulsar Source",
                        "in": "path",
                        "name": "tenant",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The namespace of a Pulsar Source",
                        "in": "path",
                        "name": "namespace",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The name of a Pulsar Source",
                        "in": "path",
                        "name": "sourceName",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The instanceId of a Pulsar Source (if instance-id is not provided, the stats of all instances is returned).",
                        "in": "path",
                        "name": "instanceId",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Operation successful"
                    },
                    "400": {
                        "description": "Invalid request"
                    },
                    "401": {
                        "description": "Client is not authorized to perform operation"
                    },
                    "404": {
                        "description": "Not Found (The Pulsar Source doesn't exist)"
                    },
                    "500": {
                        "description": "Internal server error"
                    },
                    "503": {
                        "description": "Function worker service is now initializing. Please try again later."
                    }
                },
                "summary": "Stop instance of a Pulsar Source",
                "tags": [
                    "sources"
                ]
            }
        }
    },
    "servers": [
        {
            "url": "http://localhost:8080"
        }
    ],
    "tags": [
        {
            "description": "Sources admin apis",
            "name": "sources"
        }
    ]
}
