This is an automated email from the ASF dual-hosted git repository.

urfree pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 4dd7f45d875 Docs sync done from apache/pulsar (#e3b76d4)
4dd7f45d875 is described below

commit 4dd7f45d87537c89c92f83c26199fe0e94197bc2
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Jan 20 01:43:51 2023 +0000

    Docs sync done from apache/pulsar (#e3b76d4)
---
 static/reference/next/pulsar-admin/topics.md |  16 +++
 static/swagger/master/swagger.json           | 140 +++++++++++++++++++++++++++
 static/swagger/master/v2/swagger.json        | 140 +++++++++++++++++++++++++++
 3 files changed, 296 insertions(+)

diff --git a/static/reference/next/pulsar-admin/topics.md 
b/static/reference/next/pulsar-admin/topics.md
index 873528925c5..8d70f711e97 100644
--- a/static/reference/next/pulsar-admin/topics.md
+++ b/static/reference/next/pulsar-admin/topics.md
@@ -2419,3 +2419,19 @@ $ pulsar-admin topics set-schema-validation-enforce 
options
 |---|---|---|
 | `--enable, -e` | Enable schema validation enforced|false||
 
+
+## <em>trim-topic</em>
+
+Trim a topic
+
+**Command:**
+
+```shell
+$ pulsar-admin topics trim-topic options
+```
+
+**Options:**
+
+|Flag|Description|Default|
+|---|---|---|
+
diff --git a/static/swagger/master/swagger.json 
b/static/swagger/master/swagger.json
index e1079d2d3bd..d995c72dcc7 100644
--- a/static/swagger/master/swagger.json
+++ b/static/swagger/master/swagger.json
@@ -21700,6 +21700,76 @@
                 ]
             }
         },
+        "/non-persistent/{tenant}/{namespace}/{topic}/trim": {
+            "post": {
+                "description": "",
+                "operationId": "trimTopic",
+                "parameters": [
+                    {
+                        "description": "Specify the tenant",
+                        "in": "path",
+                        "name": "tenant",
+                        "required": true,
+                        "type": "string"
+                    },
+                    {
+                        "description": "Specify the namespace",
+                        "in": "path",
+                        "name": "namespace",
+                        "required": true,
+                        "type": "string"
+                    },
+                    {
+                        "description": "Specify topic name",
+                        "in": "path",
+                        "name": "topic",
+                        "required": true,
+                        "type": "string"
+                    },
+                    {
+                        "default": false,
+                        "description": "Whether leader broker redirected this 
call to this broker. For internal use.",
+                        "in": "query",
+                        "name": "authoritative",
+                        "required": false,
+                        "type": "boolean"
+                    }
+                ],
+                "produces": [
+                    "application/json"
+                ],
+                "responses": {
+                    "307": {
+                        "description": "Current broker doesn't serve the 
namespace of this topic"
+                    },
+                    "401": {
+                        "description": "Don't have permission to administrate 
resources on this tenant orsubscriber is not authorized to access this 
operation"
+                    },
+                    "403": {
+                        "description": "Don't have admin permission"
+                    },
+                    "404": {
+                        "description": "Namespace or topic does not exist"
+                    },
+                    "405": {
+                        "description": "Operation is not allowed on the 
persistent topic"
+                    },
+                    "412": {
+                        "description": "Topic name is not valid"
+                    },
+                    "500": {
+                        "description": "Internal server error"
+                    },
+                    "503": {
+                        "description": "Failed to validate global cluster 
configuration"
+                    }
+                },
+                "summary": " Trim a topic",
+                "tags": [
+                    "non-persistent topic"
+                ]
+            }
+        },
         "/non-persistent/{tenant}/{namespace}/{topic}/truncate": {
             "delete": {
                 "description": "NonPersistentTopic does not support truncate.",
@@ -31463,6 +31533,76 @@
                 ]
             }
         },
+        "/persistent/{tenant}/{namespace}/{topic}/trim": {
+            "post": {
+                "description": "",
+                "operationId": "trimTopic",
+                "parameters": [
+                    {
+                        "description": "Specify the tenant",
+                        "in": "path",
+                        "name": "tenant",
+                        "required": true,
+                        "type": "string"
+                    },
+                    {
+                        "description": "Specify the namespace",
+                        "in": "path",
+                        "name": "namespace",
+                        "required": true,
+                        "type": "string"
+                    },
+                    {
+                        "description": "Specify topic name",
+                        "in": "path",
+                        "name": "topic",
+                        "required": true,
+                        "type": "string"
+                    },
+                    {
+                        "default": false,
+                        "description": "Whether leader broker redirected this 
call to this broker. For internal use.",
+                        "in": "query",
+                        "name": "authoritative",
+                        "required": false,
+                        "type": "boolean"
+                    }
+                ],
+                "produces": [
+                    "application/json"
+                ],
+                "responses": {
+                    "307": {
+                        "description": "Current broker doesn't serve the 
namespace of this topic"
+                    },
+                    "401": {
+                        "description": "Don't have permission to administrate 
resources on this tenant orsubscriber is not authorized to access this 
operation"
+                    },
+                    "403": {
+                        "description": "Don't have admin permission"
+                    },
+                    "404": {
+                        "description": "Namespace or topic does not exist"
+                    },
+                    "405": {
+                        "description": "Operation is not allowed on the 
persistent topic"
+                    },
+                    "412": {
+                        "description": "Topic name is not valid"
+                    },
+                    "500": {
+                        "description": "Internal server error"
+                    },
+                    "503": {
+                        "description": "Failed to validate global cluster 
configuration"
+                    }
+                },
+                "summary": " Trim a topic",
+                "tags": [
+                    "persistent topic"
+                ]
+            }
+        },
         "/persistent/{tenant}/{namespace}/{topic}/truncate": {
             "delete": {
                 "description": "The truncate operation will move all cursors 
to the end of the topic and delete all inactive ledgers.",
diff --git a/static/swagger/master/v2/swagger.json 
b/static/swagger/master/v2/swagger.json
index e1079d2d3bd..d995c72dcc7 100644
--- a/static/swagger/master/v2/swagger.json
+++ b/static/swagger/master/v2/swagger.json
@@ -21700,6 +21700,76 @@
                 ]
             }
         },
