Class: Google::Apis::ChatV1::RichLinkMetadata
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::RichLinkMetadata
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb
Overview
A rich link to a resource.
Instance Attribute Summary collapse
-
#chat_space_link_data ⇒ Google::Apis::ChatV1::ChatSpaceLinkData
Data for Chat space links.
-
#drive_link_data ⇒ Google::Apis::ChatV1::DriveLinkData
Data for Google Drive links.
-
#rich_link_type ⇒ String
The rich link type.
-
#uri ⇒ String
The URI of this link.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RichLinkMetadata
constructor
A new instance of RichLinkMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RichLinkMetadata
Returns a new instance of RichLinkMetadata.
4798 4799 4800 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4798 def initialize(**args) update!(**args) end |
Instance Attribute Details
#chat_space_link_data ⇒ Google::Apis::ChatV1::ChatSpaceLinkData
Data for Chat space links.
Corresponds to the JSON property chatSpaceLinkData
4781 4782 4783 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4781 def chat_space_link_data @chat_space_link_data end |
#drive_link_data ⇒ Google::Apis::ChatV1::DriveLinkData
Data for Google Drive links.
Corresponds to the JSON property driveLinkData
4786 4787 4788 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4786 def drive_link_data @drive_link_data end |
#rich_link_type ⇒ String
The rich link type.
Corresponds to the JSON property richLinkType
4791 4792 4793 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4791 def rich_link_type @rich_link_type end |
#uri ⇒ String
The URI of this link.
Corresponds to the JSON property uri
4796 4797 4798 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4796 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4803 4804 4805 4806 4807 4808 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4803 def update!(**args) @chat_space_link_data = args[:chat_space_link_data] if args.key?(:chat_space_link_data) @drive_link_data = args[:drive_link_data] if args.key?(:drive_link_data) @rich_link_type = args[:rich_link_type] if args.key?(:rich_link_type) @uri = args[:uri] if args.key?(:uri) end |