Class: Google::Apis::ChatV1::RichLinkMetadata

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RichLinkMetadata

Returns a new instance of RichLinkMetadata.



5011
5012
5013
# File 'lib/google/apis/chat_v1/classes.rb', line 5011

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

Instance Attribute Details

Data for Chat space links. Corresponds to the JSON property chatSpaceLinkData



4994
4995
4996
# File 'lib/google/apis/chat_v1/classes.rb', line 4994

def chat_space_link_data
  @chat_space_link_data
end

Data for Google Drive links. Corresponds to the JSON property driveLinkData



4999
5000
5001
# File 'lib/google/apis/chat_v1/classes.rb', line 4999

def drive_link_data
  @drive_link_data
end

The rich link type. Corresponds to the JSON property richLinkType

Returns:

  • (String)


5004
5005
5006
# File 'lib/google/apis/chat_v1/classes.rb', line 5004

def rich_link_type
  @rich_link_type
end

#uriString

The URI of this link. Corresponds to the JSON property uri

Returns:

  • (String)


5009
5010
5011
# File 'lib/google/apis/chat_v1/classes.rb', line 5009

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5016
5017
5018
5019
5020
5021
# File 'lib/google/apis/chat_v1/classes.rb', line 5016

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