Class: MicrosoftGraph::Models::DriveItem

Inherits:
BaseItem show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/drive_item.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseItem

#created_by, #created_by=, #created_by_user, #created_by_user=, #created_date_time, #created_date_time=, #description, #description=, #e_tag, #e_tag=, #last_modified_by, #last_modified_by=, #last_modified_by_user, #last_modified_by_user=, #last_modified_date_time, #last_modified_date_time=, #name, #name=, #parent_reference, #parent_reference=, #web_url, #web_url=

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new driveItem and sets the default values.



184
185
186
187
# File 'lib/models/drive_item.rb', line 184

def initialize()
    super
    @odata_type = "#microsoft.graph.driveItem"
end

Class Method Details

.create_from_discriminator_value(parse_node) ⇒ Object

Creates a new instance of the appropriate class based on discriminator value

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a drive_item

Raises:

  • (StandardError)


208
209
210
211
# File 'lib/models/drive_item.rb', line 208

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return DriveItem.new
end

Instance Method Details

#analyticsObject

Gets the analytics property value. Analytics about the view activities that took place on this item.

Returns:

  • a item_analytics



109
110
111
# File 'lib/models/drive_item.rb', line 109

def analytics
    return @analytics
end

#analytics=(value) ⇒ Object

Sets the analytics property value. Analytics about the view activities that took place on this item.

Parameters:

  • value

    Value to set for the analytics property.

Returns:

  • a void



117
118
119
# File 'lib/models/drive_item.rb', line 117

def analytics=(value)
    @analytics = value
end

#audioObject

Gets the audio property value. Audio metadata, if the item is an audio file. Read-only. Read-only. Only on OneDrive Personal.

Returns:

  • a audio



124
125
126
# File 'lib/models/drive_item.rb', line 124

def audio
    return @audio
end

#audio=(value) ⇒ Object

Sets the audio property value. Audio metadata, if the item is an audio file. Read-only. Read-only. Only on OneDrive Personal.

Parameters:

  • value

    Value to set for the audio property.

Returns:

  • a void



132
133
134
# File 'lib/models/drive_item.rb', line 132

def audio=(value)
    @audio = value
end

#bundleObject

Gets the bundle property value. Bundle metadata, if the item is a bundle. Read-only.

Returns:

  • a bundle



139
140
141
# File 'lib/models/drive_item.rb', line 139

def bundle
    return @bundle
end

#bundle=(value) ⇒ Object

Sets the bundle property value. Bundle metadata, if the item is a bundle. Read-only.

Parameters:

  • value

    Value to set for the bundle property.

Returns:

  • a void



147
148
149
# File 'lib/models/drive_item.rb', line 147

def bundle=(value)
    @bundle = value
end

#c_tagObject

Gets the cTag property value. An eTag for the content of the item. This eTag is not changed if only the metadata is changed. Note This property is not returned if the item is a folder. Read-only.

Returns:

  • a string



154
155
156
# File 'lib/models/drive_item.rb', line 154

def c_tag
    return @c_tag
end

#c_tag=(value) ⇒ Object

Sets the cTag property value. An eTag for the content of the item. This eTag is not changed if only the metadata is changed. Note This property is not returned if the item is a folder. Read-only.

Parameters:

  • value

    Value to set for the cTag property.

Returns:

  • a void



162
163
164
# File 'lib/models/drive_item.rb', line 162

def c_tag=(value)
    @c_tag = value
end

#childrenObject

Gets the children property value. Collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable.

Returns:

  • a drive_item



169
170
171
# File 'lib/models/drive_item.rb', line 169

def children
    return @children
end

#children=(value) ⇒ Object

Sets the children property value. Collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable.

Parameters:

  • value

    Value to set for the children property.

Returns:

  • a void



177
178
179
# File 'lib/models/drive_item.rb', line 177

def children=(value)
    @children = value
end

#contentObject

Gets the content property value. The content stream, if the item represents a file.

Returns:

  • a base64url



192
193
194
# File 'lib/models/drive_item.rb', line 192

def content
    return @content
end

#content=(value) ⇒ Object

