Class: PlatformAPI::TeamInvitation
- Inherits:
-
Object
- Object
- PlatformAPI::TeamInvitation
- Defined in:
- lib/platform-api/client.rb
Overview
A team invitation represents an invite to a team.
Instance Method Summary collapse
-
#accept(team_invitation_token) ⇒ Object
Accept Team Invitation.
-
#create(team_name_or_team_id, body = {}) ⇒ Object
Create Team Invitation.
-
#get(team_invitation_token) ⇒ Object
Get an invitation by its token.
-
#initialize(client) ⇒ TeamInvitation
constructor
A new instance of TeamInvitation.
-
#list(team_name) ⇒ Object
Get a list of a team's Identity Providers.
-
#revoke(team_name_or_team_id, team_invitation_id) ⇒ Object
Revoke a team invitation.
Constructor Details
#initialize(client) ⇒ TeamInvitation
Returns a new instance of TeamInvitation.
3207 3208 3209 |
# File 'lib/platform-api/client.rb', line 3207 def initialize(client) @client = client end |
Instance Method Details
#accept(team_invitation_token) ⇒ Object
Accept Team Invitation
3244 3245 3246 |
# File 'lib/platform-api/client.rb', line 3244 def accept(team_invitation_token) @client.team_invitation.accept(team_invitation_token) end |
#create(team_name_or_team_id, body = {}) ⇒ Object
Create Team Invitation
3222 3223 3224 |
# File 'lib/platform-api/client.rb', line 3222 def create(team_name_or_team_id, body = {}) @client.team_invitation.create(team_name_or_team_id, body) end |
#get(team_invitation_token) ⇒ Object
Get an invitation by its token
3237 3238 3239 |
# File 'lib/platform-api/client.rb', line 3237 def get(team_invitation_token) @client.team_invitation.get(team_invitation_token) end |
#list(team_name) ⇒ Object
Get a list of a team's Identity Providers
3214 3215 3216 |
# File 'lib/platform-api/client.rb', line 3214 def list(team_name) @client.team_invitation.list(team_name) end |
#revoke(team_name_or_team_id, team_invitation_id) ⇒ Object
Revoke a team invitation.
3230 3231 3232 |
# File 'lib/platform-api/client.rb', line 3230 def revoke(team_name_or_team_id, team_invitation_id) @client.team_invitation.revoke(team_name_or_team_id, team_invitation_id) end |