Class: Google::Apis::DriveV3::TeamDrive

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#capabilitiesGoogle::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

#idString

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

Returns:

  • (String)


1795
1796
1797
# File 'generated/google/apis/drive_v3/classes.rb', line 1795

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "drive# teamDrive". Corresponds to the JSON property kind

Returns:

  • (String)


1801
1802
1803
# File 'generated/google/apis/drive_v3/classes.rb', line 1801

def kind
  @kind
end

#nameString

The name of this Team Drive. Corresponds to the JSON property name

Returns:

  • (String)


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