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

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

This item is deprecated; please see Drive instead.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TeamDrive

Returns a new instance of TeamDrive



1400
1401
1402
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1400

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


1388
1389
1390
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1388

def name
  @name
end

#rootGoogle::Apis::DriveactivityV2::DriveItem

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



1393
1394
1395
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1393

def root
  @root
end

#titleString

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

Returns:

  • (String)


1398
1399
1400
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1398

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1405
1406
1407
1408
1409
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1405

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