Sets the content property value. The content stream, if the item represents a file.

Parameters:

  • value

    Value to set for the content property.

Returns:

  • a void



200
201
202
# File 'lib/models/drive_item.rb', line 200

def content=(value)
    @content = value
end

#deletedObject

Gets the deleted property value. Information about the deleted state of the item. Read-only.

Returns:

  • a deleted



216
217
218
# File 'lib/models/drive_item.rb', line 216

def deleted
    return @deleted
end

#deleted=(value) ⇒ Object

Sets the deleted property value. Information about the deleted state of the item. Read-only.

Parameters:

  • value

    Value to set for the deleted property.

Returns:

  • a void



224
225
226
# File 'lib/models/drive_item.rb', line 224

def deleted=(value)
    @deleted = value
end

#fileObject

Gets the file property value. File metadata, if the item is a file. Read-only.

Returns:

  • a file



231
232
233
# File 'lib/models/drive_item.rb', line 231

def file
    return @file
end

#file=(value) ⇒ Object

Sets the file property value. File metadata, if the item is a file. Read-only.

Parameters:

  • value

    Value to set for the file property.

Returns:

  • a void



239
240
241
# File 'lib/models/drive_item.rb', line 239

def file=(value)
    @file = value
end

#file_system_infoObject

Gets the fileSystemInfo property value. File system information on client. Read-write.

Returns:

  • a file_system_info



246
247
248
# File 'lib/models/drive_item.rb', line 246

def file_system_info
    return @file_system_info
end

#file_system_info=(value) ⇒ Object

Sets the fileSystemInfo property value. File system information on client. Read-write.

Parameters:

  • value

    Value to set for the fileSystemInfo property.

Returns:

  • a void



254
255
256
# File 'lib/models/drive_item.rb', line 254

def file_system_info=(value)
    @file_system_info = value
end

#folderObject

Gets the folder property value. Folder metadata, if the item is a folder. Read-only.

Returns:

  • a folder



261
262
263
# File 'lib/models/drive_item.rb', line 261

def folder
    return @folder
end

#folder=(value) ⇒ Object

Sets the folder property value. Folder metadata, if the item is a folder. Read-only.

Parameters:

  • value

    Value to set for the folder property.

Returns:

  • a void



269
270
271
# File 'lib/models/drive_item.rb', line 269

def folder=(value)
    @folder = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
# File 'lib/models/drive_item.rb', line 276

