Class: Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Notification
- Inherits:
-
Object
- Object
- Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Notification
- 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
-
#create_time ⇒ String
Output only.
-
#messages ⇒ Array<Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Message>
A list of messages in the notification.
-
#name ⇒ String
The resource name of the notification.
-
#notification_type ⇒ String
Type of notification Corresponds to the JSON property
notificationType. -
#subject ⇒ Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Subject
A subject line of a notification.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAdvisorynotificationsV1Notification
constructor
A new instance of GoogleCloudAdvisorynotificationsV1Notification.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_time ⇒ String
Output only. Time the notification was created.
Corresponds to the JSON property createTime
194 195 196 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 194 def create_time @create_time end |
#messages ⇒ Array<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 end |
#name ⇒ String
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
206 207 208 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 206 def name @name end |
#notification_type ⇒ String
Type of notification
Corresponds to the JSON property notificationType
211 212 213 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 211 def notification_type @notification_type end |
#subject ⇒ Google::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 |