Class: Google::Apis::DigitalassetlinksV1::StatementTemplate

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

A single statement to check in a bulk call using BulkCheck. See CheckRequest for details about each field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StatementTemplate

Returns a new instance of StatementTemplate.



362
363
364
# File 'lib/google/apis/digitalassetlinks_v1/classes.rb', line 362

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

Instance Attribute Details

#relationString

The relationship being asserted between the source and target. If omitted, you must specify a BulkCheckRequest.default_relation value to use here. Corresponds to the JSON property relation

Returns:

  • (String)


346
347
348
# File 'lib/google/apis/digitalassetlinks_v1/classes.rb', line 346

def relation
  @relation
end

#sourceGoogle::Apis::DigitalassetlinksV1::Asset

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. Corresponds to the JSON property source



353
354
355
# File 'lib/google/apis/digitalassetlinks_v1/classes.rb', line 353

def source
  @source
end

#targetGoogle::Apis::DigitalassetlinksV1::Asset

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. Corresponds to the JSON property target



360
361
362
# File 'lib/google/apis/digitalassetlinks_v1/classes.rb', line 360

def target
  @target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



367
368
369
370
371
# File 'lib/google/apis/digitalassetlinks_v1/classes.rb', line 367

def update!(**args)
  @relation = args[:relation] if args.key?(:relation)
  @source = args[:source] if args.key?(:source)
  @target = args[:target] if args.key?(:target)
end