Class: Google::Apis::DriveV2::TeamDrive
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::TeamDrive
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/drive_v2/classes.rb,
generated/google/apis/drive_v2/representations.rb,
generated/google/apis/drive_v2/representations.rb
Overview
Representation of a Team Drive.
Defined Under Namespace
Classes: Capabilities
Instance Attribute Summary collapse
-
#capabilities ⇒ Google::Apis::DriveV2::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
This is always drive#teamDrive Corresponds to the JSON property
kind. -
#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
2912 2913 2914 |
# File 'generated/google/apis/drive_v2/classes.rb', line 2912 def initialize(**args) update!(**args) end |
Instance Attribute Details
#capabilities ⇒ Google::Apis::DriveV2::TeamDrive::Capabilities
Capabilities the current user has on this Team Drive.
Corresponds to the JSON property capabilities
2894 2895 2896 |
# File 'generated/google/apis/drive_v2/classes.rb', line 2894 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
2900 2901 2902 |
# File 'generated/google/apis/drive_v2/classes.rb', line 2900 def id @id end |
#kind ⇒ String
This is always drive#teamDrive
Corresponds to the JSON property kind
2905 2906 2907 |
# File 'generated/google/apis/drive_v2/classes.rb', line 2905 def kind @kind end |
#name ⇒ String
The name of this Team Drive.
Corresponds to the JSON property name
2910 2911 2912 |
# File 'generated/google/apis/drive_v2/classes.rb', line 2910 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2917 2918 2919 2920 2921 2922 |
# File 'generated/google/apis/drive_v2/classes.rb', line 2917 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 |