Class: WorkOS::DataIntegrationsListResponseData

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

Constant Summary collapse

HASH_ATTRS =
{
  object: :object,
  id: :id,
  name: :name,
  description: :description,
  slug: :slug,
  integration_type: :integration_type,
  credentials_type: :credentials_type,
  scopes: :scopes,
  auth_methods: :auth_methods,
  connection_owner: :connection_owner,
  ownership: :ownership,
  created_at: :created_at,
  updated_at: :updated_at,
  connected_account: :connected_account,
  connected_accounts: :connected_accounts
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DataIntegrationsListResponseData

Returns a new instance of DataIntegrationsListResponseData.



51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 51

def initialize(json)
  hash = self.class.normalize(json)
  @object = hash[:object]
  @id = hash[:id]
  @name = hash[:name]
  @description = hash[:description]
  @slug = hash[:slug]
  @integration_type = hash[:integration_type]
  @credentials_type = hash[:credentials_type]
  @scopes = hash[:scopes] || []
  @auth_methods = hash[:auth_methods] || []
  @connection_owner = hash[:connection_owner]
  @ownership = hash[:ownership]
  @created_at = hash[:created_at]
  @updated_at = hash[:updated_at]
  @connected_account = hash[:connected_account] ? WorkOS::DataIntegrationsListResponseDataConnectedAccount.new(hash[:connected_account]) : nil
  @connected_accounts = (hash[:connected_accounts] || []).map { |item| item ? WorkOS::DataIntegrationsListResponseDataConnectedAccount.new(item) : nil }
end

Instance Attribute Details

#auth_methodsObject

Returns the value of attribute auth_methods.



28
29
30
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28

def auth_methods
  @auth_methods
end

#connected_accountObject

Returns the value of attribute connected_account.



28
29
30
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28

def 
  @connected_account
end

#connected_accountsObject

Returns the value of attribute connected_accounts.



28
29
30
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28

def connected_accounts
  @connected_accounts
end

#connection_ownerObject

Returns the value of attribute connection_owner.



28
29
30
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28

def connection_owner
  @connection_owner
end

#created_atObject

Returns the value of attribute created_at.



28
29
30
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28

def created_at
  @created_at
end

#credentials_typeObject

Returns the value of attribute credentials_type.



28
29
30
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28

def credentials_type
  @credentials_type
end

#descriptionObject

Returns the value of attribute description.



28
29
30
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28

def description
  @description
end

#idObject

Returns the value of attribute id.



28
29
30
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28

def id
  @id
end

#integration_typeObject

Returns the value of attribute integration_type.



28
29
30
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28

def integration_type
  @integration_type
end

#nameObject

Returns the value of attribute name.



28
29
30
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28

def name
  @name
end

#objectObject

Returns the value of attribute object.



28
29
30
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28

def object
  @object
end

#ownershipObject

Deprecated.

Use connection_owner instead. Legacy spelling of the same value: userland_user corresponds to connection_owner: "user" and organization to connection_owner: "organization".



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28

attr_accessor \
:object,
:id,
:name,
:description,
:slug,
:integration_type,
:credentials_type,
:scopes,
:auth_methods,
:connection_owner,
:created_at,
:updated_at,
:connected_account,
:connected_accounts

#scopesObject

Returns the value of attribute scopes.



28
29
30
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28

def scopes
  @scopes
end

#slugObject

Returns the value of attribute slug.



28
29
30
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28

def slug
  @slug
end

#updated_atObject

Returns the value of attribute updated_at.



28
29
30
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28

def updated_at
  @updated_at
end