Class: Google::Apis::ContentV2_1::ActionReason

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#actionGoogle::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

#detailString

Detailed explanation of the reason. Should be displayed as a hint if present. Corresponds to the JSON property detail

Returns:

  • (String)


2286
2287
2288
# File 'lib/google/apis/content_v2_1/classes.rb', line 2286

def detail
  @detail
end

#messageString

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

Returns:

  • (String)


2292
2293
2294
# File 'lib/google/apis/content_v2_1/classes.rb', line 2292

def message
  @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