class PlatformAPI::EnterpriseAccountMember

Enterprise account members are users with access to an enterprise account.

Public Class Methods

new(client) click to toggle source
# File lib/platform-api/client.rb, line 1807
def initialize(client)
  @client = client
end

Public Instance Methods

create(enterprise_account_id, body = {}) click to toggle source

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(enterprise_account_id, account_email_or_account_id) click to toggle source

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(enterprise_account_id) click to toggle source

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(enterprise_account_id, account_email_or_account_id, body = {}) click to toggle source

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