Skip to content

CancelTerminalRequest

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.v2.base
A v2 object with the ``_meta`` extension point.

⋔ Inheritance diagram

graph TD
  95970869974400["terminals.CancelTerminalRequest"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970868359040 --> 95970869974400
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

Parameters of terminal/cancel: cancel one terminal.

Only for terminals that currently advertise capabilities.cancel.

Source code in src/aclientp/schema/v2/terminals.py
class CancelTerminalRequest(AnnotatedObject):
    """Parameters of ``terminal/cancel``: cancel one terminal.

    Only for terminals that currently advertise ``capabilities.cancel``.
    """

    session_id: SessionId
    """The ID of the session that owns the terminal."""

    terminal_id: TerminalId
    """The ID of the terminal to cancel."""

session_id instance-attribute

session_id: SessionId

The ID of the session that owns the terminal.

terminal_id instance-attribute

terminal_id: TerminalId

The ID of the terminal to cancel.

:fa-brands-github: Show source on GitHub