+        "/non-persistent/{tenant}/{namespace}/{topic}/trim": {
+            "post": {
+                "description": "",
+                "operationId": "trimTopic",
+                "parameters": [
+                    {
+                        "description": "Specify the tenant",
+                        "in": "path",
+                        "name": "tenant",
+                        "required": true,
+                        "type": "string"
+                    },
+                    {
+                        "description": "Specify the namespace",
+                        "in": "path",
+                        "name": "namespace",
+                        "required": true,
+                        "type": "string"
+                    },
+                    {
+                        "description": "Specify topic name",
+                        "in": "path",
+                        "name": "topic",
+                        "required": true,
+                        "type": "string"
+                    },
+                    {
+                        "default": false,
+                        "description": "Whether leader broker redirected this 
call to this broker. For internal use.",
+                        "in": "query",
+                        "name": "authoritative",
+                        "required": false,
+                        "type": "boolean"
+                    }
+                ],
+                "produces": [
+                    "application/json"
+                ],
+                "responses": {
+                    "307": {
+                        "description": "Current broker doesn't serve the 
namespace of this topic"
+                    },
+                    "401": {
+                        "description": "Don't have permission to administrate 
resources on this tenant orsubscriber is not authorized to access this 
operation"
+                    },
+                    "403": {
+                        "description": "Don't have admin permission"
+                    },
+                    "404": {
+                        "description": "Namespace or topic does not exist"
+                    },
+                    "405": {
+                        "description": "Operation is not allowed on the 
persistent topic"
+                    },
+                    "412": {
+                        "description": "Topic name is not valid"
+                    },
+                    "500": {
+                        "description": "Internal server error"
+                    },
+                    "503": {
+                        "description": "Failed to validate global cluster 
configuration"
+                    }
+                },
+                "summary": " Trim a topic",
+                "tags": [
+                    "non-persistent topic"
+                ]
+            }
+        },
         "/non-persistent/{tenant}/{namespace}/{topic}/truncate": {
             "delete": {
                 "description": "NonPersistentTopic does not support truncate.",
@@ -31463,6 +31533,76 @@
                 ]
             }
         },
+        "/persistent/{tenant}/{namespace}/{topic}/trim": {
+            "post": {
+                "description": "",
+                "operationId": "trimTopic",
+                "parameters": [
+                    {
+                        "description": "Specify the tenant",
+                        "in": "path",
+                        "name": "tenant",
+                        "required": true,
+                        "type": "string"
+                    },
+                    {
+                        "description": "Specify the namespace",
+                        "in": "path",
+                        "name": "namespace",
+                        "required": true,
+                        "type": "string"
+                    },
+                    {
+                        "description": "Specify topic name",
+                        "in": "path",
+                        "name": "topic",
+                        "required": true,
+                        "type": "string"
+                    },
+                    {
+                        "default": false,
+                        "description": "Whether leader broker redirected this 
call to this broker. For internal use.",
+                        "in": "query",
+                        "name": "authoritative",
+                        "required": false,
+                        "type": "boolean"
+                    }
+                ],
+                "produces": [
+                    "application/json"
+                ],
+                "responses": {
+                    "307": {
+                        "description": "Current broker doesn't serve the 
namespace of this topic"
+                    },
+                    "401": {
+                        "description": "Don't have permission to administrate 
resources on this tenant orsubscriber is not authorized to access this 
operation"
+                    },
+                    "403": {
+                        "description": "Don't have admin permission"
+                    },
+                    "404": {
+                        "description": "Namespace or topic does not exist"
+                    },
+                    "405": {
+                        "description": "Operation is not allowed on the 
persistent topic"
+                    },
+                    "412": {
+                        "description": "Topic name is not valid"
+                    },
+                    "500": {
+                        "description": "Internal server error"
+                    },
+                    "503": {
+                        "description": "Failed to validate global cluster 
configuration"
+                    }
+                },
+                "summary": " Trim a topic",
+                "tags": [
+                    "persistent topic"
+                ]
+            }
+        },
         "/persistent/{tenant}/{namespace}/{topic}/truncate": {
             "delete": {
                 "description": "The truncate operation will move all cursors 
to the end of the topic and delete all inactive ledgers.",

Reply via email to