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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AppRestrictionsSchema

Returns a new instance of AppRestrictionsSchema



259
260
261
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 259

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

Instance Attribute Details

#kindString

Identifies what kind of resource this is. Value: the fixed string " androidenterprise#appRestrictionsSchema". Corresponds to the JSON property kind

Returns:

  • (String)


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

def kind
  @kind
end

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

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



257
258
259
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 257

def restrictions
  @restrictions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



264
265
266
267
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 264

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