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.
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.
2938 2939 2940 |
# File 'lib/platform-api/client.rb', line 2938 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.
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.
2947 2948 2949 |
# File 'lib/platform-api/client.rb', line 2947 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 |