Class: Google::Apis::DriveactivityV2::TeamDriveReference

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

A lightweight reference to a Team Drive.

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) ⇒ TeamDriveReference

Returns a new instance of TeamDriveReference



1294
1295
1296
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1294

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

Instance Attribute Details

#nameString

The resource name of the Team Drive. The format is "teamDrives/TEAM_DRIVE_ID". Corresponds to the JSON property name

Returns:

  • (String)


1287
1288
1289
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1287

def name
  @name
end

#titleString

The title of the Team Drive. Corresponds to the JSON property title

Returns:

  • (String)


1292
1293
1294
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1292

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1299
1300
1301
1302
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1299

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