Class: Infrawrench::SharedConsolesInvitesNamespace
- Inherits:
-
Object
- Object
- Infrawrench::SharedConsolesInvitesNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.shared_consoles.invites
Instance Method Summary collapse
-
#create(console_id:, org_id: nil, body: nil, request_options: nil) ⇒ Hash
Mint a replacement invite.
-
#delete(console_id:, org_id: nil, request_options: nil) ⇒ Hash
Withdraw the outstanding invite.
-
#get(token:, org_id: nil, request_options: nil) ⇒ Hash
Preview what an invite link points at.
-
#initialize(transport) ⇒ SharedConsolesInvitesNamespace
constructor
private
A new instance of SharedConsolesInvitesNamespace.
Constructor Details
#initialize(transport) ⇒ SharedConsolesInvitesNamespace
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 SharedConsolesInvitesNamespace.
12723 12724 12725 |
# File 'lib/infrawrench/client.rb', line 12723 def initialize(transport) @transport = transport end |
Instance Method Details
#create(console_id:, org_id: nil, body: nil, request_options: nil) ⇒ Hash
Mint a replacement invite
An invite is spent by the first person it admits, so inviting a second
guest means minting a second link. Replaces any outstanding one. Sharer or
org:settings:write.
POST /api/org/orgId/shared-consoles/consoleId/invites
Raises on 403: Forbidden
Raises on 404: Not found
Raises on 409: Conflict
12749 12750 12751 12752 12753 12754 12755 12756 12757 |
# File 'lib/infrawrench/client.rb', line 12749 def create(console_id:, org_id: nil, body: nil, request_options: nil) @transport.request( http_method: "POST", path: "/api/org/{orgId}/shared-consoles/{consoleId}/invites", path_params: { "orgId" => org_id, "consoleId" => console_id }, body: body, request_options: ) end |
#delete(console_id:, org_id: nil, request_options: nil) ⇒ Hash
Withdraw the outstanding invite
Kills the link without touching the session or anyone already on it.
DELETE /api/org/orgId/shared-consoles/consoleId/invites
Raises on 403: Forbidden
Raises on 404: Not found
12776 12777 12778 12779 12780 12781 12782 12783 |
# File 'lib/infrawrench/client.rb', line 12776 def delete(console_id:, org_id: nil, request_options: nil) @transport.request( http_method: "DELETE", path: "/api/org/{orgId}/shared-consoles/{consoleId}/invites", path_params: { "orgId" => org_id, "consoleId" => console_id }, request_options: ) end |
#get(token:, org_id: nil, request_options: nil) ⇒ Hash
Preview what an invite link points at
What the join screen shows before anyone commits: which host, whose
session, and whether you may join it. Reachable with a valid token by a
signed-in member who already holds resources:execute — the token says
which session, never whether. Returns nothing from the session itself.
Requires permission: resources:execute.
GET /api/org/orgId/shared-consoles/invites/token
Raises on 404: Not found
12805 12806 12807 12808 12809 12810 12811 12812 |
# File 'lib/infrawrench/client.rb', line 12805 def get(token:, org_id: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/shared-consoles/invites/{token}", path_params: { "orgId" => org_id, "token" => token }, request_options: ) end |