Class: Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestrictionRestrictionValue
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestrictionRestrictionValue
 
 
- 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
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The type of the value being provided.
 - 
  
    
      #value_bool  ⇒ Boolean 
    
    
      (also: #value_bool?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The boolean value - this will only be present if type is bool.
 - 
  
    
      #value_integer  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The integer value - this will only be present if type is integer.
 - 
  
    
      #value_multiselect  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The list of string values - this will only be present if type is multiselect.
 - 
  
    
      #value_string  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The string value - this will be present for types string, choice and hidden.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AppRestrictionsSchemaRestrictionRestrictionValue 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of AppRestrictionsSchemaRestrictionRestrictionValue.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AppRestrictionsSchemaRestrictionRestrictionValue
Returns a new instance of AppRestrictionsSchemaRestrictionRestrictionValue
      387 388 389  | 
    
      # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 387 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#type ⇒ String
The type of the value being provided.
Corresponds to the JSON property type
      364 365 366  | 
    
      # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 364 def type @type end  | 
  
#value_bool ⇒ Boolean Also known as: value_bool?
The boolean value - this will only be present if type is bool.
Corresponds to the JSON property valueBool
      369 370 371  | 
    
      # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 369 def value_bool @value_bool end  | 
  
#value_integer ⇒ Fixnum
The integer value - this will only be present if type is integer.
Corresponds to the JSON property valueInteger
      375 376 377  | 
    
      # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 375 def value_integer @value_integer end  | 
  
#value_multiselect ⇒ Array<String>
The list of string values - this will only be present if type is multiselect.
Corresponds to the JSON property valueMultiselect
      380 381 382  | 
    
      # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 380 def value_multiselect @value_multiselect end  | 
  
#value_string ⇒ String
The string value - this will be present for types string, choice and hidden.
Corresponds to the JSON property valueString
      385 386 387  | 
    
      # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 385 def value_string @value_string end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      392 393 394 395 396 397 398  | 
    
      # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 392 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  |