class Google::Apis::DriveV2::ParentReference
A reference to a file's parent.
Attributes
id[RW]
The ID of the parent. Corresponds to the JSON property `id` @return [String]
is_root[RW]
Whether or not the parent is the root folder. Corresponds to the JSON property `isRoot` @return [Boolean]
is_root?[RW]
Whether or not the parent is the root folder. Corresponds to the JSON property `isRoot` @return [Boolean]
kind[RW]
This is always drive#parentReference. Corresponds to the JSON property `kind` @return [String]
parent_link[RW]
A link to the parent. Corresponds to the JSON property `parentLink` @return [String]
self_link[RW]
A link back to this reference. Corresponds to the JSON property `selfLink` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File generated/google/apis/drive_v2/classes.rb, line 2051 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File generated/google/apis/drive_v2/classes.rb, line 2056 def update!(**args) @id = args[:id] if args.key?(:id) @is_root = args[:is_root] if args.key?(:is_root) @kind = args[:kind] if args.key?(:kind) @parent_link = args[:parent_link] if args.key?(:parent_link) @self_link = args[:self_link] if args.key?(:self_link) end