Class: Google::Apis::AdminDirectoryV1::MobileDevice::Application

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Application

Returns a new instance of Application.



2372
2373
2374
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2372

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

Instance Attribute Details

#display_nameString

The application's display name. An example is Browser. Corresponds to the JSON property displayName

Returns:

  • (String)


2346
2347
2348
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2346

def display_name
  @display_name
end

#package_nameString

The application's package name. An example is com.android.browser. Corresponds to the JSON property packageName

Returns:

  • (String)


2351
2352
2353
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2351

def package_name
  @package_name
end

#permissionArray<String>

The list of permissions of this application. These can be either a standard Android permission or one defined by the application, and are found in an application's Android manifest. Examples of a Calendar application's permissions are READ_CALENDAR, or MANAGE_ACCOUNTS. Corresponds to the JSON property permission

Returns:

  • (Array<String>)


2360
2361
2362
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2360

def permission
  @permission
end

#version_codeFixnum

The application's version code. An example is 13. Corresponds to the JSON property versionCode

Returns:

  • (Fixnum)


2365
2366
2367
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2365

def version_code
  @version_code
end

#version_nameString

The application's version name. An example is 3.2-140714. Corresponds to the JSON property versionName

Returns:

  • (String)


2370
2371
2372
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2370

def version_name
  @version_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2377
2378
2379
2380
2381
2382
2383
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2377

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @package_name = args[:package_name] if args.key?(:package_name)
  @permission = args[:permission] if args.key?(:permission)
  @version_code = args[:version_code] if args.key?(:version_code)
  @version_name = args[:version_name] if args.key?(:version_name)
end