Class: Google::Apis::DriveV2::TeamDrive

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

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



2912
2913
2914
# File 'generated/google/apis/drive_v2/classes.rb', line 2912

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

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

#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)


2900
2901
2902
# File 'generated/google/apis/drive_v2/classes.rb', line 2900

def id
  @id
end

#kindString

This is always drive#teamDrive Corresponds to the JSON property kind

Returns:

  • (String)


2905
2906
2907
# File 'generated/google/apis/drive_v2/classes.rb', line 2905

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


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