class Google::Apis::DigitalassetlinksV1::WebAsset

Describes a web asset.

Attributes

site[RW]

Web assets are identified by a URL that contains only the scheme, hostname and port parts. The format is http://[:] Hostnames must be fully qualified: they must end in a single period (“`.`”). 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 `www.google. com` contains all these URLs: * `www.google.com/` * `www. google.com:443/` * `www.google.com/foo` * `www.google.com/foo? bar` * `www.google.com/foo#bar` * `user@password:www.google. com/` But it does not contain these URLs: * `www.google.com/` (wrong scheme) * `google.com/` (hostname does not match) * `www. google.com:444/` (port does not match) REQUIRED Corresponds to the JSON property `site` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/digitalassetlinks_v1/classes.rb, line 268
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 273
def update!(**args)
  @site = args[:site] if args.key?(:site)
end