Class: Google::Apis::DriveactivityV2::Drive
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::Drive
- 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 shared drive.
Instance Attribute Summary collapse
-
#name ⇒ String
The resource name of the shared drive.
-
#root ⇒ Google::Apis::DriveactivityV2::DriveItem
A Drive item, such as a file or folder.
-
#title ⇒ String
The title of the shared drive.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Drive
constructor
A new instance of Drive.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Drive
Returns a new instance of Drive.
493 494 495 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 493 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The resource name of the shared drive. The format is
"COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection
ID for this resource name.
Corresponds to the JSON property name
481 482 483 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 481 def name @name end |
#root ⇒ Google::Apis::DriveactivityV2::DriveItem
A Drive item, such as a file or folder.
Corresponds to the JSON property root
486 487 488 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 486 def root @root end |
#title ⇒ String
The title of the shared drive.
Corresponds to the JSON property title
491 492 493 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 491 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
498 499 500 501 502 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 498 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 |