def get_field_deserializers()
    return super.merge({
        "analytics" => lambda {|n| @analytics = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ItemAnalytics.create_from_discriminator_value(pn) }) },
        "audio" => lambda {|n| @audio = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Audio.create_from_discriminator_value(pn) }) },
        "bundle" => lambda {|n| @bundle = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Bundle.create_from_discriminator_value(pn) }) },
        "cTag" => lambda {|n| @c_tag = n.get_string_value() },
        "children" => lambda {|n| @children = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }) },
        "content" => lambda {|n| @content = n.get_object_value(lambda {|pn| Base64url.create_from_discriminator_value(pn) }) },
        "deleted" => lambda {|n| @deleted = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Deleted.create_from_discriminator_value(pn) }) },
        "file" => lambda {|n| @file = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::File.create_from_discriminator_value(pn) }) },
        "fileSystemInfo" => lambda {|n| @file_system_info = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::FileSystemInfo.create_from_discriminator_value(pn) }) },
        "folder" => lambda {|n| @folder = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Folder.create_from_discriminator_value(pn) }) },
        "image" => lambda {|n| @image = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Image.create_from_discriminator_value(pn) }) },
        "listItem" => lambda {|n| @list_item = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ListItem.create_from_discriminator_value(pn) }) },
        "location" => lambda {|n| @location = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::GeoCoordinates.create_from_discriminator_value(pn) }) },
        "malware" => lambda {|n| @malware = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Malware.create_from_discriminator_value(pn) }) },
        "package" => lambda {|n| @package = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Package.create_from_discriminator_value(pn) }) },
        "pendingOperations" => lambda {|n| @pending_operations = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::PendingOperations.create_from_discriminator_value(pn) }) },
        "permissions" => lambda {|n| @permissions = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Permission.create_from_discriminator_value(pn) }) },
        "photo" => lambda {|n| @photo = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Photo.create_from_discriminator_value(pn) }) },
        "publication" => lambda {|n| @publication = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::PublicationFacet.create_from_discriminator_value(pn) }) },
        "remoteItem" => lambda {|n| @remote_item = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::RemoteItem.create_from_discriminator_value(pn) }) },
        "root" => lambda {|n| @root = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Root.create_from_discriminator_value(pn) }) },
        "searchResult" => lambda {|n| @search_result = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SearchResult.create_from_discriminator_value(pn) }) },
        "shared" => lambda {|n| @shared = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Shared.create_from_discriminator_value(pn) }) },
        "sharepointIds" => lambda {|n| @sharepoint_ids = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SharepointIds.create_from_discriminator_value(pn) }) },
        "size" => lambda {|n| @size = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) },
        "specialFolder" => lambda {|n| @special_folder = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SpecialFolder.create_from_discriminator_value(pn) }) },
        "subscriptions" => lambda {|n| @subscriptions = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Subscription.create_from_discriminator_value(pn) }) },
        "thumbnails" => lambda {|n| @thumbnails = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ThumbnailSet.create_from_discriminator_value(pn) }) },
        "versions" => lambda {|n| @versions = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DriveItemVersion.create_from_discriminator_value(pn) }) },
        "video" => lambda {|n| @video = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Video.create_from_discriminator_value(pn) }) },
        "webDavUrl" => lambda {|n| @web_dav_url = n.get_string_value() },
        "workbook" => lambda {|n| @workbook = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Workbook.create_from_discriminator_value(pn) }) },
    })
end

#imageObject

Gets the image property value. Image metadata, if the item is an image. Read-only.

Returns:

  • a image



316
317
318
# File 'lib/models/drive_item.rb', line 316

def image
    return @image
end

#image=(value) ⇒ Object

Sets the image property value. Image metadata, if the item is an image. Read-only.

Parameters:

  • value

    Value to set for the image property.

Returns:

  • a void



324
325
326
# File 'lib/models/drive_item.rb', line 324

def image=(value)
    @image = value
end

#list_itemObject

Gets the listItem property value. For drives in SharePoint, the associated document library list item. Read-only. Nullable.

Returns:

  • a list_item



331
332
333
# File 'lib/models/drive_item.rb', line 331

def list_item
    return @list_item
end

#list_item=(value) ⇒ Object

Sets the listItem property value. For drives in SharePoint, the associated document library list item. Read-only. Nullable.

Parameters:

  • value

    Value to set for the listItem property.

Returns:

  • a void



339
340
341
# File 'lib/models/drive_item.rb', line 339

def list_item=(value)
    @list_item = value
end

#locationObject

Gets the location property value. Location metadata, if the item has location data. Read-only.

Returns:

  • a geo_coordinates



346
347
348
# File 'lib/models/drive_item.rb', line 346

def location
    return @location
end

#location=(value) ⇒ Object

Sets the location property value. Location metadata, if the item has location data. Read-only.

Parameters:

  • value

    Value to set for the location property.

Returns:

  • a void



354
355
356
# File 'lib/models/drive_item.rb', line 354

def location=(value)
    @location = value
end

#malwareObject

Gets the malware property value. Malware metadata, if the item was detected to contain malware. Read-only.

Returns:

  • a malware



361
362
363
# File 'lib/models/drive_item.rb', line 361

def malware
    return @malware
end

#malware=(value) ⇒ Object

Sets the malware property value. Malware metadata, if the item was detected to contain malware. Read-only.

Parameters:

  • value

    Value to set for the malware property.

Returns:

  • a void



369
370
371
# File 'lib/models/drive_item.rb', line 369

def malware=(value)
    @malware = value
end

#packageObject

Gets the package property value. If present, indicates that this item is a package instead of a folder or file. Packages are treated like files in some contexts and folders in others. Read-only.

Returns:

  • a package



376
377
378
# File 'lib/models/drive_item.rb', line 376

