class Google::Apis::SheetsV4::DataValidationRule
A data validation rule.
Attributes
A condition that can evaluate to true or false. BooleanConditions are used by conditional formatting, data validation, and the criteria in filters. Corresponds to the JSON property `condition` @return [Google::Apis::SheetsV4::BooleanCondition]
A message to show the user when adding data to the cell. Corresponds to the JSON property `inputMessage` @return [String]
True if the UI should be customized based on the kind of condition. If true, “ List” conditions will show a dropdown. Corresponds to the JSON property `showCustomUi` @return [Boolean]
True if the UI should be customized based on the kind of condition. If true, “ List” conditions will show a dropdown. Corresponds to the JSON property `showCustomUi` @return [Boolean]
True if invalid data should be rejected. Corresponds to the JSON property `strict` @return [Boolean]
True if invalid data should be rejected. Corresponds to the JSON property `strict` @return [Boolean]
Public Class Methods
# File lib/google/apis/sheets_v4/classes.rb, line 4343 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/sheets_v4/classes.rb, line 4348 def update!(**args) @condition = args[:condition] if args.key?(:condition) @input_message = args[:input_message] if args.key?(:input_message) @show_custom_ui = args[:show_custom_ui] if args.key?(:show_custom_ui) @strict = args[:strict] if args.key?(:strict) end