Class: Google::Apis::DriveV3::Change
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DriveV3::Change
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/drive_v3/classes.rb,
 generated/google/apis/drive_v3/representations.rb,
 generated/google/apis/drive_v3/representations.rb
Overview
A change to a file or Team Drive.
Instance Attribute Summary collapse
- 
  
    
      #file  ⇒ Google::Apis::DriveV3::File 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The metadata for a file. 
- 
  
    
      #file_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the file which has changed. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Identifies what kind of resource this is. 
- 
  
    
      #removed  ⇒ Boolean 
    
    
      (also: #removed?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether the file or Team Drive has been removed from this list of changes, for example by deletion or loss of access. 
- 
  
    
      #team_drive  ⇒ Google::Apis::DriveV3::TeamDrive 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Representation of a Team Drive. 
- 
  
    
      #team_drive_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the Team Drive associated with this change. 
- 
  
    
      #time  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The time of this change (RFC 3339 date-time). 
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The type of the change. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Change 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Change. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Change
Returns a new instance of Change
| 223 224 225 | # File 'generated/google/apis/drive_v3/classes.rb', line 223 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#file ⇒ Google::Apis::DriveV3::File
The metadata for a file.
Corresponds to the JSON property file
| 183 184 185 | # File 'generated/google/apis/drive_v3/classes.rb', line 183 def file @file end | 
#file_id ⇒ String
The ID of the file which has changed.
Corresponds to the JSON property fileId
| 188 189 190 | # File 'generated/google/apis/drive_v3/classes.rb', line 188 def file_id @file_id end | 
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "drive#
change".
Corresponds to the JSON property kind
| 194 195 196 | # File 'generated/google/apis/drive_v3/classes.rb', line 194 def kind @kind end | 
#removed ⇒ Boolean Also known as: removed?
Whether the file or Team Drive has been removed from this list of changes, for
example by deletion or loss of access.
Corresponds to the JSON property removed
| 200 201 202 | # File 'generated/google/apis/drive_v3/classes.rb', line 200 def removed @removed end | 
#team_drive ⇒ Google::Apis::DriveV3::TeamDrive
Representation of a Team Drive.
Corresponds to the JSON property teamDrive
| 206 207 208 | # File 'generated/google/apis/drive_v3/classes.rb', line 206 def team_drive @team_drive end | 
#team_drive_id ⇒ String
The ID of the Team Drive associated with this change.
Corresponds to the JSON property teamDriveId
| 211 212 213 | # File 'generated/google/apis/drive_v3/classes.rb', line 211 def team_drive_id @team_drive_id end | 
#time ⇒ DateTime
The time of this change (RFC 3339 date-time).
Corresponds to the JSON property time
| 216 217 218 | # File 'generated/google/apis/drive_v3/classes.rb', line 216 def time @time end | 
#type ⇒ String
The type of the change. Possible values are file and teamDrive.
Corresponds to the JSON property type
| 221 222 223 | # File 'generated/google/apis/drive_v3/classes.rb', line 221 def type @type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 228 229 230 231 232 233 234 235 236 237 | # File 'generated/google/apis/drive_v3/classes.rb', line 228 def update!(**args) @file = args[:file] if args.key?(:file) @file_id = args[:file_id] if args.key?(:file_id) @kind = args[:kind] if args.key?(:kind) @removed = args[:removed] if args.key?(:removed) @team_drive = args[:team_drive] if args.key?(:team_drive) @team_drive_id = args[:team_drive_id] if args.key?(:team_drive_id) @time = args[:time] if args.key?(:time) @type = args[:type] if args.key?(:type) end |