Class: PlatformAPI::SpaceAppAccess

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

Overview

Space access represents the permissions a particular user has on a particular space.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ SpaceAppAccess

Returns a new instance of SpaceAppAccess.



2930
2931
2932
# File 'lib/platform-api/client.rb', line 2930

def initialize(client)
  @client = client
end

Instance Method Details

#info(space_id_or_space_name, account_email_or_account_id_or_account_self) ⇒ Object

List permissions for a given user on a given space.

Parameters:

  • space_id_or_space_name:

    unique identifier of space or unique name of space

  • account_email_or_account_id_or_account_self:

    unique email address of account or unique identifier of an account or Implicit reference to currently authorized user



2938
2939
2940
# File 'lib/platform-api/client.rb', line 2938

def info(space_id_or_space_name, )
  @client.space_app_access.info(space_id_or_space_name, )
end

#list(space_id_or_space_name) ⇒ Object

List all users and their permissions on a space.

Parameters:

  • space_id_or_space_name:

    unique identifier of space or unique name of space



2954
2955
2956
# File 'lib/platform-api/client.rb', line 2954

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

#update(space_id_or_space_name, account_email_or_account_id_or_account_self, body = {}) ⇒ Object

Update an existing user's set of permissions on a space.

Parameters:

  • space_id_or_space_name:

    unique identifier of space or unique name of space

  • account_email_or_account_id_or_account_self:

    unique email address of account or unique identifier of an account or Implicit reference to currently authorized user

  • body:

    the object to pass as the request payload



2947
2948
2949
# File 'lib/platform-api/client.rb', line 2947

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