Class: Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Message
- Inherits:
-
Object
- Object
- Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Message
- 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 which contains notification details.
Instance Attribute Summary collapse
-
#attachments ⇒ Array<Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Attachment>
The attachments to download.
-
#body ⇒ Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1MessageBody
A message body containing text.
-
#create_time ⇒ String
The Message creation timestamp.
-
#localization_time ⇒ String
Time when Message was localized Corresponds to the JSON property
localizationTime
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAdvisorynotificationsV1Message
constructor
A new instance of GoogleCloudAdvisorynotificationsV1Message.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAdvisorynotificationsV1Message
Returns a new instance of GoogleCloudAdvisorynotificationsV1Message.
154 155 156 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 154 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attachments ⇒ Array<Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Attachment>
The attachments to download.
Corresponds to the JSON property attachments
137 138 139 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 137 def @attachments end |
#body ⇒ Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1MessageBody
A message body containing text.
Corresponds to the JSON property body
142 143 144 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 142 def body @body end |
#create_time ⇒ String
The Message creation timestamp.
Corresponds to the JSON property createTime
147 148 149 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 147 def create_time @create_time end |
#localization_time ⇒ String
Time when Message was localized
Corresponds to the JSON property localizationTime
152 153 154 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 152 def localization_time @localization_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
159 160 161 162 163 164 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 159 def update!(**args) @attachments = args[:attachments] if args.key?(:attachments) @body = args[:body] if args.key?(:body) @create_time = args[:create_time] if args.key?(:create_time) @localization_time = args[:localization_time] if args.key?(:localization_time) end |