Class: PlatformAPI::EnterpriseAccountMember

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

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

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ EnterpriseAccountMember

Returns a new instance of EnterpriseAccountMember.



1858
1859
1860
# File 'lib/platform-api/client.rb', line 1858

def initialize(client)
  @client = client
end

Instance Method Details

#create(enterprise_account_id_or_enterprise_account_name, body = {}) ⇒ Object

Create a member in an enterprise account.

Parameters:

  • enterprise_account_id_or_enterprise_account_name:

    unique identifier of the enterprise account or unique name of the enterprise account

  • body:

    the object to pass as the request payload



1873
1874
1875
# File 'lib/platform-api/client.rb', line 1873

def create(, body = {})
  @client..create(, body)
end

#delete(enterprise_account_id_or_enterprise_account_name, account_email_or_account_id) ⇒ Object

delete a member in an enterprise account.

Parameters:

  • enterprise_account_id_or_enterprise_account_name:

    unique identifier of the enterprise account or unique name of the enterprise account

  • account_email_or_account_id:

    unique email address of account or unique identifier of an account



1890
1891
1892
# File 'lib/platform-api/client.rb', line 1890

def delete(, )
  @client..delete(, )
end

#list(enterprise_account_id_or_enterprise_account_name) ⇒ Object

List members in an enterprise account.

Parameters:

  • enterprise_account_id_or_enterprise_account_name:

    unique identifier of the enterprise account or unique name of the enterprise account



1865
1866
1867
# File 'lib/platform-api/client.rb', line 1865

def list()
  @client..list()
end

#update(enterprise_account_id_or_enterprise_account_name, account_email_or_account_id, body = {}) ⇒ Object

Update a member in an enterprise account.

Parameters:

  • enterprise_account_id_or_enterprise_account_name:

    unique identifier of the enterprise account or unique name of the enterprise account

  • account_email_or_account_id:

    unique email address of account or unique identifier of an account

  • body:

    the object to pass as the request payload



1882
1883
1884
# File 'lib/platform-api/client.rb', line 1882

def update(, , body = {})
  @client..update(, , body)
end