class Google::Apis::UrlshortenerV1::Url
Attributes
A summary of the click analytics for the short and long URL. Might not be present if not requested or currently unavailable. Corresponds to the JSON property `analytics` @return [Google::Apis::UrlshortenerV1::AnalyticsSummary]
Time the short URL was created; ISO 8601 representation using the yyyy-MM-dd'T' HH:mm:ss.SSSZZ format, e.g. “2010-10-14T19:01:24.944+00:00”. Corresponds to the JSON property `created` @return [String]
Short URL, e.g. “goo.gl/l6MS”. Corresponds to the JSON property `id` @return [String]
The fixed string “urlshortener#url”. Corresponds to the JSON property `kind` @return [String]
Long URL, e.g. “www.google.com/”. Might not be present if the status is “REMOVED”. Corresponds to the JSON property `longUrl` @return [String]
Status of the target URL. Possible values: “OK”, “MALWARE”, “PHISHING”, or “ REMOVED”. A URL might be marked “REMOVED” if it was flagged as spam, for example. Corresponds to the JSON property `status` @return [String]
Public Class Methods
# File generated/google/apis/urlshortener_v1/classes.rb, line 186 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/urlshortener_v1/classes.rb, line 191 def update!(**args) @analytics = args[:analytics] if args.key?(:analytics) @created = args[:created] if args.key?(:created) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @long_url = args[:long_url] if args.key?(:long_url) @status = args[:status] if args.key?(:status) end