Class: Google::Apis::DriveV2::ChildReference
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DriveV2::ChildReference
 
- 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
- 
  
    
      #child_link  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A link to the child. 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the child. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This is always drive#childReference. 
- 
  
    
      #self_link  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A link back to this reference. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ChildReference 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ChildReference. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ChildReference
Returns a new instance of ChildReference
| 960 961 962 | # File 'generated/google/apis/drive_v2/classes.rb', line 960 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#child_link ⇒ String
A link to the child.
Corresponds to the JSON property childLink
| 943 944 945 | # File 'generated/google/apis/drive_v2/classes.rb', line 943 def child_link @child_link end | 
#id ⇒ String
The ID of the child.
Corresponds to the JSON property id
| 948 949 950 | # File 'generated/google/apis/drive_v2/classes.rb', line 948 def id @id end | 
#kind ⇒ String
This is always drive#childReference.
Corresponds to the JSON property kind
| 953 954 955 | # File 'generated/google/apis/drive_v2/classes.rb', line 953 def kind @kind end | 
#self_link ⇒ String
A link back to this reference.
Corresponds to the JSON property selfLink
| 958 959 960 | # File 'generated/google/apis/drive_v2/classes.rb', line 958 def self_link @self_link end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 965 966 967 968 969 970 | # File 'generated/google/apis/drive_v2/classes.rb', line 965 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 |