Class: Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/androidenterprise_v1/classes.rb,
generated/google/apis/androidenterprise_v1/representations.rb,
generated/google/apis/androidenterprise_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SendTestPushNotificationResponse

Returns a new instance of SendTestPushNotificationResponse.


718
719
720
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 718

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

Instance Attribute Details

#message_idString

The message ID of the test push notification that was sent. Corresponds to the JSON property messageId

Returns:

  • (String)

710
711
712
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 710

def message_id
  @message_id
end

#topic_nameString

The name of the Cloud Pub/Sub topic to which notifications for this enterprise' s enrolled account will be sent. Corresponds to the JSON property topicName

Returns:

  • (String)

716
717
718
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 716

def topic_name
  @topic_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


723
724
725
726
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 723

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