Sha256: 172c60d24397d81345760aa8ae333a83cb852746e5453a3e32a1f24853f56fa0

Contents?: true

Size: 1.57 KB

Versions: 2

Compression:

Stored size: 1.57 KB

Contents

# frozen_string_literal: true

module Seam
  module Clients
    class UserIdentitiesEnrollmentAutomations < BaseClient
      def delete(enrollment_automation_id:)
        request_seam(
          :post,
          "/user_identities/enrollment_automations/delete",
          body: {enrollment_automation_id: enrollment_automation_id}.compact
        )

        nil
      end

      def get(enrollment_automation_id:)
        request_seam_object(
          :post,
          "/user_identities/enrollment_automations/get",
          Seam::EnrollmentAutomation,
          "enrollment_automation",
          body: {enrollment_automation_id: enrollment_automation_id}.compact
        )
      end

      def launch(credential_manager_acs_system_id:, user_identity_id:, acs_credential_pool_id: nil, create_credential_manager_user: nil, credential_manager_acs_user_id: nil)
        request_seam(
          :post,
          "/user_identities/enrollment_automations/launch",
          body: {credential_manager_acs_system_id: credential_manager_acs_system_id, user_identity_id: user_identity_id, acs_credential_pool_id: acs_credential_pool_id, create_credential_manager_user: create_credential_manager_user, credential_manager_acs_user_id: credential_manager_acs_user_id}.compact
        )

        nil
      end

      def list(user_identity_id:)
        request_seam_object(
          :post,
          "/user_identities/enrollment_automations/list",
          Seam::EnrollmentAutomation,
          "enrollment_automations",
          body: {user_identity_id: user_identity_id}.compact
        )
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
seam-2.0.0a2 lib/seam/clients/user_identities_enrollment_automations.rb
seam-2.0.0.prerelease.1 lib/seam/clients/user_identities_enrollment_automations.rb