Class: Google::Apis::DriveV3::TeamDrive
- Inherits:
-
Object
- Object
- Google::Apis::DriveV3::TeamDrive
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/drive_v3/classes.rb,
generated/google/apis/drive_v3/representations.rb,
generated/google/apis/drive_v3/representations.rb
Overview
Representation of a Team Drive.
Defined Under Namespace
Classes: Capabilities
Instance Attribute Summary collapse
-
#capabilities ⇒ Google::Apis::DriveV3::TeamDrive::Capabilities
Capabilities the current user has on this Team Drive.
-
#id ⇒ String
The ID of this Team Drive which is also the ID of the top level folder for this Team Drive.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#name ⇒ String
The name of this 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
1808 1809 1810 |
# File 'generated/google/apis/drive_v3/classes.rb', line 1808 def initialize(**args) update!(**args) end |
Instance Attribute Details
#capabilities ⇒ Google::Apis::DriveV3::TeamDrive::Capabilities
Capabilities the current user has on this Team Drive.
Corresponds to the JSON property capabilities
1789 1790 1791 |
# File 'generated/google/apis/drive_v3/classes.rb', line 1789 def capabilities @capabilities end |
#id ⇒ String
The ID of this Team Drive which is also the ID of the top level folder for
this Team Drive.
Corresponds to the JSON property id
1795 1796 1797 |
# File 'generated/google/apis/drive_v3/classes.rb', line 1795 def id @id end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "drive#
teamDrive".
Corresponds to the JSON property kind
1801 1802 1803 |
# File 'generated/google/apis/drive_v3/classes.rb', line 1801 def kind @kind end |
#name ⇒ String
The name of this Team Drive.
Corresponds to the JSON property name
1806 1807 1808 |
# File 'generated/google/apis/drive_v3/classes.rb', line 1806 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1813 1814 1815 1816 1817 1818 |
# File 'generated/google/apis/drive_v3/classes.rb', line 1813 def update!(**args) @capabilities = args[:capabilities] if args.key?(:capabilities) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) end |