Class: Google::Apis::IndexingV3::UrlNotification
- Inherits:
-
Object
- Object
- Google::Apis::IndexingV3::UrlNotification
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/indexing_v3/classes.rb,
generated/google/apis/indexing_v3/representations.rb,
generated/google/apis/indexing_v3/representations.rb
Overview
UrlNotification
is the resource used in all Indexing API calls. It describes
one event in the life cycle of a Web Document.
Instance Attribute Summary collapse
-
#notify_time ⇒ String
Creation timestamp for this notification.
-
#type ⇒ String
The URL life cycle event that Google is being notified about.
-
#url ⇒ String
The object of this notification.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UrlNotification
constructor
A new instance of UrlNotification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UrlNotification
Returns a new instance of UrlNotification.
68 69 70 |
# File 'generated/google/apis/indexing_v3/classes.rb', line 68 def initialize(**args) update!(**args) end |
Instance Attribute Details
#notify_time ⇒ String
Creation timestamp for this notification. Users should not specify it, the
field is ignored at the request time.
Corresponds to the JSON property notifyTime
54 55 56 |
# File 'generated/google/apis/indexing_v3/classes.rb', line 54 def notify_time @notify_time end |
#type ⇒ String
The URL life cycle event that Google is being notified about.
Corresponds to the JSON property type
59 60 61 |
# File 'generated/google/apis/indexing_v3/classes.rb', line 59 def type @type end |
#url ⇒ String
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
66 67 68 |
# File 'generated/google/apis/indexing_v3/classes.rb', line 66 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
73 74 75 76 77 |
# File 'generated/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 |