Class: Google::Apis::DriveV2::ParentReference
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DriveV2::ParentReference
 
- 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 file's parent.
Instance Attribute Summary collapse
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the parent. 
- 
  
    
      #is_root  ⇒ Boolean 
    
    
      (also: #is_root?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether or not the parent is the root folder. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This is always drive#parentReference. 
- 
  
    
      #parent_link  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A link to the parent. 
- 
  
    
      #self_link  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A link back to this reference. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ParentReference 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ParentReference. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ParentReference
Returns a new instance of ParentReference
| 2368 2369 2370 | # File 'generated/google/apis/drive_v2/classes.rb', line 2368 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#id ⇒ String
The ID of the parent.
Corresponds to the JSON property id
| 2345 2346 2347 | # File 'generated/google/apis/drive_v2/classes.rb', line 2345 def id @id end | 
#is_root ⇒ Boolean Also known as: is_root?
Whether or not the parent is the root folder.
Corresponds to the JSON property isRoot
| 2350 2351 2352 | # File 'generated/google/apis/drive_v2/classes.rb', line 2350 def is_root @is_root end | 
#kind ⇒ String
This is always drive#parentReference.
Corresponds to the JSON property kind
| 2356 2357 2358 | # File 'generated/google/apis/drive_v2/classes.rb', line 2356 def kind @kind end | 
#parent_link ⇒ String
A link to the parent.
Corresponds to the JSON property parentLink
| 2361 2362 2363 | # File 'generated/google/apis/drive_v2/classes.rb', line 2361 def parent_link @parent_link end | 
#self_link ⇒ String
A link back to this reference.
Corresponds to the JSON property selfLink
| 2366 2367 2368 | # File 'generated/google/apis/drive_v2/classes.rb', line 2366 def self_link @self_link end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2373 2374 2375 2376 2377 2378 2379 | # File 'generated/google/apis/drive_v2/classes.rb', line 2373 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 |