Class: Google::Apis::CloudsearchV1::Content
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::Content
- 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
-
#actions ⇒ Array<Google::Apis::CloudsearchV1::Action>
[Optional] Actions for this card.
-
#description ⇒ Google::Apis::CloudsearchV1::SafeHtmlProto
IMPORTANT: It is unsafe to accept this message from an untrusted source, since it's trivial for an attacker to forge serialized messages that don't fulfill the type's safety contract -- for example, it could contain attacker controlled script.
-
#subtitle ⇒ Google::Apis::CloudsearchV1::BackgroundColoredText
[Optional] Subtitle of the card.
-
#title ⇒ Google::Apis::CloudsearchV1::BackgroundColoredText
[Optional] Title of the card.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Content
constructor
A new instance of Content.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Content
Returns a new instance of Content.
276 277 278 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 276 def initialize(**args) update!(**args) end |
Instance Attribute Details
#actions ⇒ Array<Google::Apis::CloudsearchV1::Action>
[Optional] Actions for this card.
Corresponds to the JSON property actions
254 255 256 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 254 def actions @actions end |
#description ⇒ Google::Apis::CloudsearchV1::SafeHtmlProto
IMPORTANT: It is unsafe to accept this message from an untrusted source, since
it's trivial for an attacker to forge serialized messages that don't fulfill
the type's safety contract -- for example, it could contain attacker
controlled script. A system which receives a SafeHtmlProto implicitly trusts
the producer of the SafeHtmlProto. So, it's generally safe to return this
message in RPC responses, but generally unsafe to accept it in RPC requests.
Corresponds to the JSON property description
264 265 266 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 264 def description @description end |
#subtitle ⇒ Google::Apis::CloudsearchV1::BackgroundColoredText
[Optional] Subtitle of the card.
Corresponds to the JSON property subtitle
269 270 271 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 269 def subtitle @subtitle end |
#title ⇒ Google::Apis::CloudsearchV1::BackgroundColoredText
[Optional] Title of the card.
Corresponds to the JSON property title
274 275 276 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 274 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
281 282 283 284 285 286 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 281 def update!(**args) @actions = args[:actions] if args.key?(:actions) @description = args[:description] if args.key?(:description) @subtitle = args[:subtitle] if args.key?(:subtitle) @title = args[:title] if args.key?(:title) end |