def package
    return @package
end

#package=(value) ⇒ Object

Sets the package property value. If present, indicates that this item is a package instead of a folder or file. Packages are treated like files in some contexts and folders in others. Read-only.

Parameters:

  • value

    Value to set for the package property.

Returns:

  • a void



384
385
386
# File 'lib/models/drive_item.rb', line 384

def package=(value)
    @package = value
end

#pending_operationsObject

Gets the pendingOperations property value. If present, indicates that one or more operations that might affect the state of the driveItem are pending completion. Read-only.

Returns:

  • a pending_operations



391
392
393
# File 'lib/models/drive_item.rb', line 391

def pending_operations
    return @pending_operations
end

#pending_operations=(value) ⇒ Object

Sets the pendingOperations property value. If present, indicates that one or more operations that might affect the state of the driveItem are pending completion. Read-only.

Parameters:

  • value

    Value to set for the pendingOperations property.

Returns:

  • a void



399
400
401
# File 'lib/models/drive_item.rb', line 399

def pending_operations=(value)
    @pending_operations = value
end

#permissionsObject

Gets the permissions property value. The set of permissions for the item. Read-only. Nullable.

Returns:

  • a permission



406
407
408
# File 'lib/models/drive_item.rb', line 406

def permissions
    return @permissions
end

#permissions=(value) ⇒ Object

Sets the permissions property value. The set of permissions for the item. Read-only. Nullable.

Parameters:

  • value

    Value to set for the permissions property.

Returns:

  • a void



414
415
416
# File 'lib/models/drive_item.rb', line 414

def permissions=(value)
    @permissions = value
end

#photoObject

Gets the photo property value. Photo metadata, if the item is a photo. Read-only.

Returns:

  • a photo



421
422
423
# File 'lib/models/drive_item.rb', line 421

def photo
    return @photo
end

#photo=(value) ⇒ Object

Sets the photo property value. Photo metadata, if the item is a photo. Read-only.

Parameters:

  • value

    Value to set for the photo property.

Returns:

  • a void



429
430
431
# File 'lib/models/drive_item.rb', line 429

def photo=(value)
    @photo = value
end

#publicationObject

Gets the publication property value. Provides information about the published or checked-out state of an item, in locations that support such actions. This property is not returned by default. Read-only.

Returns:

  • a publication_facet



436
437
438
# File 'lib/models/drive_item.rb', line 436

def publication
    return @publication
end

#publication=(value) ⇒ Object

Sets the publication property value. Provides information about the published or checked-out state of an item, in locations that support such actions. This property is not returned by default. Read-only.

Parameters:

  • value

    Value to set for the publication property.

Returns:

  • a void



444
445
446
# File 'lib/models/drive_item.rb', line 444

def publication=(value)
    @publication = value
end

#remote_itemObject

Gets the remoteItem property value. Remote item data, if the item is shared from a drive other than the one being accessed. Read-only.

Returns:

  • a remote_item



451
452
453
# File 'lib/models/drive_item.rb', line 451

def remote_item
    return @remote_item
end

#remote_item=(value) ⇒ Object

Sets the remoteItem property value. Remote item data, if the item is shared from a drive other than the one being accessed. Read-only.

Parameters:

  • value

    Value to set for the remoteItem property.

Returns:

  • a void



459
460
461
# File 'lib/models/drive_item.rb', line 459

def remote_item=(value)
    @remote_item = value
end

#rootObject

Gets the root property value. If this property is non-null, it indicates that the driveItem is the top-most driveItem in the drive.

Returns:

  • a root



466
467
468
# File 'lib/models/drive_item.rb', line 466

def root
    return @root
end

#root=(value) ⇒ Object

Sets the root property value. If this property is non-null, it indicates that the driveItem is the top-most driveItem in the drive.

Parameters:

  • value

    Value to set for the root property.

Returns:

  • a void



474
475
476
# File 'lib/models/drive_item.rb', line 474

def root=(value)
    @root = value
end

#search_resultObject

Gets the searchResult property value. Search metadata, if the item is from a search result. Read-only.

Returns:

  • a search_result



