Class: Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction
 
- 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 restriction in the App Restriction Schema represents a piece of configuration that may be pre-applied.
Instance Attribute Summary collapse
- 
  
    
      #default_value  ⇒ Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestrictionRestrictionValue 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A typed value for the restriction. 
- 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A longer description of the restriction, giving more detail of what it affects. 
- 
  
    
      #entry  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    For choice or multiselect restrictions, the list of possible entries' human- readable names. 
- 
  
    
      #entry_value  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    For choice or multiselect restrictions, the list of possible entries' machine- readable values. 
- 
  
    
      #key  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The unique key that the product uses to identify the restriction, e.g. 
- 
  
    
      #nested_restriction  ⇒ Array<Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    For bundle or bundleArray restrictions, the list of nested restrictions. 
- 
  
    
      #restriction_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The type of the restriction. 
- 
  
    
      #title  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of the restriction. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AppRestrictionsSchemaRestriction 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of AppRestrictionsSchemaRestriction. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AppRestrictionsSchemaRestriction
Returns a new instance of AppRestrictionsSchemaRestriction
| 236 237 238 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 236 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#default_value ⇒ Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestrictionRestrictionValue
A typed value for the restriction.
Corresponds to the JSON property defaultValue
| 192 193 194 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 192 def default_value @default_value end | 
#description ⇒ String
A longer description of the restriction, giving more detail of what it affects.
Corresponds to the JSON property description
| 197 198 199 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 197 def description @description end | 
#entry ⇒ Array<String>
For choice or multiselect restrictions, the list of possible entries' human-
readable names.
Corresponds to the JSON property entry
| 203 204 205 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 203 def entry @entry end | 
#entry_value ⇒ Array<String>
For choice or multiselect restrictions, the list of possible entries' machine-
readable values. These values should be used in the configuration, either as a
single string value for a choice restriction or in a stringArray for a
multiselect restriction.
Corresponds to the JSON property entryValue
| 211 212 213 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 211 def entry_value @entry_value end | 
#key ⇒ String
The unique key that the product uses to identify the restriction, e.g. "com.
google.android.gm.fieldname".
Corresponds to the JSON property key
| 217 218 219 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 217 def key @key end | 
#nested_restriction ⇒ Array<Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction>
For bundle or bundleArray restrictions, the list of nested restrictions. A
bundle restriction is always nested within a bundleArray restriction, and a
bundleArray restriction is at most two levels deep.
Corresponds to the JSON property nestedRestriction
| 224 225 226 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 224 def nested_restriction @nested_restriction end | 
#restriction_type ⇒ String
The type of the restriction.
Corresponds to the JSON property restrictionType
| 229 230 231 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 229 def restriction_type @restriction_type end | 
#title ⇒ String
The name of the restriction.
Corresponds to the JSON property title
| 234 235 236 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 234 def title @title end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 241 242 243 244 245 246 247 248 249 250 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 241 def update!(**args) @default_value = args[:default_value] if args.key?(:default_value) @description = args[:description] if args.key?(:description) @entry = args[:entry] if args.key?(:entry) @entry_value = args[:entry_value] if args.key?(:entry_value) @key = args[:key] if args.key?(:key) @nested_restriction = args[:nested_restriction] if args.key?(:nested_restriction) @restriction_type = args[:restriction_type] if args.key?(:restriction_type) @title = args[:title] if args.key?(:title) end |