class Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction

A restriction in the App Restriction Schema represents a piece of configuration that may be pre-applied.

Attributes

default_value[RW]

A typed value for the restriction. Corresponds to the JSON property `defaultValue` @return [Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestrictionRestrictionValue]

description[RW]

A longer description of the restriction, giving more detail of what it affects. Corresponds to the JSON property `description` @return [String]

entry[RW]

For choice or multiselect restrictions, the list of possible entries' human- readable names. Corresponds to the JSON property `entry` @return [Array<String>]

entry_value[RW]

For choice or multiselect restrictions, the list of possible entries' machine- readable values. Corresponds to the JSON property `entryValue` @return [Array<String>]

key[RW]

The unique key that the product uses to identify the restriction, e.g. “com. google.android.gm.fieldname”. Corresponds to the JSON property `key` @return [String]

restriction_type[RW]

The type of the restriction. Corresponds to the JSON property `restrictionType` @return [String]

title[RW]

The name of the restriction. Corresponds to the JSON property `title` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/androidenterprise_v1/classes.rb, line 100
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)
  @restriction_type = args[:restriction_type] if args.key?(:restriction_type)
  @title = args[:title] if args.key?(:title)
end