Class: Google::Apis::DigitalassetlinksV1::Asset
- Inherits:
-
Object
- Object
- Google::Apis::DigitalassetlinksV1::Asset
- 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
-
#android_app ⇒ Google::Apis::DigitalassetlinksV1::AndroidAppAsset
Describes an android app asset.
-
#web ⇒ Google::Apis::DigitalassetlinksV1::WebAsset
Describes a web asset.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Asset
constructor
A new instance of Asset.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_app ⇒ Google::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 |
#web ⇒ Google::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 |