Class: Google::Apis::DigitalassetlinksV1::WebAsset
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DigitalassetlinksV1::WebAsset
 
- 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 web asset.
Instance Attribute Summary collapse
- 
  
    
      #site  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Web assets are identified by a URL that contains only the scheme, hostname and port parts. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ WebAsset 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of WebAsset. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ WebAsset
Returns a new instance of WebAsset
| 294 295 296 | # File 'generated/google/apis/digitalassetlinks_v1/classes.rb', line 294 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#site ⇒ String
Web assets are identified by a URL that contains only the scheme, hostname
and port parts.  The format is
http[s]://.").
Only the schemes "http" and "https" are currently allowed.
Port numbers are given as a decimal number, and they must be omitted if the
standard port numbers are used: 80 for http and 443 for https.
We call this limited URL the "site".  All URLs that share the same scheme,
hostname and port are considered to be a part of the site and thus belong
to the web asset.
Example: the asset with the site https://www.google.com contains all
these URLs:
-   https://www.google.com/
-   https://www.google.com:443/
-   https://www.google.com/foo
-   https://www.google.com/foo?bar
-   https://www.google.com/foo#bar
-   https://user@password:www.google.com/But it does not contain these URLs:
-   http://www.google.com/(wrong scheme)
-   https://google.com/(hostname does not match)
-   https://www.google.com:444/(port does not match) REQUIRED Corresponds to the JSON propertysite
| 292 293 294 | # File 'generated/google/apis/digitalassetlinks_v1/classes.rb', line 292 def site @site end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 299 300 301 | # File 'generated/google/apis/digitalassetlinks_v1/classes.rb', line 299 def update!(**args) @site = args[:site] if args.key?(:site) end |