Class: Google::Apis::DriveV2::ChildReference
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::ChildReference
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/drive_v2/classes.rb,
lib/google/apis/drive_v2/representations.rb,
lib/google/apis/drive_v2/representations.rb
Overview
A reference to a folder's child. Some resource methods (such as children.get
)
require a childId
. Use the children.list
method to retrieve the ID of the
child.
Instance Attribute Summary collapse
-
#child_link ⇒ String
Output only.
-
#id ⇒ String
The ID of the child.
-
#kind ⇒ String
Output only.
-
#self_link ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ChildReference
constructor
A new instance of ChildReference.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ChildReference
Returns a new instance of ChildReference.
1025 1026 1027 |
# File 'lib/google/apis/drive_v2/classes.rb', line 1025 def initialize(**args) update!(**args) end |
Instance Attribute Details
#child_link ⇒ String
Output only. A link to the child.
Corresponds to the JSON property childLink
1008 1009 1010 |
# File 'lib/google/apis/drive_v2/classes.rb', line 1008 def child_link @child_link end |
#id ⇒ String
The ID of the child.
Corresponds to the JSON property id
1013 1014 1015 |
# File 'lib/google/apis/drive_v2/classes.rb', line 1013 def id @id end |
#kind ⇒ String
Output only. This is always drive#childReference
.
Corresponds to the JSON property kind
1018 1019 1020 |
# File 'lib/google/apis/drive_v2/classes.rb', line 1018 def kind @kind end |
#self_link ⇒ String
Output only. A link back to this reference.
Corresponds to the JSON property selfLink
1023 1024 1025 |
# File 'lib/google/apis/drive_v2/classes.rb', line 1023 def self_link @self_link end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1030 1031 1032 1033 1034 1035 |
# File 'lib/google/apis/drive_v2/classes.rb', line 1030 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 |