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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SendTestPushNotificationResponse

Returns a new instance of SendTestPushNotificationResponse.



1006
1007
1008
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1006

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)


998
999
1000
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 998

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)


1004
1005
1006
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1004

def topic_name
  @topic_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1011
1012
1013
1014
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1011

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