Class: PlatformAPI::SpaceAppAccess
- Inherits:
-
Object
- Object
- PlatformAPI::SpaceAppAccess
- 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
-
#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.
-
#initialize(client) ⇒ SpaceAppAccess
constructor
A new instance of SpaceAppAccess.
-
#list(space_id_or_space_name) ⇒ Object
List all users and their permissions on a space.
-
#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.
Constructor Details
#initialize(client) ⇒ SpaceAppAccess
Returns a new instance of SpaceAppAccess.
2910 2911 2912 |
# File 'lib/platform-api/client.rb', line 2910 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.
2918 2919 2920 |
# File 'lib/platform-api/client.rb', line 2918 def info(space_id_or_space_name, account_email_or_account_id_or_account_self) @client.space_app_access.info(space_id_or_space_name, account_email_or_account_id_or_account_self) end |
#list(space_id_or_space_name) ⇒ Object
List all users and their permissions on a space.
2934 2935 2936 |
# File 'lib/platform-api/client.rb', line 2934 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.
2927 2928 2929 |
# File 'lib/platform-api/client.rb', line 2927 def update(space_id_or_space_name, account_email_or_account_id_or_account_self, body = {}) @client.space_app_access.update(space_id_or_space_name, account_email_or_account_id_or_account_self, body) end |