Class: Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestrictionRestrictionValue

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/androidenterprise_v1/classes.rb,
generated/google/apis/androidenterprise_v1/representations.rb,
generated/google/apis/androidenterprise_v1/representations.rb

Overview

A typed value for the restriction.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AppRestrictionsSchemaRestrictionRestrictionValue

Returns a new instance of AppRestrictionsSchemaRestrictionRestrictionValue.



389
390
391
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 389

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#typeString

The type of the value being provided. Corresponds to the JSON property type

Returns:

  • (String)


366
367
368
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 366

def type
  @type
end

#value_boolBoolean Also known as: value_bool?

The boolean value - this will only be present if type is bool. Corresponds to the JSON property valueBool

Returns:

  • (Boolean)


371
372
373
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 371

def value_bool
  @value_bool
end

#value_integerFixnum

The integer value - this will only be present if type is integer. Corresponds to the JSON property valueInteger

Returns:

  • (Fixnum)


377
378
379
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 377

def value_integer
  @value_integer
end

#value_multiselectArray<String>

The list of string values - this will only be present if type is multiselect. Corresponds to the JSON property valueMultiselect

Returns:

  • (Array<String>)


382
383
384
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 382

def value_multiselect
  @value_multiselect
end

#value_stringString

The string value - this will be present for types string, choice and hidden. Corresponds to the JSON property valueString

Returns:

  • (String)


387
388
389
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 387

def value_string
  @value_string
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



394
395
396
397
398
399
400
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 394

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