Class: Google::Apis::CloudsearchV1::ThirdPartyGenericCard

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ThirdPartyGenericCard

Returns a new instance of ThirdPartyGenericCard.



7829
7830
7831
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7829

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

Instance Attribute Details

#card_idString

Unique identifier for the card. Corresponds to the JSON property cardId

Returns:

  • (String)


7801
7802
7803
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7801

def card_id
  @card_id
end

#categoryString

Category that the card belongs to. Corresponds to the JSON property category

Returns:

  • (String)


7806
7807
7808
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7806

def category
  @category
end

#contentGoogle::Apis::CloudsearchV1::Content

[Required] Card content. Corresponds to the JSON property content



7811
7812
7813
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7811

def content
  @content
end

#contextGoogle::Apis::CloudsearchV1::Context

[Required] Context where the card should be triggered. Corresponds to the JSON property context



7816
7817
7818
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7816

def context
  @context
end

#is_dismissibleBoolean Also known as: is_dismissible?

Whether the card can be dismissed. Corresponds to the JSON property isDismissible

Returns:

  • (Boolean)


7821
7822
7823
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7821

def is_dismissible
  @is_dismissible
end

#priorityFixnum

Priority of the card, where 0 is the highest priority. Corresponds to the JSON property priority

Returns:

  • (Fixnum)


7827
7828
7829
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7827

def priority
  @priority
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7834
7835
7836
7837
7838
7839
7840
7841
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7834

def update!(**args)
  @card_id = args[:card_id] if args.key?(:card_id)
  @category = args[:category] if args.key?(:category)
  @content = args[:content] if args.key?(:content)
  @context = args[:context] if args.key?(:context)
  @is_dismissible = args[:is_dismissible] if args.key?(:is_dismissible)
  @priority = args[:priority] if args.key?(:priority)
end