class Google::Apis::DigitalassetlinksV1::Statement

Describes a reliable statement that has been made about the relationship between a source asset and a target asset. Statements are always made by the source asset, either directly or by delegating to a statement list that is stored elsewhere. For more detailed definitions of statements and assets, please refer to our [API documentation landing page](/digital-asset-links/v1/ getting-started).

Attributes

relation[RW]

The relation identifies the use of the statement as intended by the source asset's owner (that is, the person or entity who issued the statement). Every complete statement has a relation. We identify relations with strings of the format `/`, where “ must be one of a set of pre-defined purpose categories, and “ is a free-form lowercase alphanumeric string that describes the specific use case of the statement. Refer to [our API documentation](/digital- asset-links/v1/relation-strings) for the current list of supported relations. Example: `delegate_permission/common.handle_all_urls` REQUIRED Corresponds to the JSON property `relation` @return [String]

source[RW]

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` @return [Google::Apis::DigitalassetlinksV1::Asset]

target[RW]

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` @return [Google::Apis::DigitalassetlinksV1::Asset]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/digitalassetlinks_v1/classes.rb, line 234
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/digitalassetlinks_v1/classes.rb, line 239
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