Class: Google::Apis::WebmastersV3::UrlCrawlErrorsSample
- Inherits:
-
Object
- Object
- Google::Apis::WebmastersV3::UrlCrawlErrorsSample
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/webmasters_v3/classes.rb,
generated/google/apis/webmasters_v3/representations.rb,
generated/google/apis/webmasters_v3/representations.rb
Overview
Contains information about specific crawl errors.
Instance Attribute Summary collapse
-
#first_detected ⇒ DateTime
The time the error was first detected, in RFC 3339 format.
-
#last_crawled ⇒ DateTime
The time when the URL was last crawled, in RFC 3339 format.
-
#page_url ⇒ String
The URL of an error, relative to the site.
-
#response_code ⇒ Fixnum
The HTTP response code, if any.
-
#url_details ⇒ Google::Apis::WebmastersV3::UrlSampleDetails
Additional details about the URL, set only when calling get().
Instance Method Summary collapse
-
#initialize(**args) ⇒ UrlCrawlErrorsSample
constructor
A new instance of UrlCrawlErrorsSample.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UrlCrawlErrorsSample
Returns a new instance of UrlCrawlErrorsSample
381 382 383 |
# File 'generated/google/apis/webmasters_v3/classes.rb', line 381 def initialize(**args) update!(**args) end |
Instance Attribute Details
#first_detected ⇒ DateTime
The time the error was first detected, in RFC 3339 format.
Corresponds to the JSON property first_detected
359 360 361 |
# File 'generated/google/apis/webmasters_v3/classes.rb', line 359 def first_detected @first_detected end |
#last_crawled ⇒ DateTime
The time when the URL was last crawled, in RFC 3339 format.
Corresponds to the JSON property last_crawled
364 365 366 |
# File 'generated/google/apis/webmasters_v3/classes.rb', line 364 def last_crawled @last_crawled end |
#page_url ⇒ String
The URL of an error, relative to the site.
Corresponds to the JSON property pageUrl
369 370 371 |
# File 'generated/google/apis/webmasters_v3/classes.rb', line 369 def page_url @page_url end |
#response_code ⇒ Fixnum
The HTTP response code, if any.
Corresponds to the JSON property responseCode
374 375 376 |
# File 'generated/google/apis/webmasters_v3/classes.rb', line 374 def response_code @response_code end |
#url_details ⇒ Google::Apis::WebmastersV3::UrlSampleDetails
Additional details about the URL, set only when calling get().
Corresponds to the JSON property urlDetails
379 380 381 |
# File 'generated/google/apis/webmasters_v3/classes.rb', line 379 def url_details @url_details end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
386 387 388 389 390 391 392 |
# File 'generated/google/apis/webmasters_v3/classes.rb', line 386 def update!(**args) @first_detected = args[:first_detected] if args.key?(:first_detected) @last_crawled = args[:last_crawled] if args.key?(:last_crawled) @page_url = args[:page_url] if args.key?(:page_url) @response_code = args[:response_code] if args.key?(:response_code) @url_details = args[:url_details] if args.key?(:url_details) end |