Class: ProvisioningClient
- Inherits:
-
Object
- Object
- ProvisioningClient
- Defined in:
- lib/lockstep_sdk/clients/provisioning_client.rb
Instance Method Summary collapse
-
#finalize_user_account_provisioning(body:) ⇒ Object
Updates user, company and group metadata for a User of status ‘Onboarding’ and finalizes a user’s onboarding process by changing the user status to ‘Active’.
-
#initialize(lockstepsdk) ⇒ ProvisioningClient
constructor
Initialize the ProvisioningClient class with a lockstepsdk instance.
-
#provision_free_developer_account(body:) ⇒ Object
Creates a new account for a developer, sending an email with information on how to access the API.
-
#provision_user_account(body:) ⇒ Object
Creates a new User or updates an Invited user based on metadata provided by the User during the onboarding process.
Constructor Details
#initialize(lockstepsdk) ⇒ ProvisioningClient
Initialize the ProvisioningClient class with a lockstepsdk instance.
24 25 26 |
# File 'lib/lockstep_sdk/clients/provisioning_client.rb', line 24 def initialize(lockstepsdk) @lockstepsdk = lockstepsdk end |
Instance Method Details
#finalize_user_account_provisioning(body:) ⇒ Object
Updates user, company and group metadata for a User of status ‘Onboarding’ and finalizes a user’s onboarding process by changing the user status to ‘Active’
42 43 44 45 |
# File 'lib/lockstep_sdk/clients/provisioning_client.rb', line 42 def finalize_user_account_provisioning(body:) path = "/api/v1/Provisioning/finalize" @lockstepsdk.request(:post, path, body, nil) end |
#provision_free_developer_account(body:) ⇒ Object
Creates a new account for a developer, sending an email with information on how to access the API.
50 51 52 53 |
# File 'lib/lockstep_sdk/clients/provisioning_client.rb', line 50 def provision_free_developer_account(body:) path = "/api/v1/Provisioning/free-account" @lockstepsdk.request(:post, path, body, nil) end |
#provision_user_account(body:) ⇒ Object
Creates a new User or updates an Invited user based on metadata provided by the User during the onboarding process
33 34 35 36 |
# File 'lib/lockstep_sdk/clients/provisioning_client.rb', line 33 def provision_user_account(body:) path = "/api/v1/Provisioning" @lockstepsdk.request(:post, path, body, nil) end |