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

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

Overview

Describes an android app asset.

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

Returns a new instance of AndroidAppAsset



42
43
44
# File 'generated/google/apis/digitalassetlinks_v1/classes.rb', line 42

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 'generated/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)


40
41
42
# File 'generated/google/apis/digitalassetlinks_v1/classes.rb', line 40

def package_name
  @package_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



47
48
49
50
# File 'generated/google/apis/digitalassetlinks_v1/classes.rb', line 47

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