Class: Google::Apis::CloudsearchV1::AppsDynamiteV1ApiCompatV1Action

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

Overview

Interactive objects inside a message. Documentation: - https://api.slack.com/ docs/message-buttons

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppsDynamiteV1ApiCompatV1Action

Returns a new instance of AppsDynamiteV1ApiCompatV1Action.



3845
3846
3847
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3845

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

Instance Attribute Details

#confirmGoogle::Apis::CloudsearchV1::AppsDynamiteV1ApiCompatV1ActionConfirm

Confirmation dialog config. Corresponds to the JSON property confirm



3818
3819
3820
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3818

def confirm
  @confirm
end

#nameString

Unique identifier for this action. Corresponds to the JSON property name

Returns:

  • (String)


3823
3824
3825
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3823

def name
  @name
end

#styleString

Button style ("default", "primary", or "danger"). Corresponds to the JSON property style

Returns:

  • (String)


3828
3829
3830
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3828

def style
  @style
end

#textString

User-facing label for the action. Corresponds to the JSON property text

Returns:

  • (String)


3833
3834
3835
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3833

def text
  @text
end

#typeString

Action type - currently only "button". Corresponds to the JSON property type

Returns:

  • (String)


3838
3839
3840
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3838

def type
  @type
end

#valueString

Payload for this action. Will be sent to the action handler along with name. Corresponds to the JSON property value

Returns:

  • (String)


3843
3844
3845
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3843

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3850
3851
3852
3853
3854
3855
3856
3857
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3850

def update!(**args)
  @confirm = args[:confirm] if args.key?(:confirm)
  @name = args[:name] if args.key?(:name)
  @style = args[:style] if args.key?(:style)
  @text = args[:text] if args.key?(:text)
  @type = args[:type] if args.key?(:type)
  @value = args[:value] if args.key?(:value)
end