Class: Google::Apis::ClassroomV1::DriveFile

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/classroom_v1/classes.rb,
generated/google/apis/classroom_v1/representations.rb,
generated/google/apis/classroom_v1/representations.rb

Overview

Representation of a Google Drive file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DriveFile

Returns a new instance of DriveFile.


283
284
285
# File 'generated/google/apis/classroom_v1/classes.rb', line 283

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

Instance Attribute Details

URL that can be used to access the Drive item. Read-only. Corresponds to the JSON property alternateLink

Returns:

  • (String)

276
277
278
# File 'generated/google/apis/classroom_v1/classes.rb', line 276

def alternate_link
  @alternate_link
end

#idString

Drive API resource ID. Corresponds to the JSON property id

Returns:

  • (String)

266
267
268
# File 'generated/google/apis/classroom_v1/classes.rb', line 266

def id
  @id
end

#thumbnail_urlString

URL of a thumbnail image of the Drive item. Read-only. Corresponds to the JSON property thumbnailUrl

Returns:

  • (String)

281
282
283
# File 'generated/google/apis/classroom_v1/classes.rb', line 281

def thumbnail_url
  @thumbnail_url
end

#titleString

Title of the Drive item. Read-only. Corresponds to the JSON property title

Returns:

  • (String)

271
272
273
# File 'generated/google/apis/classroom_v1/classes.rb', line 271

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


288
289
290
291
292
293
# File 'generated/google/apis/classroom_v1/classes.rb', line 288

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @title = args[:title] if args.key?(:title)
  @alternate_link = args[:alternate_link] if args.key?(:alternate_link)
  @thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url)
end