Class: ProvisioningClient

Inherits:
Object
  • Object
show all
Defined in:
lib/lockstep_sdk/clients/provisioning.rb

Instance Method Summary collapse

Constructor Details

#initialize(lockstepsdk) ⇒ ProvisioningClient

Initialize the ProvisioningClient class with a lockstepsdk instance.

Parameters:

  • lockstepsdk (LockstepApi)

    The Lockstep API client object for this connection



24
25
26
# File 'lib/lockstep_sdk/clients/provisioning.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'

Parameters:

  • body (ProvisioningFinalizeRequestModel)

    Represents a User and their related metadata



40
41
42
43
# File 'lib/lockstep_sdk/clients/provisioning.rb', line 40

def (body:)
    path = "/api/v1/Provisioning/finalize"
    @lockstepsdk.request(:post, path, body, nil)
end

#provision_free_developer_account(body:) ⇒ Object



45
46
47
48
# File 'lib/lockstep_sdk/clients/provisioning.rb', line 45

def (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

Parameters:

  • body (ProvisioningModel)

    Represents a User and their related metadata



32
33
34
35
# File 'lib/lockstep_sdk/clients/provisioning.rb', line 32

def (body:)
    path = "/api/v1/Provisioning"
    @lockstepsdk.request(:post, path, body, nil)
end