Class: WorkOS::DataIntegrationsListResponseDataConnectedAccount

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/pipes/data_integrations_list_response_data_connected_account.rb

Constant Summary collapse

HASH_ATTRS =
{
  object: :object,
  id: :id,
  connection_role: :connection_role,
  account_identifier: :account_identifier,
  account_display_name: :account_display_name,
  user_id: :user_id,
  organization_id: :organization_id,
  scopes: :scopes,
  auth_method: :auth_method,
  api_key_last_4: :api_key_last_4,
  client_id: :client_id,
  client_secret_last_4: :client_secret_last_4,
  config: :config,
  state: :state,
  established_by_user_id: :established_by_user_id,
  state_reason: :state_reason,
  created_at: :created_at,
  updated_at: :updated_at,
  warnings: :warnings,
  userlandUserId: :userland_user_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DataIntegrationsListResponseDataConnectedAccount

Returns a new instance of DataIntegrationsListResponseDataConnectedAccount.



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 61

def initialize(json)
  hash = self.class.normalize(json)
  @object = hash[:object]
  @id = hash[:id]
  @connection_role = hash[:connection_role]
  @account_identifier = hash[:account_identifier]
  @account_display_name = hash[:account_display_name]
  @user_id = hash[:user_id]
  @organization_id = hash[:organization_id]
  @scopes = hash[:scopes] || []
  @auth_method = hash[:auth_method]
  @api_key_last_4 = hash[:api_key_last_4]
  @client_id = hash[:client_id]
  @client_secret_last_4 = hash[:client_secret_last_4]
  @config = hash[:config] || {}
  @state = hash[:state]
  @established_by_user_id = hash[:established_by_user_id]
  @state_reason = hash[:state_reason]
  @created_at = hash[:created_at]
  @updated_at = hash[:updated_at]
  @warnings = (hash[:warnings] || []).map { |item| item ? WorkOS::DataIntegrationsListResponseDataConnectedAccountWarning.new(item) : nil }
  @userland_user_id = hash[:userlandUserId]
end

Instance Attribute Details

#account_display_name ⇒ Object

Returns the value of attribute account_display_name.



33
34
35
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 33

def 
  @account_display_name
end

#account_identifier ⇒ Object

Returns the value of attribute account_identifier.



33
34
35
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 33

def 
  @account_identifier
end

#api_key_last_4 ⇒ Object

Returns the value of attribute api_key_last_4.



33
34
35
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 33

def api_key_last_4
  @api_key_last_4
end

#auth_method ⇒ Object

Returns the value of attribute auth_method.



33
34
35
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 33

def auth_method
  @auth_method
end

#client_id ⇒ Object

Returns the value of attribute client_id.



33
34
35
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 33

def client_id
  @client_id
end

#client_secret_last_4 ⇒ Object

Returns the value of attribute client_secret_last_4.



33
34
35
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 33

def client_secret_last_4
  @client_secret_last_4
end

#config ⇒ Object

Returns the value of attribute config.



33
34
35
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 33

def config
  @config
end

#connection_role ⇒ Object

Returns the value of attribute connection_role.



33
34
35
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 33

def connection_role
  @connection_role
end

#created_at ⇒ Object

Returns the value of attribute created_at.



33
34
35
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 33

def created_at
  @created_at
end

#established_by_user_id ⇒ Object

Returns the value of attribute established_by_user_id.



33
34
35
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 33

def established_by_user_id
  @established_by_user_id
end

#id ⇒ Object

Returns the value of attribute id.



33
34
35
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 33

def id
  @id
end

#object ⇒ Object

Returns the value of attribute object.



33
34
35
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 33

def object
  @object
end

#organization_id ⇒ Object

Returns the value of attribute organization_id.



33
34
35
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 33

def organization_id
  @organization_id
end

#scopes ⇒ Object

Returns the value of attribute scopes.



33
34
35
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 33

def scopes
  @scopes
end

#state ⇒ Object

Returns the value of attribute state.



33
34
35
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 33

def state
  @state
end

#state_reason ⇒ Object

Returns the value of attribute state_reason.



33
34
35
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 33

def state_reason
  @state_reason
end

#updated_at ⇒ Object

Returns the value of attribute updated_at.



33
34
35
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 33

def updated_at
  @updated_at
end

#user_id ⇒ Object

Returns the value of attribute user_id.



33
34
35
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 33

def user_id
  @user_id
end

#userland_user_id ⇒ Object

Deprecated.

Use user_id instead.



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 33

attr_accessor \
:object,
:id,
:connection_role,
:account_identifier,
:account_display_name,
:user_id,
:organization_id,
:scopes,
:auth_method,
:api_key_last_4,
:client_id,
:client_secret_last_4,
:config,
:state,
:established_by_user_id,
:state_reason,
:created_at,
:updated_at,
:warnings

#warnings ⇒ Object

Returns the value of attribute warnings.



33
34
35
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 33

def warnings
  @warnings
end