Class: Google::Apis::EssentialcontactsV1::GoogleCloudEssentialcontactsV1Contact
- Inherits:
-
Object
- Object
- Google::Apis::EssentialcontactsV1::GoogleCloudEssentialcontactsV1Contact
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/essentialcontacts_v1/classes.rb,
lib/google/apis/essentialcontacts_v1/representations.rb,
lib/google/apis/essentialcontacts_v1/representations.rb
Overview
A contact that will receive notifications from Google Cloud.
Instance Attribute Summary collapse
-
#email ⇒ String
Required.
-
#language_tag ⇒ String
The preferred language for notifications, as a ISO 639-1 language code.
-
#name ⇒ String
The identifier for the contact.
-
#notification_category_subscriptions ⇒ Array<String>
The categories of notifications that the contact will receive communications for.
-
#validate_time ⇒ String
The last time the validation_state was updated, either manually or automatically.
-
#validation_state ⇒ String
The validity of the contact.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudEssentialcontactsV1Contact
constructor
A new instance of GoogleCloudEssentialcontactsV1Contact.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudEssentialcontactsV1Contact
Returns a new instance of GoogleCloudEssentialcontactsV1Contact.
97 98 99 |
# File 'lib/google/apis/essentialcontacts_v1/classes.rb', line 97 def initialize(**args) update!(**args) end |
Instance Attribute Details
#email ⇒ String
Required. The email address to send notifications to. This does not need to be
a Google account.
Corresponds to the JSON property email
63 64 65 |
# File 'lib/google/apis/essentialcontacts_v1/classes.rb', line 63 def email @email end |
#language_tag ⇒ String
The preferred language for notifications, as a ISO 639-1 language code. See
Supported languages for a list of supported languages.
Corresponds to the JSON property languageTag
70 71 72 |
# File 'lib/google/apis/essentialcontacts_v1/classes.rb', line 70 def language_tag @language_tag end |
#name ⇒ String
The identifier for the contact. Format: resource_type/resource_id/contacts/
contact_id
Corresponds to the JSON property name
76 77 78 |
# File 'lib/google/apis/essentialcontacts_v1/classes.rb', line 76 def name @name end |
#notification_category_subscriptions ⇒ Array<String>
The categories of notifications that the contact will receive communications
for.
Corresponds to the JSON property notificationCategorySubscriptions
82 83 84 |
# File 'lib/google/apis/essentialcontacts_v1/classes.rb', line 82 def notification_category_subscriptions @notification_category_subscriptions end |
#validate_time ⇒ 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
89 90 91 |
# File 'lib/google/apis/essentialcontacts_v1/classes.rb', line 89 def validate_time @validate_time end |
#validation_state ⇒ 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
95 96 97 |
# File 'lib/google/apis/essentialcontacts_v1/classes.rb', line 95 def validation_state @validation_state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
102 103 104 105 106 107 108 109 |
# 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 |