Class: Twilio::REST::Conversations::V2::ConversationList::CreateConversationWithConfigRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/conversations/v2/conversation.rb,
lib/twilio-ruby/rest/conversations/v2/conversation.rb,
lib/twilio-ruby/rest/conversations/v2/conversation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ CreateConversationWithConfigRequest

Returns a new instance of CreateConversationWithConfigRequest.



96
97
98
99
100
101
102
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 96

def initialize(payload)
        @configuration_id = payload["configuration_id"]
        @name = payload["name"]
        @configuration = payload["configuration"]
        @participants = payload["participants"]
        @metadata = payload["metadata"]
end

Instance Attribute Details

#configuration ⇒ Object

Parameters:

  • : (configuration_id) —

    [String] The ID of an existing configuration. Omit it to define the configuration inline in configuration.

  • : (name) —

    [String] The name of the conversation.

  • : (configuration) —

    [ConversationList.CreateConversationWithConfigRequestConfiguration]

  • : (participants) —

    [Array<ConversationList.CreateConversationWithConfigRequestParticipants>] Optional list of Participants to create with the Conversation.

  • : (metadata) —

    [Hash<String, String>] Optional customer-managed key-value metadata for this Conversation. Maximum 8 entries; keys up to 128 characters allowing alphanumeric characters, periods, underscores, and dashes; values up to 512 characters.



95
96
97
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 95

def configuration
  @configuration
end

#configuration_id ⇒ Object

Parameters:

  • : (configuration_id) —

    [String] The ID of an existing configuration. Omit it to define the configuration inline in configuration.

  • : (name) —

    [String] The name of the conversation.

  • : (configuration) —

    [ConversationList.CreateConversationWithConfigRequestConfiguration]

  • : (participants) —

    [Array<ConversationList.CreateConversationWithConfigRequestParticipants>] Optional list of Participants to create with the Conversation.

  • : (metadata) —

    [Hash<String, String>] Optional customer-managed key-value metadata for this Conversation. Maximum 8 entries; keys up to 128 characters allowing alphanumeric characters, periods, underscores, and dashes; values up to 512 characters.



95
96
97
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 95

def configuration_id
  @configuration_id
end

#metadata ⇒ Object

Parameters:

  • : (configuration_id) —

    [String] The ID of an existing configuration. Omit it to define the configuration inline in configuration.

  • : (name) —

    [String] The name of the conversation.

  • : (configuration) —

    [ConversationList.CreateConversationWithConfigRequestConfiguration]

  • : (participants) —

    [Array<ConversationList.CreateConversationWithConfigRequestParticipants>] Optional list of Participants to create with the Conversation.

  • : (metadata) —

    [Hash<String, String>] Optional customer-managed key-value metadata for this Conversation. Maximum 8 entries; keys up to 128 characters allowing alphanumeric characters, periods, underscores, and dashes; values up to 512 characters.



95
96
97
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 95

def 
  @metadata
end

#name ⇒ Object

Parameters:

  • : (configuration_id) —

    [String] The ID of an existing configuration. Omit it to define the configuration inline in configuration.

  • : (name) —

    [String] The name of the conversation.

  • : (configuration) —

    [ConversationList.CreateConversationWithConfigRequestConfiguration]

  • : (participants) —

    [Array<ConversationList.CreateConversationWithConfigRequestParticipants>] Optional list of Participants to create with the Conversation.

  • : (metadata) —

    [Hash<String, String>] Optional customer-managed key-value metadata for this Conversation. Maximum 8 entries; keys up to 128 characters allowing alphanumeric characters, periods, underscores, and dashes; values up to 512 characters.



95
96
97
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 95

def name
  @name
end

#participants ⇒ Object

Parameters:

  • : (configuration_id) —

    [String] The ID of an existing configuration. Omit it to define the configuration inline in configuration.

  • : (name) —

    [String] The name of the conversation.

  • : (configuration) —

    [ConversationList.CreateConversationWithConfigRequestConfiguration]

  • : (participants) —

    [Array<ConversationList.CreateConversationWithConfigRequestParticipants>] Optional list of Participants to create with the Conversation.

  • : (metadata) —

    [Hash<String, String>] Optional customer-managed key-value metadata for this Conversation. Maximum 8 entries; keys up to 128 characters allowing alphanumeric characters, periods, underscores, and dashes; values up to 512 characters.



95
96
97
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 95

def participants
  @participants
end

Instance Method Details

#to_json(options = {}) ⇒ Object



103
104
105
106
107
108
109
110
111
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 103

def to_json(options = {})
{
        "configurationId": @configuration_id,
        "name": @name,
        "configuration": @configuration,
        "participants": @participants,
        "metadata": @metadata,
}.to_json(options)
end