class Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesAttribution

Model object.

Attributes

_type[RW]
must_be_close_to_content[RW]

@return [Boolean] A Boolean value that determines whether the contents of the rule must be placed in close proximity to the field that the rule applies to. If true, the contents must be placed in close proximity. If false, or this field does not exist, the contents may be placed at the caller's discretion.

Private Class Methods

mapper() click to toggle source

Mapper for ContractualRulesAttribution class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/1.0/generated/azure_cognitiveservices_entitysearch/models/contractual_rules_attribution.rb, line 35
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ContractualRules/Attribution',
    type: {
      name: 'Composite',
      class_name: 'ContractualRulesAttribution',
      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'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/1.0/generated/azure_cognitiveservices_entitysearch/models/contractual_rules_attribution.rb, line 17
def initialize
  @_type = "ContractualRules/Attribution"
end