481
482
483
# File 'lib/models/drive_item.rb', line 481

def search_result
    return @search_result
end

#search_result=(value) ⇒ Object

Sets the searchResult property value. Search metadata, if the item is from a search result. Read-only.

Parameters:

  • value

    Value to set for the searchResult property.

Returns:

  • a void



489
490
491
# File 'lib/models/drive_item.rb', line 489

def search_result=(value)
    @search_result = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
# File 'lib/models/drive_item.rb', line 497

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("analytics", @analytics)
    writer.write_object_value("audio", @audio)
    writer.write_object_value("bundle", @bundle)
    writer.write_string_value("cTag", @c_tag)
    writer.write_collection_of_object_values("children", @children)
    writer.write_object_value("content", @content)
    writer.write_object_value("deleted", @deleted)
    writer.write_object_value("file", @file)
    writer.write_object_value("fileSystemInfo", @file_system_info)
    writer.write_object_value("folder", @folder)
    writer.write_object_value("image", @image)
    writer.write_object_value("listItem", @list_item)
    writer.write_object_value("location", @location)
    writer.write_object_value("malware", @malware)
    writer.write_object_value("package", @package)
    writer.write_object_value("pendingOperations", @pending_operations)
    writer.write_collection_of_object_values("permissions", @permissions)
    writer.write_object_value("photo", @photo)
    writer.write_object_value("publication", @publication)
    writer.write_object_value("remoteItem", @remote_item)
    writer.write_object_value("root", @root)
    writer.write_object_value("searchResult", @search_result)
    writer.write_object_value("shared", @shared)
    writer.write_object_value("sharepointIds", @sharepoint_ids)
    writer.write_object_value("size", @size)
    writer.write_object_value("specialFolder", @special_folder)
    writer.write_collection_of_object_values("subscriptions", @subscriptions)
    writer.write_collection_of_object_values("thumbnails", @thumbnails)
    writer.write_collection_of_object_values("versions", @versions)
    writer.write_object_value("video", @video)
    writer.write_string_value("webDavUrl", @web_dav_url)
    writer.write_object_value("workbook", @workbook)
end

#sharedObject

Gets the shared property value. Indicates that the item has been shared with others and provides information about the shared state of the item. Read-only.

Returns:

  • a shared



537
538
539
# File 'lib/models/drive_item.rb', line 537

def shared
    return @shared
end

#shared=(value) ⇒ Object

Sets the shared property value. Indicates that the item has been shared with others and provides information about the shared state of the item. Read-only.

Parameters:

  • value

    Value to set for the shared property.

Returns:

  • a void



545
546
547
# File 'lib/models/drive_item.rb', line 545

def shared=(value)
    @shared = value
end

#sharepoint_idsObject

Gets the sharepointIds property value. Returns identifiers useful for SharePoint REST compatibility. Read-only.

Returns:

  • a sharepoint_ids



552
553
554
# File 'lib/models/drive_item.rb', line 552

def sharepoint_ids
    return @sharepoint_ids
end

#sharepoint_ids=(value) ⇒ Object

Sets the sharepointIds property value. Returns identifiers useful for SharePoint REST compatibility. Read-only.

Parameters:

  • value

    Value to set for the sharepointIds property.

Returns:

  • a void



560
561
562
# File 'lib/models/drive_item.rb', line 560

def sharepoint_ids=(value)
    @sharepoint_ids = value
end

#sizeObject

Gets the size property value. Size of the item in bytes. Read-only.

Returns:

  • a int64



567
568
569
# File 'lib/models/drive_item.rb', line 567

def size
    return @size
end

#size=(value) ⇒ Object

Sets the size property value. Size of the item in bytes. Read-only.

Parameters:

  • value

    Value to set for the size property.

Returns:

  • a void



575
576
577
# File 'lib/models/drive_item.rb', line 575

def size=(value)
    @size = value
end

#special_folderObject

Gets the specialFolder property value. If the current item is also available as a special folder, this facet is returned. Read-only.

Returns:

  • a special_folder



582
583
584
# File 'lib/models/drive_item.rb', line 582

