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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Asset

Returns a new instance of Asset



70
71
72
# File 'generated/google/apis/digitalassetlinks_v1/classes.rb', line 70

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



63
64
65
# File 'generated/google/apis/digitalassetlinks_v1/classes.rb', line 63

def android_app
  @android_app
end

#webGoogle::Apis::DigitalassetlinksV1::WebAsset

Describes a web asset. Corresponds to the JSON property web



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

def web
  @web
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



75
76
77
78
# File 'generated/google/apis/digitalassetlinks_v1/classes.rb', line 75

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