Class: Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Message

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 message which contains notification details.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attachmentsArray<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
  @attachments
end

#bodyGoogle::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_timeString

The Message creation timestamp. Corresponds to the JSON property createTime

Returns:

  • (String)


147
148
149
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 147

def create_time
  @create_time
end

#localization_timeString

Time when Message was localized Corresponds to the JSON property localizationTime

Returns:

  • (String)


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