Class: Google::Apis::SheetsV4::RichLinkProperties
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::RichLinkProperties
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sheets_v4/classes.rb,
lib/google/apis/sheets_v4/representations.rb,
lib/google/apis/sheets_v4/representations.rb
Overview
Properties of a link to a Google resource (such as a file in Drive, a YouTube
video, a Maps address, or a Calendar event). Only Drive files can be written
as chips. All other rich link types are read only. URIs cannot exceed 2000
bytes when writing. NOTE: Writing Drive file chips requires at least one of
the drive.file, drive.readonly, or drive OAuth scopes.
Instance Attribute Summary collapse
-
#mime_type ⇒ String
Output only.
-
#uri ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RichLinkProperties
constructor
A new instance of RichLinkProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RichLinkProperties
Returns a new instance of RichLinkProperties.
8893 8894 8895 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 8893 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mime_type ⇒ String
Output only. The MIME type of the link, if there's one (for example, when it's a file in Drive).
Corresponds to the JSON property mimeType
8886 8887 8888 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 8886 def mime_type @mime_type end |
#uri ⇒ String
Required. The URI to the link. This is always present.
Corresponds to the JSON property uri
8891 8892 8893 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 8891 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8898 8899 8900 8901 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 8898 def update!(**args) @mime_type = args[:mime_type] if args.key?(:mime_type) @uri = args[:uri] if args.key?(:uri) end |