Class: Google::Apis::AdminDirectoryV1::MobileDevice::Application
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::MobileDevice::Application
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/google/apis/admin_directory_v1/representations.rb
Instance Attribute Summary collapse
-
#display_name ⇒ String
The application's display name.
-
#package_name ⇒ String
The application's package name.
-
#permission ⇒ Array<String>
The list of permissions of this application.
-
#version_code ⇒ Fixnum
The application's version code.
-
#version_name ⇒ String
The application's version name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Application
constructor
A new instance of Application.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Application
Returns a new instance of Application.
2696 2697 2698 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2696 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
The application's display name. An example is Browser.
Corresponds to the JSON property displayName
2670 2671 2672 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2670 def display_name @display_name end |
#package_name ⇒ String
The application's package name. An example is com.android.browser.
Corresponds to the JSON property packageName
2675 2676 2677 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2675 def package_name @package_name end |
#permission ⇒ Array<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
2684 2685 2686 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2684 def @permission end |
#version_code ⇒ Fixnum
The application's version code. An example is 13.
Corresponds to the JSON property versionCode
2689 2690 2691 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2689 def version_code @version_code end |
#version_name ⇒ String
The application's version name. An example is 3.2-140714.
Corresponds to the JSON property versionName
2694 2695 2696 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2694 def version_name @version_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2701 2702 2703 2704 2705 2706 2707 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2701 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 |