class Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateKbOperationDTO
Contains list of QnAs to be updated
Attributes
@return [UpdateKbOperationDTOAdd] An instance of CreateKbInputDTO
for add operation
@return [String] Text string to be used as the answer in any Q-A which has no extracted answer from the document but has a hierarchy. Required when EnableHierarchicalExtraction field is set to True.
@return [UpdateKbOperationDTODelete] An instance of DeleteKbContentsDTO
for delete Operation
@return [Boolean] Enable hierarchical extraction of Q-A from files and urls. The value set during KB creation will be used if this field is not present.
@return [UpdateKbOperationDTOUpdate] An instance of UpdateKbContentsDTO
for Update Operation
Private Class Methods
Mapper for UpdateKbOperationDTO
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_operation_dto.rb, line 42 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'UpdateKbOperationDTO', type: { name: 'Composite', class_name: 'UpdateKbOperationDTO', model_properties: { add: { client_side_validation: true, required: false, serialized_name: 'add', type: { name: 'Composite', class_name: 'UpdateKbOperationDTOAdd' } }, delete: { client_side_validation: true, required: false, serialized_name: 'delete', type: { name: 'Composite', class_name: 'UpdateKbOperationDTODelete' } }, update: { client_side_validation: true, required: false, serialized_name: 'update', type: { name: 'Composite', class_name: 'UpdateKbOperationDTOUpdate' } }, enable_hierarchical_extraction: { client_side_validation: true, required: false, serialized_name: 'enableHierarchicalExtraction', type: { name: 'Boolean' } }, default_answer_used_for_extraction: { client_side_validation: true, required: false, serialized_name: 'defaultAnswerUsedForExtraction', constraints: { MaxLength: 300, MinLength: 1 }, type: { name: 'String' } } } } } end