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.



2342
2343
2344
# File 'lib/google/apis/content_v2_1/classes.rb', line 2342

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



2329
2330
2331
# File 'lib/google/apis/content_v2_1/classes.rb', line 2329

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)


2334
2335
2336
# File 'lib/google/apis/content_v2_1/classes.rb', line 2334

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)


2340
2341
2342
# File 'lib/google/apis/content_v2_1/classes.rb', line 2340

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2347
2348
2349
2350
2351
# File 'lib/google/apis/content_v2_1/classes.rb', line 2347

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