Class: Google::Apis::EssentialcontactsV1::GoogleCloudEssentialcontactsV1SendTestMessageRequest
- Inherits:
-
Object
- Object
- Google::Apis::EssentialcontactsV1::GoogleCloudEssentialcontactsV1SendTestMessageRequest
- 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
-
#contacts ⇒ Array<String>
Required.
-
#notification_category ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudEssentialcontactsV1SendTestMessageRequest
constructor
A new instance of GoogleCloudEssentialcontactsV1SendTestMessageRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudEssentialcontactsV1SendTestMessageRequest
Returns a new instance of GoogleCloudEssentialcontactsV1SendTestMessageRequest.
158 159 160 |
# File 'lib/google/apis/essentialcontacts_v1/classes.rb', line 158 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contacts ⇒ Array<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
150 151 152 |
# File 'lib/google/apis/essentialcontacts_v1/classes.rb', line 150 def contacts @contacts end |
#notification_category ⇒ String
Required. The notification category to send the test message for. All contacts
must be subscribed to this category.
Corresponds to the JSON property notificationCategory
156 157 158 |
# File 'lib/google/apis/essentialcontacts_v1/classes.rb', line 156 def notification_category @notification_category end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
163 164 165 166 |
# File 'lib/google/apis/essentialcontacts_v1/classes.rb', line 163 def update!(**args) @contacts = args[:contacts] if args.key?(:contacts) @notification_category = args[:notification_category] if args.key?(:notification_category) end |