Class: Google::Apis::AndroidmanagementV1::PersonalApplicationPolicy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/androidmanagement_v1/classes.rb,
generated/google/apis/androidmanagement_v1/representations.rb,
generated/google/apis/androidmanagement_v1/representations.rb

Overview

Policies for apps on the personal profile of a company-owned device with a work profile.

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) ⇒ PersonalApplicationPolicy

Returns a new instance of PersonalApplicationPolicy.


2244
2245
2246
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2244

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

Instance Attribute Details

#install_typeString

The type of installation to perform. Corresponds to the JSON property installType

Returns:

  • (String)

2237
2238
2239
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2237

def install_type
  @install_type
end

#package_nameString

The package name of the application. Corresponds to the JSON property packageName

Returns:

  • (String)

2242
2243
2244
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2242

def package_name
  @package_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2249
2250
2251
2252
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2249

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