Essential Contacts V1 API - Class Google::Cloud::EssentialContacts::V1::Contact (v1.0.1)

Reference documentation and code samples for the Essential Contacts V1 API class Google::Cloud::EssentialContacts::V1::Contact.

A contact that will receive notifications from Google Cloud.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#email

def email() -> ::String
Returns
  • (::String) — Required. The email address to send notifications to. The email address does not need to be a Google Account.

#email=

def email=(value) -> ::String
Parameter
  • value (::String) — Required. The email address to send notifications to. The email address does not need to be a Google Account.
Returns
  • (::String) — Required. The email address to send notifications to. The email address does not need to be a Google Account.

#language_tag

def language_tag() -> ::String
Returns
  • (::String) — Required. The preferred language for notifications, as a ISO 639-1 language code. See Supported languages for a list of supported languages.

#language_tag=

def language_tag=(value) -> ::String
Parameter
  • value (::String) — Required. The preferred language for notifications, as a ISO 639-1 language code. See Supported languages for a list of supported languages.
Returns
  • (::String) — Required. The preferred language for notifications, as a ISO 639-1 language code. See Supported languages for a list of supported languages.

#name

def name() -> ::String
Returns
  • (::String) — Output only. The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}

#notification_category_subscriptions

def notification_category_subscriptions() -> ::Array<::Google::Cloud::EssentialContacts::V1::NotificationCategory>
Returns

#notification_category_subscriptions=

def notification_category_subscriptions=(value) -> ::Array<::Google::Cloud::EssentialContacts::V1::NotificationCategory>
Parameter
Returns

#validate_time

def validate_time() -> ::Google::Protobuf::Timestamp
Returns
  • (::Google::Protobuf::Timestamp) — 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.

#validate_time=

def validate_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
  • value (::Google::Protobuf::Timestamp) — 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.
Returns
  • (::Google::Protobuf::Timestamp) — 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.

#validation_state

def validation_state() -> ::Google::Cloud::EssentialContacts::V1::ValidationState
Returns

#validation_state=

def validation_state=(value) -> ::Google::Cloud::EssentialContacts::V1::ValidationState
Parameter
Returns