Class: Google::Apis::DriveactivityV2::TeamDrive

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

Overview

This item is deprecated; please see Drive instead.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TeamDrive

Returns a new instance of TeamDrive.



1667
1668
1669
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1667

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

Instance Attribute Details

#name ⇒ String

This field is deprecated; please see Drive.name instead. Corresponds to the JSON property name

Returns:

  • (String)


1655
1656
1657
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1655

def name
  @name
end

#root ⇒ Google::Apis::DriveactivityV2::DriveItem

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



1660
1661
1662
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1660

def root
  @root
end

#title ⇒ String

This field is deprecated; please see Drive.title instead. Corresponds to the JSON property title

Returns:

  • (String)


1665
1666
1667
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1665

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1672
1673
1674
1675
1676
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1672

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