Class: Seam::Clients::AccessGrantsUnmanaged
- Inherits:
-
Object
- Object
- Seam::Clients::AccessGrantsUnmanaged
- Defined in:
- lib/seam/routes/clients/access_grants_unmanaged.rb
Instance Method Summary collapse
- #get(access_grant_id:) ⇒ Object
-
#initialize(client:, defaults:) ⇒ AccessGrantsUnmanaged
constructor
A new instance of AccessGrantsUnmanaged.
- #list(acs_entrance_id: nil, acs_system_id: nil, reservation_key: nil, user_identity_id: nil) ⇒ Object
- #update(access_grant_id:, is_managed:, access_grant_key: nil) ⇒ Object
Constructor Details
#initialize(client:, defaults:) ⇒ AccessGrantsUnmanaged
Returns a new instance of AccessGrantsUnmanaged.
6 7 8 9 |
# File 'lib/seam/routes/clients/access_grants_unmanaged.rb', line 6 def initialize(client:, defaults:) @client = client @defaults = defaults end |
Instance Method Details
#get(access_grant_id:) ⇒ Object
11 12 13 14 15 |
# File 'lib/seam/routes/clients/access_grants_unmanaged.rb', line 11 def get(access_grant_id:) @client.post("/access_grants/unmanaged/get", {access_grant_id: access_grant_id}.compact) nil end |
#list(acs_entrance_id: nil, acs_system_id: nil, reservation_key: nil, user_identity_id: nil) ⇒ Object
17 18 19 20 21 |
# File 'lib/seam/routes/clients/access_grants_unmanaged.rb', line 17 def list(acs_entrance_id: nil, acs_system_id: nil, reservation_key: nil, user_identity_id: nil) @client.post("/access_grants/unmanaged/list", {acs_entrance_id: acs_entrance_id, acs_system_id: acs_system_id, reservation_key: reservation_key, user_identity_id: user_identity_id}.compact) nil end |
#update(access_grant_id:, is_managed:, access_grant_key: nil) ⇒ Object
23 24 25 26 27 |
# File 'lib/seam/routes/clients/access_grants_unmanaged.rb', line 23 def update(access_grant_id:, is_managed:, access_grant_key: nil) @client.post("/access_grants/unmanaged/update", {access_grant_id: access_grant_id, is_managed: is_managed, access_grant_key: access_grant_key}.compact) nil end |