Class: Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema

Inherits:
Object
  • Object
show all
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

Represents the list of app restrictions available to be pre-configured for the product.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppRestrictionsSchema

Returns a new instance of AppRestrictionsSchema.



245
246
247
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 245

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#kindString

Deprecated. Corresponds to the JSON property kind

Returns:

  • (String)


238
239
240
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 238

def kind
  @kind
end

#restrictionsArray<Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction>

The set of restrictions that make up this schema. Corresponds to the JSON property restrictions



243
244
245
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 243

def restrictions
  @restrictions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



250
251
252
253
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 250

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @restrictions = args[:restrictions] if args.key?(:restrictions)
end