class Google::Apis::AndroidenterpriseV1::ManagedProperty

A managed property of a managed configuration. The property must match one of the properties in the app restrictions schema of the product. Exactly one of the value fields must be populated, and it must match the property's type in the app restrictions schema.

Attributes

key[RW]

The unique key that identifies the property. Corresponds to the JSON property `key` @return [String]

value_bool[RW]

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

value_bool?[RW]

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

value_bundle[RW]

A bundle of managed properties. Corresponds to the JSON property `valueBundle` @return [Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle]

value_bundle_array[RW]

The list of bundles of properties - this will only be present if type of the property is bundle_array. Corresponds to the JSON property `valueBundleArray` @return [Array<Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle>]

value_integer[RW]

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

value_string[RW]

The string value - this will only be present if type of the property is string, choice or hidden. Corresponds to the JSON property `valueString` @return [String]

value_string_array[RW]

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

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/androidenterprise_v1/classes.rb, line 1512
def update!(**args)
  @key = args[:key] if args.key?(:key)
  @value_bool = args[:value_bool] if args.key?(:value_bool)
  @value_bundle = args[:value_bundle] if args.key?(:value_bundle)
  @value_bundle_array = args[:value_bundle_array] if args.key?(:value_bundle_array)
  @value_integer = args[:value_integer] if args.key?(:value_integer)
  @value_string = args[:value_string] if args.key?(:value_string)
  @value_string_array = args[:value_string_array] if args.key?(:value_string_array)
end