Class: Google::Apis::IndexingV3::UrlNotificationMetadata

Inherits:
Object
  • Object
show all
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

Summary of the most recent Indexing API notifications successfully received, for a given URL.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UrlNotificationMetadata

Returns a new instance of UrlNotificationMetadata



102
103
104
# File 'generated/google/apis/indexing_v3/classes.rb', line 102

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#latest_removeGoogle::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. Corresponds to the JSON property latestRemove



89
90
91
# File 'generated/google/apis/indexing_v3/classes.rb', line 89

def latest_remove
  @latest_remove
end

#latest_updateGoogle::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. Corresponds to the JSON property latestUpdate



95
96
97
# File 'generated/google/apis/indexing_v3/classes.rb', line 95

def latest_update
  @latest_update
end

#urlString

URL to which this metadata refers. Corresponds to the JSON property url

Returns:

  • (String)


100
101
102
# File 'generated/google/apis/indexing_v3/classes.rb', line 100

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



107
108
109
110
111
# File 'generated/google/apis/indexing_v3/classes.rb', line 107

def update!(**args)
  @latest_remove = args[:latest_remove] if args.key?(:latest_remove)
  @latest_update = args[:latest_update] if args.key?(:latest_update)
  @url = args[:url] if args.key?(:url)
end