Class: Clerk::Models::Components::SCIMDirectory

Inherits:
Object
  • Object
show all
Includes:
Crystalline::MetadataFields
Defined in:
lib/clerk/models/components/scimdirectory.rb

Overview

A SCIM directory configuration for provisioning users via SCIM protocol.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(object:, id:, name:, endpoint_url:, provider:, enabled:, group_role_mapping_enabled:, attribute_mapping:, created_at:, updated_at:, custom_attributes: nil, enterprise_connection_id: nil, api_key: nil) ⇒ SCIMDirectory

Returns a new instance of SCIMDirectory.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/clerk/models/components/scimdirectory.rb', line 43

def initialize(object:, id:, name:, endpoint_url:, provider:, enabled:, group_role_mapping_enabled:, attribute_mapping:, created_at:, updated_at:, custom_attributes: nil, enterprise_connection_id: nil, api_key: nil)
  @object = object
  @id = id
  @name = name
  @endpoint_url = endpoint_url
  @provider = provider
  @enabled = enabled
  @group_role_mapping_enabled = group_role_mapping_enabled
  @attribute_mapping = attribute_mapping
  @created_at = created_at
  @updated_at = updated_at
  @custom_attributes = custom_attributes
  @enterprise_connection_id = enterprise_connection_id
  @api_key = api_key
end

Instance Method Details

#==(other) ⇒ Object



60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/clerk/models/components/scimdirectory.rb', line 60

def ==(other)
  return false unless other.is_a? self.class
  return false unless @object == other.object
  return false unless @id == other.id
  return false unless @name == other.name
  return false unless @endpoint_url == other.endpoint_url
  return false unless @provider == other.provider
  return false unless @enabled == other.enabled
  return false unless @group_role_mapping_enabled == other.group_role_mapping_enabled
  return false unless @attribute_mapping == other.attribute_mapping
  return false unless @created_at == other.created_at
  return false unless @updated_at == other.updated_at
  return false unless @custom_attributes == other.custom_attributes
  return false unless @enterprise_connection_id == other.enterprise_connection_id
  return false unless @api_key == other.api_key
  true
end