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.



904
905
906
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 904

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



879
880
881
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 879

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



887
888
889
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 887

def index_status_result
  @index_status_result
end

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

Returns:

  • (String)


892
893
894
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 892

def inspection_result_link
  @inspection_result_link
end

#mobile_usability_resultGoogle::Apis::SearchconsoleV1::MobileUsabilityInspectionResult

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



897
898
899
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 897

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



902
903
904
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 902

def rich_results_result
  @rich_results_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



909
910
911
912
913
914
915
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 909

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