Class: Google::Apis::SearchconsoleV1::RichResultsIssue

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

Severity and status of a single issue affecting a single rich result instance on a page.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RichResultsIssue

Returns a new instance of RichResultsIssue.



601
602
603
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 601

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

Instance Attribute Details

#issue_messageString

Rich Results issue type. Corresponds to the JSON property issueMessage

Returns:

  • (String)


593
594
595
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 593

def issue_message
  @issue_message
end

#severityString

Severity of this issue: WARNING, or ERROR. Items with an issue of status ERROR cannot appear with rich result features in Google Search results. Corresponds to the JSON property severity

Returns:

  • (String)


599
600
601
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 599

def severity
  @severity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



606
607
608
609
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 606

def update!(**args)
  @issue_message = args[:issue_message] if args.key?(:issue_message)
  @severity = args[:severity] if args.key?(:severity)
end