Class: Infrawrench::SharedConsolesParticipantsNamespace
- Inherits:
-
Object
- Object
- Infrawrench::SharedConsolesParticipantsNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.shared_consoles.participants
Instance Method Summary collapse
-
#delete(console_id:, participant_id:, org_id: nil, request_options: nil) ⇒ Hash
Remove somebody from a shared console.
-
#initialize(transport) ⇒ SharedConsolesParticipantsNamespace
constructor
private
A new instance of SharedConsolesParticipantsNamespace.
Constructor Details
#initialize(transport) ⇒ SharedConsolesParticipantsNamespace
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of SharedConsolesParticipantsNamespace.
12873 12874 12875 |
# File 'lib/infrawrench/client.rb', line 12873 def initialize(transport) @transport = transport end |
Instance Method Details
#delete(console_id:, participant_id:, org_id: nil, request_options: nil) ⇒ Hash
Remove somebody from a shared console
Their socket is closed immediately on the replica holding the pty, and
within one two-second sweep on any other. They are marked removed rather
than left, so they cannot resume without a fresh invite. The sharer
cannot be removed — revoke the share.
DELETE /api/org/orgId/shared-consoles/consoleId/participants/participantId
Raises on 403: Forbidden
Raises on 404: Not found
Raises on 409: Conflict
12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 |
# File 'lib/infrawrench/client.rb', line 12901 def delete(console_id:, participant_id:, org_id: nil, request_options: nil) @transport.request( http_method: "DELETE", path: "/api/org/{orgId}/shared-consoles/{consoleId}/participants/{participantId}", path_params: { "orgId" => org_id, "consoleId" => console_id, "participantId" => participant_id }, request_options: ) end |