Class: Google::Apis::SearchconsoleV1::AmpInspectionResult
- Inherits:
-
Object
- Object
- Google::Apis::SearchconsoleV1::AmpInspectionResult
- 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
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.
Instance Attribute Summary collapse
-
#amp_index_status_verdict ⇒ String
Index status of the AMP URL.
-
#amp_url ⇒ String
URL of the AMP that was inspected.
-
#indexing_state ⇒ String
Whether or not the page blocks indexing through a noindex rule.
-
#issues ⇒ Array<Google::Apis::SearchconsoleV1::AmpIssue>
A list of zero or more AMP issues found for the inspected URL.
-
#last_crawl_time ⇒ String
Last time this AMP version was crawled by Google.
-
#page_fetch_state ⇒ String
Whether or not Google could fetch the AMP.
-
#robots_txt_state ⇒ String
Whether or not the page is blocked to Google by a robots.txt rule.
-
#verdict ⇒ String
The status of the most severe error on the page.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AmpInspectionResult
constructor
A new instance of AmpInspectionResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AmpInspectionResult
Returns a new instance of AmpInspectionResult.
74 75 76 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 74 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amp_index_status_verdict ⇒ String
Index status of the AMP URL.
Corresponds to the JSON property ampIndexStatusVerdict
33 34 35 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 33 def amp_index_status_verdict @amp_index_status_verdict end |
#amp_url ⇒ String
URL of the AMP that was inspected. If the submitted URL is a desktop page that
refers to an AMP version, the AMP version will be inspected.
Corresponds to the JSON property ampUrl
39 40 41 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 39 def amp_url @amp_url end |
#indexing_state ⇒ String
Whether or not the page blocks indexing through a noindex rule.
Corresponds to the JSON property indexingState
44 45 46 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 44 def indexing_state @indexing_state end |
#issues ⇒ Array<Google::Apis::SearchconsoleV1::AmpIssue>
A list of zero or more AMP issues found for the inspected URL.
Corresponds to the JSON property issues
49 50 51 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 49 def issues @issues end |
#last_crawl_time ⇒ String
Last time this AMP version was crawled by Google. Absent if the URL was never
crawled successfully.
Corresponds to the JSON property lastCrawlTime
55 56 57 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 55 def last_crawl_time @last_crawl_time end |
#page_fetch_state ⇒ String
Whether or not Google could fetch the AMP.
Corresponds to the JSON property pageFetchState
60 61 62 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 60 def page_fetch_state @page_fetch_state end |
#robots_txt_state ⇒ String
Whether or not the page is blocked to Google by a robots.txt rule.
Corresponds to the JSON property robotsTxtState
65 66 67 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 65 def robots_txt_state @robots_txt_state end |
#verdict ⇒ String
The status of the most severe error on the page. If a page has both warnings
and errors, the page status is error. Error status means the page cannot be
shown in Search results.
Corresponds to the JSON property verdict
72 73 74 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 72 def verdict @verdict end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
79 80 81 82 83 84 85 86 87 88 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 79 def update!(**args) @amp_index_status_verdict = args[:amp_index_status_verdict] if args.key?(:amp_index_status_verdict) @amp_url = args[:amp_url] if args.key?(:amp_url) @indexing_state = args[:indexing_state] if args.key?(:indexing_state) @issues = args[:issues] if args.key?(:issues) @last_crawl_time = args[:last_crawl_time] if args.key?(:last_crawl_time) @page_fetch_state = args[:page_fetch_state] if args.key?(:page_fetch_state) @robots_txt_state = args[:robots_txt_state] if args.key?(:robots_txt_state) @verdict = args[:verdict] if args.key?(:verdict) end |