Class: Google::Apis::ContentV2_1::ActionReason
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ActionReason
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
A single reason why the action is not available.
Instance Attribute Summary collapse
-
#action ⇒ Google::Apis::ContentV2_1::Action
An actionable step that can be executed to solve the issue.
-
#detail ⇒ String
Detailed explanation of the reason.
-
#message ⇒ String
Messages summarizing the reason, why the action is not available.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ActionReason
constructor
A new instance of ActionReason.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ActionReason
Returns a new instance of ActionReason.
2294 2295 2296 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2294 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ Google::Apis::ContentV2_1::Action
An actionable step that can be executed to solve the issue.
Corresponds to the JSON property action
2281 2282 2283 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2281 def action @action end |
#detail ⇒ String
Detailed explanation of the reason. Should be displayed as a hint if present.
Corresponds to the JSON property detail
2286 2287 2288 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2286 def detail @detail end |
#message ⇒ String
Messages summarizing the reason, why the action is not available. For example:
“Review requested on Jan 03. Review requests can take a few days to complete.”
Corresponds to the JSON property message
2292 2293 2294 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2292 def @message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2299 2300 2301 2302 2303 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2299 def update!(**args) @action = args[:action] if args.key?(:action) @detail = args[:detail] if args.key?(:detail) @message = args[:message] if args.key?(:message) end |