Class: Google::Apis::DriveV2::ChildReference

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

A reference to a folder's child.

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) ⇒ ChildReference

Returns a new instance of ChildReference.


882
883
884
# File 'generated/google/apis/drive_v2/classes.rb', line 882

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

Instance Attribute Details

A link to the child. Corresponds to the JSON property childLink

Returns:

  • (String)

865
866
867
# File 'generated/google/apis/drive_v2/classes.rb', line 865

def child_link
  @child_link
end

#idString

The ID of the child. Corresponds to the JSON property id

Returns:

  • (String)

870
871
872
# File 'generated/google/apis/drive_v2/classes.rb', line 870

def id
  @id
end

#kindString

This is always drive#childReference. Corresponds to the JSON property kind

Returns:

  • (String)

875
876
877
# File 'generated/google/apis/drive_v2/classes.rb', line 875

def kind
  @kind
end

A link back to this reference. Corresponds to the JSON property selfLink

Returns:

  • (String)

880
881
882
# File 'generated/google/apis/drive_v2/classes.rb', line 880

def self_link
  @self_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


887
888
889
890
891
892
# File 'generated/google/apis/drive_v2/classes.rb', line 887

def update!(**args)
  @child_link = args[:child_link] if args.key?(:child_link)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @self_link = args[:self_link] if args.key?(:self_link)
end