Class: Google::Apis::CloudsearchV1::ThirdPartyGenericCard
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::ThirdPartyGenericCard
- 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
-
#card_id ⇒ String
Unique identifier for the card.
-
#category ⇒ String
Category that the card belongs to.
-
#content ⇒ Google::Apis::CloudsearchV1::Content
[Required] Card content.
-
#context ⇒ Google::Apis::CloudsearchV1::Context
[Required] Context where the card should be triggered.
-
#is_dismissible ⇒ Boolean
(also: #is_dismissible?)
Whether the card can be dismissed.
-
#priority ⇒ Fixnum
Priority of the card, where 0 is the highest priority.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ThirdPartyGenericCard
constructor
A new instance of ThirdPartyGenericCard.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ThirdPartyGenericCard
Returns a new instance of ThirdPartyGenericCard.
7835 7836 7837 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7835 def initialize(**args) update!(**args) end |
Instance Attribute Details
#card_id ⇒ String
Unique identifier for the card.
Corresponds to the JSON property cardId
7807 7808 7809 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7807 def card_id @card_id end |
#category ⇒ String
Category that the card belongs to.
Corresponds to the JSON property category
7812 7813 7814 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7812 def category @category end |
#content ⇒ Google::Apis::CloudsearchV1::Content
[Required] Card content.
Corresponds to the JSON property content
7817 7818 7819 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7817 def content @content end |
#context ⇒ Google::Apis::CloudsearchV1::Context
[Required] Context where the card should be triggered.
Corresponds to the JSON property context
7822 7823 7824 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7822 def context @context end |
#is_dismissible ⇒ Boolean Also known as: is_dismissible?
Whether the card can be dismissed.
Corresponds to the JSON property isDismissible
7827 7828 7829 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7827 def is_dismissible @is_dismissible end |
#priority ⇒ Fixnum
Priority of the card, where 0 is the highest priority.
Corresponds to the JSON property priority
7833 7834 7835 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7833 def priority @priority end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7840 7841 7842 7843 7844 7845 7846 7847 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7840 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 |