Class: Google::Apis::DigitalassetlinksV1::AndroidAppAsset

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

Overview

Describes an android app asset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AndroidAppAsset

Returns a new instance of AndroidAppAsset.



41
42
43
# File 'lib/google/apis/digitalassetlinks_v1/classes.rb', line 41

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

Instance Attribute Details

#certificateGoogle::Apis::DigitalassetlinksV1::CertificateInfo

Describes an X509 certificate. Corresponds to the JSON property certificate



32
33
34
# File 'lib/google/apis/digitalassetlinks_v1/classes.rb', line 32

def certificate
  @certificate
end

#package_nameString

Android App assets are naturally identified by their Java package name. For example, the Google Maps app uses the package name com.google.android.apps. maps. REQUIRED Corresponds to the JSON property packageName

Returns:

  • (String)


39
40
41
# File 'lib/google/apis/digitalassetlinks_v1/classes.rb', line 39

def package_name
  @package_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



46
47
48
49
# File 'lib/google/apis/digitalassetlinks_v1/classes.rb', line 46

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