Class: Google::Apis::DriveactivityV2::TeamDriveReference
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::TeamDriveReference
- 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
-
#name ⇒ String
The resource name of the Team Drive.
-
#title ⇒ String
The title of the Team Drive.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TeamDriveReference
constructor
A new instance of TeamDriveReference.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#name ⇒ String
The resource name of the Team Drive. The format is
"teamDrives/TEAM_DRIVE_ID".
Corresponds to the JSON property name
1287 1288 1289 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1287 def name @name end |
#title ⇒ String
The title of the Team Drive.
Corresponds to the JSON property title
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 |