Class: Google::Apis::WebmastersV3::UrlCrawlErrorsSample

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_detectedDateTime

The time the error was first detected, in RFC 3339 format. Corresponds to the JSON property first_detected

Returns:

  • (DateTime)


359
360
361
# File 'generated/google/apis/webmasters_v3/classes.rb', line 359

def first_detected
  @first_detected
end

#last_crawledDateTime

The time when the URL was last crawled, in RFC 3339 format. Corresponds to the JSON property last_crawled

Returns:

  • (DateTime)


364
365
366
# File 'generated/google/apis/webmasters_v3/classes.rb', line 364

def last_crawled
  @last_crawled
end

#page_urlString

The URL of an error, relative to the site. Corresponds to the JSON property pageUrl

Returns:

  • (String)


369
370
371
# File 'generated/google/apis/webmasters_v3/classes.rb', line 369

def page_url
  @page_url
end

#response_codeFixnum

The HTTP response code, if any. Corresponds to the JSON property responseCode

Returns:

  • (Fixnum)


374
375
376
# File 'generated/google/apis/webmasters_v3/classes.rb', line 374

def response_code
  @response_code
end

#url_detailsGoogle::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