def special_folder
    return @special_folder
end

#special_folder=(value) ⇒ Object

Sets the specialFolder property value. If the current item is also available as a special folder, this facet is returned. Read-only.

Parameters:

  • value

    Value to set for the specialFolder property.

Returns:

  • a void



590
591
592
# File 'lib/models/drive_item.rb', line 590

def special_folder=(value)
    @special_folder = value
end

#subscriptionsObject

Gets the subscriptions property value. The set of subscriptions on the item. Only supported on the root of a drive.

Returns:

  • a subscription



597
598
599
# File 'lib/models/drive_item.rb', line 597

def subscriptions
    return @subscriptions
end

#subscriptions=(value) ⇒ Object

Sets the subscriptions property value. The set of subscriptions on the item. Only supported on the root of a drive.

Parameters:

  • value

    Value to set for the subscriptions property.

Returns:

  • a void



605
606
607
# File 'lib/models/drive_item.rb', line 605

def subscriptions=(value)
    @subscriptions = value
end

#thumbnailsObject

Gets the thumbnails property value. Collection containing [ThumbnailSet][] objects associated with the item. For more info, see [getting thumbnails][]. Read-only. Nullable.

Returns:

  • a thumbnail_set



612
613
614
# File 'lib/models/drive_item.rb', line 612

def thumbnails
    return @thumbnails
end

#thumbnails=(value) ⇒ Object

Sets the thumbnails property value. Collection containing [ThumbnailSet][] objects associated with the item. For more info, see [getting thumbnails][]. Read-only. Nullable.

Parameters:

  • value

    Value to set for the thumbnails property.

Returns:

  • a void



620
621
622
# File 'lib/models/drive_item.rb', line 620

def thumbnails=(value)
    @thumbnails = value
end

#versionsObject

Gets the versions property value. The list of previous versions of the item. For more info, see [getting previous versions][]. Read-only. Nullable.

Returns:

  • a drive_item_version



627
628
629
# File 'lib/models/drive_item.rb', line 627

def versions
    return @versions
end

#versions=(value) ⇒ Object

Sets the versions property value. The list of previous versions of the item. For more info, see [getting previous versions][]. Read-only. Nullable.

Parameters:

  • value

    Value to set for the versions property.

Returns:

  • a void



635
636
637
# File 'lib/models/drive_item.rb', line 635

def versions=(value)
    @versions = value
end

#videoObject

Gets the video property value. Video metadata, if the item is a video. Read-only.

Returns:

  • a video



642
643
644
# File 'lib/models/drive_item.rb', line 642

def video
    return @video
end

#video=(value) ⇒ Object

Sets the video property value. Video metadata, if the item is a video. Read-only.

Parameters:

  • value

    Value to set for the video property.

Returns:

  • a void



650
651
652
# File 'lib/models/drive_item.rb', line 650

def video=(value)
    @video = value
end

#web_dav_urlObject

Gets the webDavUrl property value. WebDAV compatible URL for the item.

Returns:

  • a string



657
658
659
# File 'lib/models/drive_item.rb', line 657

def web_dav_url
    return @web_dav_url
end

#web_dav_url=(value) ⇒ Object

Sets the webDavUrl property value. WebDAV compatible URL for the item.

Parameters:

  • value

    Value to set for the webDavUrl property.

Returns:

  • a void



665
666
667
# File 'lib/models/drive_item.rb', line 665

def web_dav_url=(value)
    @web_dav_url = value
end

#workbookObject

Gets the workbook property value. For files that are Excel spreadsheets, accesses the workbook API to work with the spreadsheet’s contents. Nullable.

Returns:

  • a workbook



672
673
674
# File 'lib/models/drive_item.rb', line 672

def workbook
    return @workbook
end

#workbook=(value) ⇒ Object

Sets the workbook property value. For files that are Excel spreadsheets, accesses the workbook API to work with the spreadsheet’s contents. Nullable.

Parameters:

  • value

    Value to set for the workbook property.

Returns:

  • a void



680
681
682
# File 'lib/models/drive_item.rb', line 680

def workbook=(value)
    @workbook = value
end