class Google::Apis::EssentialcontactsV1::GoogleCloudEssentialcontactsV1Contact
A contact that will receive notifications from Google
Cloud.
Attributes
Required. The email address to send notifications to. This does not need to be a Google
account. Corresponds to the JSON property `email` @return [String]
The preferred language for notifications, as a ISO 639-1 language code. See [ Supported languages](cloud.google.com/resource-manager/docs/managing- notification-contacts#supported-languages) for a list of supported languages. Corresponds to the JSON property `languageTag` @return [String]
The identifier for the contact. Format: `resource_type`/`resource_id`/contacts/ `contact_id` Corresponds to the JSON property `name` @return [String]
The categories of notifications that the contact will receive communications for. Corresponds to the JSON property `notificationCategorySubscriptions` @return [Array<String>]
The last time the validation_state
was updated, either manually or automatically. A contact is considered stale if its validation state was updated more than 1 year ago. Corresponds to the JSON property `validateTime` @return [String]
The validity of the contact. A contact is considered valid if it is the correct recipient for notifications for a particular resource. Corresponds to the JSON property `validationState` @return [String]
Public Class Methods
# File lib/google/apis/essentialcontacts_v1/classes.rb, line 97 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/essentialcontacts_v1/classes.rb, line 102 def update!(**args) @email = args[:email] if args.key?(:email) @language_tag = args[:language_tag] if args.key?(:language_tag) @name = args[:name] if args.key?(:name) @notification_category_subscriptions = args[:notification_category_subscriptions] if args.key?(:notification_category_subscriptions) @validate_time = args[:validate_time] if args.key?(:validate_time) @validation_state = args[:validation_state] if args.key?(:validation_state) end