Class: Google::Apis::SearchconsoleV1::UrlInspectionResult

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/searchconsole_v1/classes.rb,
lib/google/apis/searchconsole_v1/representations.rb,
lib/google/apis/searchconsole_v1/representations.rb

Overview

URL inspection result, including all inspection results.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UrlInspectionResult

Returns a new instance of UrlInspectionResult.



959
960
961
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 959

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

Instance Attribute Details

#amp_resultGoogle::Apis::SearchconsoleV1::AmpInspectionResult

AMP inspection result of the live page or the current information from Google' s index, depending on whether you requested a live inspection or not. Corresponds to the JSON property ampResult



934
935
936
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 934

def amp_result
  @amp_result
end

#index_status_resultGoogle::Apis::SearchconsoleV1::IndexStatusInspectionResult

Results of index status inspection for either the live page or the version in Google's index, depending on whether you requested a live inspection or not. For more information, see the Index coverage report documentation. Corresponds to the JSON property indexStatusResult



942
943
944
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 942

def index_status_result
  @index_status_result
end

Link to Search Console URL inspection. Corresponds to the JSON property inspectionResultLink

Returns:

  • (String)


947
948
949
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 947

def inspection_result_link
  @inspection_result_link
end

#mobile_usability_resultGoogle::Apis::SearchconsoleV1::MobileUsabilityInspectionResult

Mobile-usability inspection results. Corresponds to the JSON property mobileUsabilityResult



952
953
954
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 952

def mobile_usability_result
  @mobile_usability_result
end

#rich_results_resultGoogle::Apis::SearchconsoleV1::RichResultsInspectionResult

Rich-Results inspection result, including any rich results found at this URL. Corresponds to the JSON property richResultsResult



957
958
959
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 957

def rich_results_result
  @rich_results_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



964
965
966
967
968
969
970
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 964

def update!(**args)
  @amp_result = args[:amp_result] if args.key?(:amp_result)
  @index_status_result = args[:index_status_result] if args.key?(:index_status_result)
  @inspection_result_link = args[:inspection_result_link] if args.key?(:inspection_result_link)
  @mobile_usability_result = args[:mobile_usability_result] if args.key?(:mobile_usability_result)
  @rich_results_result = args[:rich_results_result] if args.key?(:rich_results_result)
end