class Google::Apis::SheetsV4::DataValidationRule

A data validation rule.

Attributes

condition[RW]

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]

input_message[RW]

A message to show the user when adding data to the cell. Corresponds to the JSON property `inputMessage` @return [String]

show_custom_ui[RW]

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]

show_custom_ui?[RW]

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]

strict[RW]

True if invalid data should be rejected. Corresponds to the JSON property `strict` @return [Boolean]

strict?[RW]

True if invalid data should be rejected. Corresponds to the JSON property `strict` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sheets_v4/classes.rb, line 4343
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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