Class: Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1MessageBody
- Inherits:
-
Object
- Object
- Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1MessageBody
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/advisorynotifications_v1/classes.rb,
lib/google/apis/advisorynotifications_v1/representations.rb,
lib/google/apis/advisorynotifications_v1/representations.rb
Overview
A message body containing text.
Instance Attribute Summary collapse
-
#text ⇒ Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Text
A text object containing the English text and its localized copies.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAdvisorynotificationsV1MessageBody
constructor
A new instance of GoogleCloudAdvisorynotificationsV1MessageBody.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAdvisorynotificationsV1MessageBody
Returns a new instance of GoogleCloudAdvisorynotificationsV1MessageBody.
176 177 178 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 176 def initialize(**args) update!(**args) end |
Instance Attribute Details
#text ⇒ Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Text
A text object containing the English text and its localized copies.
Corresponds to the JSON property text
174 175 176 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 174 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
181 182 183 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 181 def update!(**args) @text = args[:text] if args.key?(:text) end |