Class: Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Subject

Inherits:
Object
  • Object
show all
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 subject line of a notification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAdvisorynotificationsV1Subject

Returns a new instance of GoogleCloudAdvisorynotificationsV1Subject.



299
300
301
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 299

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

Instance Attribute Details

#textGoogle::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Text

A text object containing the English text and its localized copies. Corresponds to the JSON property text



297
298
299
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 297

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



304
305
306
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 304

def update!(**args)
  @text = args[:text] if args.key?(:text)
end