Class: Google::Apis::DigitalassetlinksV1::Asset

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

Uniquely identifies an asset. A digital asset is an identifiable and addressable online entity that typically provides some service or content. Examples of assets are websites, Android apps, Twitter feeds, and Plus Pages.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Asset

Returns a new instance of Asset.



68
69
70
# File 'generated/google/apis/digitalassetlinks_v1/classes.rb', line 68

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

Instance Attribute Details

#android_appGoogle::Apis::DigitalassetlinksV1::AndroidAppAsset

Describes an android app asset. Corresponds to the JSON property androidApp



61
62
63
# File 'generated/google/apis/digitalassetlinks_v1/classes.rb', line 61

def android_app
  @android_app
end

#webGoogle::Apis::DigitalassetlinksV1::WebAsset

Describes a web asset. Corresponds to the JSON property web



66
67
68
# File 'generated/google/apis/digitalassetlinks_v1/classes.rb', line 66

def web
  @web
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



73
74
75
76
# File 'generated/google/apis/digitalassetlinks_v1/classes.rb', line 73

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