Class: Google::Apis::EssentialcontactsV1::GoogleCloudEssentialcontactsV1SendTestMessageRequest

Inherits:
Object
  • Object
show all
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

Request message for the SendTestMessage method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudEssentialcontactsV1SendTestMessageRequest

Returns a new instance of GoogleCloudEssentialcontactsV1SendTestMessageRequest.



157
158
159
# File 'lib/google/apis/essentialcontacts_v1/classes.rb', line 157

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

Instance Attribute Details

#contactsArray<String>

Required. The list of names of the contacts to send a test message to. Format: organizations/organization_id/contacts/contact_id, folders/folder_id/ contacts/contact_id or projects/project_id/contacts/contact_id Corresponds to the JSON property contacts

Returns:

  • (Array<String>)


149
150
151
# File 'lib/google/apis/essentialcontacts_v1/classes.rb', line 149

def contacts
  @contacts
end

#notification_categoryString

Required. The notification category to send the test message for. All contacts must be subscribed to this category. Corresponds to the JSON property notificationCategory

Returns:

  • (String)


155
156
157
# File 'lib/google/apis/essentialcontacts_v1/classes.rb', line 155

def notification_category
  @notification_category
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



162
163
164
165
# File 'lib/google/apis/essentialcontacts_v1/classes.rb', line 162

def update!(**args)
  @contacts = args[:contacts] if args.key?(:contacts)
  @notification_category = args[:notification_category] if args.key?(:notification_category)
end