Class: Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Notification

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 notification object for notifying customers about security and privacy issues.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAdvisorynotificationsV1Notification

Returns a new instance of GoogleCloudAdvisorynotificationsV1Notification.



218
219
220
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 218

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

Instance Attribute Details

#create_timeString

Output only. Time the notification was created. Corresponds to the JSON property createTime

Returns:

  • (String)


194
195
196
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 194

def create_time
  @create_time
end

#messagesArray<Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Message>

A list of messages in the notification. Corresponds to the JSON property messages



199
200
201
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 199

def messages
  @messages
end

#nameString

The resource name of the notification. Format: organizations/organization/ locations/location/notifications/notification or projects/project/ locations/location/notifications/notification. Corresponds to the JSON property name

Returns:

  • (String)


206
207
208
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 206

def name
  @name
end

#notification_typeString

Type of notification Corresponds to the JSON property notificationType

Returns:

  • (String)


211
212
213
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 211

def notification_type
  @notification_type
end

#subjectGoogle::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Subject

A subject line of a notification. Corresponds to the JSON property subject



216
217
218
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 216

def subject
  @subject
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



223
224
225
226
227
228
229
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 223

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @messages = args[:messages] if args.key?(:messages)
  @name = args[:name] if args.key?(:name)
  @notification_type = args[:notification_type] if args.key?(:notification_type)
  @subject = args[:subject] if args.key?(:subject)
end