Class: Google::Apis::ChatV1::GoogleAppsCardV1Condition

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb

Overview

Represents a condition that can be used to trigger an action. Available for Google Workspace add-ons that extend Google Workspace Studio. Unavailable for Google Chat apps.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsCardV1Condition

Returns a new instance of GoogleAppsCardV1Condition.



2437
2438
2439
# File 'lib/google/apis/chat_v1/classes.rb', line 2437

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

Instance Attribute Details

#action_rule_idString

The unique identifier of the ActionRule. Corresponds to the JSON property actionRuleId

Returns:

  • (String)


2428
2429
2430
# File 'lib/google/apis/chat_v1/classes.rb', line 2428

def action_rule_id
  @action_rule_id
end

#expression_data_conditionGoogle::Apis::ChatV1::GoogleAppsCardV1ExpressionDataCondition

Represents a condition that is evaluated using CEL. Available for Google Workspace add-ons that extend Google Workspace Studio. Unavailable for Google Chat apps. Corresponds to the JSON property expressionDataCondition



2435
2436
2437
# File 'lib/google/apis/chat_v1/classes.rb', line 2435

def expression_data_condition
  @expression_data_condition
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2442
2443
2444
2445
# File 'lib/google/apis/chat_v1/classes.rb', line 2442

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