Class: Google::Apis::AndroidmanagementV1::ApplicationReport

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

Overview

Information reported about an installed app.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ApplicationReport

Returns a new instance of ApplicationReport.



793
794
795
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 793

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

Instance Attribute Details

#application_sourceString

The source of the package. Corresponds to the JSON property applicationSource

Returns:

  • (String)


730
731
732
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 730

def application_source
  @application_source
end

#display_nameString

The display name of the app. Corresponds to the JSON property displayName

Returns:

  • (String)


735
736
737
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 735

def display_name
  @display_name
end

#eventsArray<Google::Apis::AndroidmanagementV1::ApplicationEvent>

The list of app events which have occurred in the last 30 hours. Corresponds to the JSON property events



740
741
742
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 740

def events
  @events
end

#installer_package_nameString

The package name of the app that installed this app. Corresponds to the JSON property installerPackageName

Returns:

  • (String)


745
746
747
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 745

def installer_package_name
  @installer_package_name
end

#keyed_app_statesArray<Google::Apis::AndroidmanagementV1::KeyedAppState>

List of keyed app states reported by the app. Corresponds to the JSON property keyedAppStates



750
751
752
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 750

def keyed_app_states
  @keyed_app_states
end

#package_nameString

Package name of the app. Corresponds to the JSON property packageName

Returns:

  • (String)


755
756
757
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 755

def package_name
  @package_name
end

#package_sha256_hashString

The SHA-256 hash of the app's APK file, which can be used to verify the app hasn't been modified. Each byte of the hash value is represented as a two- digit hexadecimal number. Corresponds to the JSON property packageSha256Hash

Returns:

  • (String)


762
763
764
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 762

def package_sha256_hash
  @package_sha256_hash
end

#signing_key_cert_fingerprintsArray<String>

The SHA-1 hash of each android.content.pm.Signature (https://developer.android. com/reference/android/content/pm/Signature.html) associated with the app package. Each byte of each hash value is represented as a two-digit hexadecimal number. Corresponds to the JSON property signingKeyCertFingerprints

Returns:

  • (Array<String>)


770
771
772
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 770

def signing_key_cert_fingerprints
  @signing_key_cert_fingerprints
end

#stateString

Application state. Corresponds to the JSON property state

Returns:

  • (String)


775
776
777
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 775

def state
  @state
end

#user_facing_typeString

Whether the app is user facing. Corresponds to the JSON property userFacingType

Returns:

  • (String)


780
781
782
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 780

def user_facing_type
  @user_facing_type
end

#version_codeFixnum

The app version code, which can be used to determine whether one version is more recent than another. Corresponds to the JSON property versionCode

Returns:

  • (Fixnum)


786
787
788
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 786

def version_code
  @version_code
end

#version_nameString

The app version as displayed to the user. Corresponds to the JSON property versionName

Returns:

  • (String)


791
792
793
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 791

def version_name
  @version_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



798
799
800
801
802
803
804
805
806
807
808
809
810
811
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 798

def update!(**args)
  @application_source = args[:application_source] if args.key?(:application_source)
  @display_name = args[:display_name] if args.key?(:display_name)
  @events = args[:events] if args.key?(:events)
  @installer_package_name = args[:installer_package_name] if args.key?(:installer_package_name)
  @keyed_app_states = args[:keyed_app_states] if args.key?(:keyed_app_states)
  @package_name = args[:package_name] if args.key?(:package_name)
  @package_sha256_hash = args[:package_sha256_hash] if args.key?(:package_sha256_hash)
  @signing_key_cert_fingerprints = args[:signing_key_cert_fingerprints] if args.key?(:signing_key_cert_fingerprints)
  @state = args[:state] if args.key?(:state)
  @user_facing_type = args[:user_facing_type] if args.key?(:user_facing_type)
  @version_code = args[:version_code] if args.key?(:version_code)
  @version_name = args[:version_name] if args.key?(:version_name)
end