class Google::Apis::IndexingV3::UrlNotification
`UrlNotification` is the resource used in all Indexing API calls. It describes one event in the life cycle of a Web Document.
Attributes
notify_time[RW]
Creation timestamp for this notification. Users should not specify it, the field is ignored at the request time. Corresponds to the JSON property `notifyTime` @return [String]
type[RW]
The URL life cycle event that Google
is being notified about. Corresponds to the JSON property `type` @return [String]
url[RW]
The object of this notification. The URL must be owned by the publisher of this notification and, in case of `URL_UPDATED` notifications, it must be crawlable by Google
. Corresponds to the JSON property `url` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/indexing_v3/classes.rb, line 68 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/indexing_v3/classes.rb, line 73 def update!(**args) @notify_time = args[:notify_time] if args.key?(:notify_time) @type = args[:type] if args.key?(:type) @url = args[:url] if args.key?(:url) end