Class: Google::Apis::DriveactivityV2::TeamDrive
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::TeamDrive
- 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 Team Drive.
Instance Attribute Summary collapse
-
#name ⇒ String
The resource name of the Team Drive.
-
#root ⇒ Google::Apis::DriveactivityV2::DriveItem
A Drive item, such as a file or folder.
-
#title ⇒ String
The title of the Team Drive.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TeamDrive
constructor
A new instance of TeamDrive.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TeamDrive
Returns a new instance of TeamDrive
1267 1268 1269 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1267 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
1255 1256 1257 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1255 def name @name end |
#root ⇒ Google::Apis::DriveactivityV2::DriveItem
A Drive item, such as a file or folder.
Corresponds to the JSON property root
1260 1261 1262 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1260 def root @root end |
#title ⇒ String
The title of the Team Drive.
Corresponds to the JSON property title
1265 1266 1267 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1265 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1272 1273 1274 1275 1276 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1272 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 |