Class: Google::Apis::AndroidenterpriseV1::ManagedProperty
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::ManagedProperty
- 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 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.
Instance Attribute Summary collapse
-
#key ⇒ String
The unique key that identifies the property.
-
#value_bool ⇒ Boolean
(also: #value_bool?)
The boolean value - this will only be present if type of the property is bool.
-
#value_bundle ⇒ Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle
A bundle of managed properties.
-
#value_bundle_array ⇒ Array<Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle>
The list of bundles of properties - this will only be present if type of the property is bundle_array.
-
#value_integer ⇒ Fixnum
The integer value - this will only be present if type of the property is integer.
-
#value_string ⇒ String
The string value - this will only be present if type of the property is string, choice or hidden.
-
#value_string_array ⇒ Array<String>
The list of string values - this will only be present if type of the property is multiselect.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ManagedProperty
constructor
A new instance of ManagedProperty.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ManagedProperty
Returns a new instance of ManagedProperty.
1233 1234 1235 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1233 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
The unique key that identifies the property.
Corresponds to the JSON property key
1196 1197 1198 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1196 def key @key end |
#value_bool ⇒ Boolean Also known as: value_bool?
The boolean value - this will only be present if type of the property is bool.
Corresponds to the JSON property valueBool
1201 1202 1203 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1201 def value_bool @value_bool end |
#value_bundle ⇒ Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle
A bundle of managed properties.
Corresponds to the JSON property valueBundle
1207 1208 1209 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1207 def value_bundle @value_bundle end |
#value_bundle_array ⇒ Array<Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle>
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
1213 1214 1215 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1213 def value_bundle_array @value_bundle_array end |
#value_integer ⇒ Fixnum
The integer value - this will only be present if type of the property is
integer.
Corresponds to the JSON property valueInteger
1219 1220 1221 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1219 def value_integer @value_integer end |
#value_string ⇒ String
The string value - this will only be present if type of the property is string,
choice or hidden.
Corresponds to the JSON property valueString
1225 1226 1227 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1225 def value_string @value_string end |
#value_string_array ⇒ Array<String>
The list of string values - this will only be present if type of the property
is multiselect.
Corresponds to the JSON property valueStringArray
1231 1232 1233 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1231 def value_string_array @value_string_array end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1238 1239 1240 1241 1242 1243 1244 1245 1246 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1238 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 |