Class: Google::Apis::DriveV2::Change
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DriveV2::Change
 
- 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
Representation of a change to a file or Team Drive.
Instance Attribute Summary collapse
- 
  
    
      #deleted  ⇒ Boolean 
    
    
      (also: #deleted?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether the file or Team Drive has been removed from this list of changes, for example by deletion or loss of access. 
- 
  
    
      #file  ⇒ Google::Apis::DriveV2::File 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The metadata for a file. 
- 
  
    
      #file_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the file associated with this change. 
- 
  
    
      #id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the change. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This is always drive#change. 
- 
  
    
      #modification_date  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The time of this modification. 
- 
  
    
      #self_link  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A link back to this change. 
- 
  
    
      #team_drive  ⇒ Google::Apis::DriveV2::TeamDrive 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Representation of a Team Drive. 
- 
  
    
      #team_drive_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the Team Drive associated with this change. 
- 
  
    
      #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
| 720 721 722 | # File 'generated/google/apis/drive_v2/classes.rb', line 720 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#deleted ⇒ Boolean Also known as: deleted?
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 deleted
| 672 673 674 | # File 'generated/google/apis/drive_v2/classes.rb', line 672 def deleted @deleted end | 
#file ⇒ Google::Apis::DriveV2::File
The metadata for a file.
Corresponds to the JSON property file
| 678 679 680 | # File 'generated/google/apis/drive_v2/classes.rb', line 678 def file @file end | 
#file_id ⇒ String
The ID of the file associated with this change.
Corresponds to the JSON property fileId
| 683 684 685 | # File 'generated/google/apis/drive_v2/classes.rb', line 683 def file_id @file_id end | 
#id ⇒ Fixnum
The ID of the change.
Corresponds to the JSON property id
| 688 689 690 | # File 'generated/google/apis/drive_v2/classes.rb', line 688 def id @id end | 
#kind ⇒ String
This is always drive#change.
Corresponds to the JSON property kind
| 693 694 695 | # File 'generated/google/apis/drive_v2/classes.rb', line 693 def kind @kind end | 
#modification_date ⇒ DateTime
The time of this modification.
Corresponds to the JSON property modificationDate
| 698 699 700 | # File 'generated/google/apis/drive_v2/classes.rb', line 698 def modification_date @modification_date end | 
#self_link ⇒ String
A link back to this change.
Corresponds to the JSON property selfLink
| 703 704 705 | # File 'generated/google/apis/drive_v2/classes.rb', line 703 def self_link @self_link end | 
#team_drive ⇒ Google::Apis::DriveV2::TeamDrive
Representation of a Team Drive.
Corresponds to the JSON property teamDrive
| 708 709 710 | # File 'generated/google/apis/drive_v2/classes.rb', line 708 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
| 713 714 715 | # File 'generated/google/apis/drive_v2/classes.rb', line 713 def team_drive_id @team_drive_id end | 
#type ⇒ String
The type of the change. Possible values are file and teamDrive.
Corresponds to the JSON property type
| 718 719 720 | # File 'generated/google/apis/drive_v2/classes.rb', line 718 def type @type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 725 726 727 728 729 730 731 732 733 734 735 736 | # File 'generated/google/apis/drive_v2/classes.rb', line 725 def update!(**args) @deleted = args[:deleted] if args.key?(:deleted) @file = args[:file] if args.key?(:file) @file_id = args[:file_id] if args.key?(:file_id) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @modification_date = args[:modification_date] if args.key?(:modification_date) @self_link = args[:self_link] if args.key?(:self_link) @team_drive = args[:team_drive] if args.key?(:team_drive) @team_drive_id = args[:team_drive_id] if args.key?(:team_drive_id) @type = args[:type] if args.key?(:type) end |