Class: Google::Apis::DriveactivityV2::Drive

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

Overview

Information about a shared drive.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Drive

Returns a new instance of Drive.



492
493
494
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 492

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

Instance Attribute Details

#nameString

The resource name of the shared drive. The format is "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection ID for this resource name. Corresponds to the JSON property name

Returns:

  • (String)


480
481
482
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 480

def name
  @name
end

#rootGoogle::Apis::DriveactivityV2::DriveItem

A Drive item, such as a file or folder. Corresponds to the JSON property root



485
486
487
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 485

def root
  @root
end

#titleString

The title of the shared drive. Corresponds to the JSON property title

Returns:

  • (String)


490
491
492
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 490

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



497
498
499
500
501
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 497

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @root = args[:root] if args.key?(:root)
  @title = args[:title] if args.key?(:title)
end