Class: Google::Apis::DigitalassetlinksV1::Statement
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DigitalassetlinksV1::Statement
 
- 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
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.
Instance Attribute Summary collapse
- 
  
    
      #relation  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    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). 
- 
  
    
      #source  ⇒ Google::Apis::DigitalassetlinksV1::Asset 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Uniquely identifies an asset. 
- 
  
    
      #target  ⇒ Google::Apis::DigitalassetlinksV1::Asset 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Uniquely identifies an asset. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Statement 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Statement. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Statement
Returns a new instance of Statement
| 250 251 252 | # File 'generated/google/apis/digitalassetlinks_v1/classes.rb', line 250 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#relation ⇒ String
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 <kind>/<detail>, where
<kind> must be one of a set of pre-defined purpose categories, and
<detail> is a free-form lowercase alphanumeric string that describes the
specific use case of the statement.
Refer to our API documentation
for the current list of supported relations.
Example: delegate_permission/common.handle_all_urls
REQUIRED
Corresponds to the JSON property relation
| 232 233 234 | # File 'generated/google/apis/digitalassetlinks_v1/classes.rb', line 232 def relation @relation end | 
#source ⇒ Google::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
| 240 241 242 | # File 'generated/google/apis/digitalassetlinks_v1/classes.rb', line 240 def source @source end | 
#target ⇒ Google::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
| 248 249 250 | # File 'generated/google/apis/digitalassetlinks_v1/classes.rb', line 248 def target @target end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 255 256 257 258 259 | # File 'generated/google/apis/digitalassetlinks_v1/classes.rb', line 255 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 |