class PlatformAPI::EnterpriseAccountMember
Enterprise account members are users with access to an enterprise account.
Public Class Methods
# File lib/platform-api/client.rb, line 1807 def initialize(client) @client = client end
Public Instance Methods
Create a member in an enterprise account.
@param enterprise_account_id: unique identifier of the enterprise account @param body: the object to pass as the request payload
# File lib/platform-api/client.rb, line 1822 def create(enterprise_account_id, body = {}) @client.enterprise_account_member.create(enterprise_account_id, body) end
delete a member in an enterprise account.
@param enterprise_account_id: unique identifier of the enterprise account @param account_email_or_account_id: unique email address of account or unique identifier of an account
# File lib/platform-api/client.rb, line 1839 def delete(enterprise_account_id, account_email_or_account_id) @client.enterprise_account_member.delete(enterprise_account_id, account_email_or_account_id) end
List members in an enterprise account.
@param enterprise_account_id: unique identifier of the enterprise account
# File lib/platform-api/client.rb, line 1814 def list(enterprise_account_id) @client.enterprise_account_member.list(enterprise_account_id) end
Update a member in an enterprise account.
@param enterprise_account_id: unique identifier of the enterprise account @param account_email_or_account_id: unique email address of account or unique identifier of an account @param body: the object to pass as the request payload
# File lib/platform-api/client.rb, line 1831 def update(enterprise_account_id, account_email_or_account_id, body = {}) @client.enterprise_account_member.update(enterprise_account_id, account_email_or_account_id, body) end