Class: Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceUpdateKnowledgeRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/assistants/v1/knowledge.rb,
lib/twilio-ruby/rest/assistants/v1/knowledge.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ AssistantsV1ServiceUpdateKnowledgeRequest

Returns a new instance of AssistantsV1ServiceUpdateKnowledgeRequest.



82
83
84
85
86
87
88
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 82

def initialize(payload)
        @description = payload["description"]
        @knowledge_source_details = payload["knowledge_source_details"]
        @name = payload["name"]
        @policy = payload["policy"]
        @type = payload["type"]
end

Instance Attribute Details

#descriptionObject

Parameters:

  • : (description)
    String

    The description of the knowledge source.

  • : (knowledge_source_details)
    Hash

    The details of the knowledge source based on the type.

  • : (name)
    String

    The name of the knowledge source.

  • : (policy)
    KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
  • : (type)
    String

    The description of the knowledge source.



81
82
83
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 81

def description
  @description
end

#knowledge_source_detailsObject

Parameters:

  • : (description)
    String

    The description of the knowledge source.

  • : (knowledge_source_details)
    Hash

    The details of the knowledge source based on the type.

  • : (name)
    String

    The name of the knowledge source.

  • : (policy)
    KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
  • : (type)
    String

    The description of the knowledge source.



81
82
83
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 81

def knowledge_source_details
  @knowledge_source_details
end

#nameObject

Parameters:

  • : (description)
    String

    The description of the knowledge source.

  • : (knowledge_source_details)
    Hash

    The details of the knowledge source based on the type.

  • : (name)
    String

    The name of the knowledge source.

  • : (policy)
    KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
  • : (type)
    String

    The description of the knowledge source.



81
82
83
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 81

def name
  @name
end

#policyObject

Parameters:

  • : (description)
    String

    The description of the knowledge source.

  • : (knowledge_source_details)
    Hash

    The details of the knowledge source based on the type.

  • : (name)
    String

    The name of the knowledge source.

  • : (policy)
    KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
  • : (type)
    String

    The description of the knowledge source.



81
82
83
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 81

def policy
  @policy
end

#typeObject

Parameters:

  • : (description)
    String

    The description of the knowledge source.

  • : (knowledge_source_details)
    Hash

    The details of the knowledge source based on the type.

  • : (name)
    String

    The name of the knowledge source.

  • : (policy)
    KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
  • : (type)
    String

    The description of the knowledge source.



81
82
83
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 81

def type
  @type
end

Instance Method Details

#to_json(options = {}) ⇒ Object



89
90
91
92
93
94
95
96
97
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 89

def to_json(options = {})
{
        "description": @description,
        "knowledge_source_details": @knowledge_source_details,
        "name": @name,
        "policy": @policy,
        "type": @type,
}.to_json(options)
end