class Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesTextAttribution
Defines a contractual rule for text attribution.
Attributes
_type[RW]
optional_for_list_display[RW]
@return [Boolean] Indicates whether this provider's attribution is optional.
text[RW]
@return [String] The attribution text. Text attribution applies to the entity as a whole and should be displayed immediately following the entity presentation. If there are multiple text or link attribution rules that do not specify a target, you should concatenate them and display them using a “Data from:” label.
Private Class Methods
mapper()
click to toggle source
Mapper for ContractualRulesTextAttribution
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/1.0/generated/azure_cognitiveservices_entitysearch/models/contractual_rules_text_attribution.rb, line 38 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ContractualRules/TextAttribution', type: { name: 'Composite', class_name: 'ContractualRulesTextAttribution', model_properties: { target_property_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'targetPropertyName', type: { name: 'String' } }, _type: { client_side_validation: true, required: true, serialized_name: '_type', type: { name: 'String' } }, must_be_close_to_content: { client_side_validation: true, required: false, read_only: true, serialized_name: 'mustBeCloseToContent', type: { name: 'Boolean' } }, text: { client_side_validation: true, required: true, serialized_name: 'text', type: { name: 'String' } }, optional_for_list_display: { client_side_validation: true, required: false, read_only: true, serialized_name: 'optionalForListDisplay', type: { name: 'Boolean' } } } } } end
new()
click to toggle source
# File lib/1.0/generated/azure_cognitiveservices_entitysearch/models/contractual_rules_text_attribution.rb, line 16 def initialize @_type = "ContractualRules/TextAttribution" end