Class: Google::Apis::AlertcenterV1beta1::ResourceInfo

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

Overview

Proto that contains resource information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceInfo

Returns a new instance of ResourceInfo.



1774
1775
1776
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1774

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

Instance Attribute Details

#chat_attachment_idString

Chat attachment ID. Corresponds to the JSON property chatAttachmentId

Returns:

  • (String)


1751
1752
1753
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1751

def chat_attachment_id
  @chat_attachment_id
end

#chat_message_idString

Chat message ID. Corresponds to the JSON property chatMessageId

Returns:

  • (String)


1756
1757
1758
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1756

def chat_message_id
  @chat_message_id
end

#device_idString

Id to identify a device. For example, for Android devices, this is the " Android Device Id" and for Chrome OS devices, it's the "Device Virtual Id". Corresponds to the JSON property deviceId

Returns:

  • (String)


1762
1763
1764
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1762

def device_id
  @device_id
end

#document_idString

Drive file ID. Corresponds to the JSON property documentId

Returns:

  • (String)


1767
1768
1769
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1767

def document_id
  @document_id
end

#resource_titleString

Title of the resource, for example email subject, or document title. Corresponds to the JSON property resourceTitle

Returns:

  • (String)


1772
1773
1774
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1772

def resource_title
  @resource_title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1779
1780
1781
1782
1783
1784
1785
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1779

def update!(**args)
  @chat_attachment_id = args[:chat_attachment_id] if args.key?(:chat_attachment_id)
  @chat_message_id = args[:chat_message_id] if args.key?(:chat_message_id)
  @device_id = args[:device_id] if args.key?(:device_id)
  @document_id = args[:document_id] if args.key?(:document_id)
  @resource_title = args[:resource_title] if args.key?(:resource_title)
end