Module: Oktakit::Client::Apps
- Included in:
- Oktakit::Client
- Defined in:
- lib/oktakit/client/apps.rb
Instance Method Summary collapse
-
#activate_application(id, options = {}) ⇒ Hash<Sawyer::Resource>
Activate Application.
-
#add_application(options = {}) ⇒ Hash<Sawyer::Resource>
Add Application.
-
#assign_group_to_application(app_id, group_id, options = {}) ⇒ Hash<Sawyer::Resource>
Assign Group to Application.
-
#assign_user_to_application_for_sso(id, options = {}) ⇒ Hash<Sawyer::Resource>
Assign User to Application for SSO.
-
#assign_user_to_application_for_sso_provisioning(id, options = {}) ⇒ Hash<Sawyer::Resource>
Assign User to Application for SSO & Provisioning.
-
#deactivate_application(id, options = {}) ⇒ Hash<Sawyer::Resource>
Deactivate Application.
-
#delete_application(id, options = {}) ⇒ Hash<Sawyer::Resource>
Delete Application.
-
#generate_new_application_key_credential(app_id, options = {}) ⇒ Hash<Sawyer::Resource>
Generate New Application Key Credential.
-
#get_application(id, options = {}) ⇒ Hash<Sawyer::Resource>
Get Application.
-
#get_assigned_group_for_application(app_id, group_id, options = {}) ⇒ Hash<Sawyer::Resource>
Get Assigned Group for Application.
-
#get_assigned_user_for_application(app_id, user_id, options = {}) ⇒ Hash<Sawyer::Resource>
Get Assigned User for Application.
-
#get_key_credential_for_application(app_id, key_id, options = {}) ⇒ Hash<Sawyer::Resource>
Get Key Credential for Application.
-
#list_applications(options = {}) ⇒ Array<Sawyer::Resource>
List Applications.
-
#list_groups_assigned_to_application(id, options = {}) ⇒ Array<Sawyer::Resource>
List Groups Assigned to Application.
-
#list_key_credentials_for_application(app_id, options = {}) ⇒ Array<Sawyer::Resource>
List Key Credentials for Application.
-
#list_users_assigned_to_application(id, options = {}) ⇒ Array<Sawyer::Resource>
List Users Assigned to Application.
-
#preview_saml_metadata_for_application(app_id, options = {}) ⇒ Hash<Sawyer::Resource>
Preview SAML metadata for Application.
-
#remove_group_from_application(app_id, group_id, options = {}) ⇒ Hash<Sawyer::Resource>
Remove Group from Application.
-
#remove_user_from_application(app_id, user_id, options = {}) ⇒ Hash<Sawyer::Resource>
Remove User from Application.
-
#update_application(id, options = {}) ⇒ Hash<Sawyer::Resource>
Update Application.
-
#update_application_credentials_for_assigned_user(app_id, user_id, options = {}) ⇒ Hash<Sawyer::Resource>
Update Application Credentials for Assigned User.
-
#update_application_profile_for_assigned_user(app_id, user_id, options = {}) ⇒ Hash<Sawyer::Resource>
Update Application Profile for Assigned User.
Instance Method Details
#activate_application(id, options = {}) ⇒ Hash<Sawyer::Resource>
Activate Application
94 95 96 |
# File 'lib/oktakit/client/apps.rb', line 94 def activate_application(id, = {}) post("/apps/#{id}/lifecycle/activate", ) end |
#add_application(options = {}) ⇒ Hash<Sawyer::Resource>
Add Application
15 16 17 |
# File 'lib/oktakit/client/apps.rb', line 15 def add_application( = {}) post('/apps', ) end |
#assign_group_to_application(app_id, group_id, options = {}) ⇒ Hash<Sawyer::Resource>
Assign Group to Application
243 244 245 |
# File 'lib/oktakit/client/apps.rb', line 243 def assign_group_to_application(app_id, group_id, = {}) put("/apps/#{app_id}/groups/#{group_id}", ) end |
#assign_user_to_application_for_sso(id, options = {}) ⇒ Hash<Sawyer::Resource>
Assign User to Application for SSO
126 127 128 |
# File 'lib/oktakit/client/apps.rb', line 126 def assign_user_to_application_for_sso(id, = {}) post("/apps/#{id}/users", ) end |
#assign_user_to_application_for_sso_provisioning(id, options = {}) ⇒ Hash<Sawyer::Resource>
Assign User to Application for SSO & Provisioning
142 143 144 |
# File 'lib/oktakit/client/apps.rb', line 142 def assign_user_to_application_for_sso_provisioning(id, = {}) post("/apps/#{id}/users", ) end |
#deactivate_application(id, options = {}) ⇒ Hash<Sawyer::Resource>
Deactivate Application
110 111 112 |
# File 'lib/oktakit/client/apps.rb', line 110 def deactivate_application(id, = {}) post("/apps/#{id}/lifecycle/deactivate", ) end |
#delete_application(id, options = {}) ⇒ Hash<Sawyer::Resource>
Delete Application
78 79 80 |
# File 'lib/oktakit/client/apps.rb', line 78 def delete_application(id, = {}) delete("/apps/#{id}", ) end |
#generate_new_application_key_credential(app_id, options = {}) ⇒ Hash<Sawyer::Resource>
Generate New Application Key Credential
309 310 311 |
# File 'lib/oktakit/client/apps.rb', line 309 def generate_new_application_key_credential(app_id, = {}) post("/apps/#{app_id}/credentials/keys/generate", ) end |
#get_application(id, options = {}) ⇒ Hash<Sawyer::Resource>
Get Application
31 32 33 |
# File 'lib/oktakit/client/apps.rb', line 31 def get_application(id, = {}) get("/apps/#{id}", ) end |
#get_assigned_group_for_application(app_id, group_id, options = {}) ⇒ Hash<Sawyer::Resource>
Get Assigned Group for Application
260 261 262 |
# File 'lib/oktakit/client/apps.rb', line 260 def get_assigned_group_for_application(app_id, group_id, = {}) get("/apps/#{app_id}/groups/#{group_id}", ) end |
#get_assigned_user_for_application(app_id, user_id, options = {}) ⇒ Hash<Sawyer::Resource>
Get Assigned User for Application
159 160 161 |
# File 'lib/oktakit/client/apps.rb', line 159 def get_assigned_user_for_application(app_id, user_id, = {}) get("/apps/#{app_id}/users/#{user_id}", ) end |
#get_key_credential_for_application(app_id, key_id, options = {}) ⇒ Hash<Sawyer::Resource>
Get Key Credential for Application
342 343 344 |
# File 'lib/oktakit/client/apps.rb', line 342 def get_key_credential_for_application(app_id, key_id, = {}) get("/apps/#{app_id}/credentials/keys/#{key_id}", ) end |
#list_applications(options = {}) ⇒ Array<Sawyer::Resource>
List Applications
46 47 48 |
# File 'lib/oktakit/client/apps.rb', line 46 def list_applications( = {}) get('/apps', ) end |
#list_groups_assigned_to_application(id, options = {}) ⇒ Array<Sawyer::Resource>
List Groups Assigned to Application
276 277 278 |
# File 'lib/oktakit/client/apps.rb', line 276 def list_groups_assigned_to_application(id, = {}) get("/apps/#{id}/groups", ) end |
#list_key_credentials_for_application(app_id, options = {}) ⇒ Array<Sawyer::Resource>
List Key Credentials for Application
325 326 327 |
# File 'lib/oktakit/client/apps.rb', line 325 def list_key_credentials_for_application(app_id, = {}) get("/apps/#{app_id}/credentials/keys", ) end |
#list_users_assigned_to_application(id, options = {}) ⇒ Array<Sawyer::Resource>
List Users Assigned to Application
175 176 177 |
# File 'lib/oktakit/client/apps.rb', line 175 def list_users_assigned_to_application(id, = {}) get("/apps/#{id}/users", ) end |
#preview_saml_metadata_for_application(app_id, options = {}) ⇒ Hash<Sawyer::Resource>
Preview SAML metadata for Application
358 359 360 |
# File 'lib/oktakit/client/apps.rb', line 358 def (app_id, = {}) get("/apps/#{app_id}/sso/saml/metadata", ) end |
#remove_group_from_application(app_id, group_id, options = {}) ⇒ Hash<Sawyer::Resource>
Remove Group from Application
293 294 295 |
# File 'lib/oktakit/client/apps.rb', line 293 def remove_group_from_application(app_id, group_id, = {}) delete("/apps/#{app_id}/groups/#{group_id}", ) end |
#remove_user_from_application(app_id, user_id, options = {}) ⇒ Hash<Sawyer::Resource>
Remove User from Application
226 227 228 |
# File 'lib/oktakit/client/apps.rb', line 226 def remove_user_from_application(app_id, user_id, = {}) delete("/apps/#{app_id}/users/#{user_id}", ) end |
#update_application(id, options = {}) ⇒ Hash<Sawyer::Resource>
Update Application
62 63 64 |
# File 'lib/oktakit/client/apps.rb', line 62 def update_application(id, = {}) put("/apps/#{id}", ) end |
#update_application_credentials_for_assigned_user(app_id, user_id, options = {}) ⇒ Hash<Sawyer::Resource>
Update Application Credentials for Assigned User
192 193 194 |
# File 'lib/oktakit/client/apps.rb', line 192 def update_application_credentials_for_assigned_user(app_id, user_id, = {}) post("/apps/#{app_id}/users/#{user_id}", ) end |
#update_application_profile_for_assigned_user(app_id, user_id, options = {}) ⇒ Hash<Sawyer::Resource>
Update Application Profile for Assigned User
209 210 211 |
# File 'lib/oktakit/client/apps.rb', line 209 def update_application_profile_for_assigned_user(app_id, user_id, = {}) post("/apps/#{app_id}/users/#{user_id}", ) end |