Class: Infrawrench::InvitationsByTokenNamespace

Inherits:
Object
  • Object
show all
Defined in:
lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs

Overview

client.invitations.by_token

Instance Method Summary collapse

Constructor Details

#initialize(transport) ⇒ InvitationsByTokenNamespace

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 InvitationsByTokenNamespace.

Parameters:



1795
1796
1797
# File 'lib/infrawrench/client.rb', line 1795

def initialize(transport)
  @transport = transport
end

Instance Method Details

#get(token:, request_options: nil) ⇒ Hash

Get invitation details by token

GET /api/invitations/by-token/token

Raises on 404: Not found

Parameters:

  • token (String)
  • request_options (Hash, nil) (defaults to: nil)

    Per-call :headers, :timeout and :open_timeout.

  • token: (String)
  • request_options: (Hash[Symbol, untyped], nil) (defaults to: nil)

Returns:

  • (Hash)

    Parsed JSON, shaped as InvitationDetail — see sig/infrawrench/sdk.rbs.

Raises:



1809
1810
1811
1812
1813
1814
1815
1816
# File 'lib/infrawrench/client.rb', line 1809

def get(token:, request_options: nil)
  @transport.request(
    http_method: "GET",
    path: "/api/invitations/by-token/{token}",
    path_params: { "token" => token },
    request_options: request_options
  )
end