class Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestrictionRestrictionValue

A typed value for the restriction.

Attributes

type[RW]

The type of the value being provided. Corresponds to the JSON property `type` @return [String]

value_bool[RW]

The boolean value - this will only be present if type is bool. Corresponds to the JSON property `valueBool` @return [Boolean]

value_bool?[RW]

The boolean value - this will only be present if type is bool. Corresponds to the JSON property `valueBool` @return [Boolean]

value_integer[RW]

The integer value - this will only be present if type is integer. Corresponds to the JSON property `valueInteger` @return [Fixnum]

value_multiselect[RW]

The list of string values - this will only be present if type is multiselect. Corresponds to the JSON property `valueMultiselect` @return [Array<String>]

value_string[RW]

The string value - this will be present for types string, choice and hidden. Corresponds to the JSON property `valueString` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/androidenterprise_v1/classes.rb, line 146
def update!(**args)
  @type = args[:type] if args.key?(:type)
  @value_bool = args[:value_bool] if args.key?(:value_bool)
  @value_integer = args[:value_integer] if args.key?(:value_integer)
  @value_multiselect = args[:value_multiselect] if args.key?(:value_multiselect)
  @value_string = args[:value_string] if args.key?(:value_string)
end