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.
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
This is always drive#change.
-
#removed ⇒ Boolean
(also: #removed?)
Whether the file has been removed from the view of the changes list, for example by deletion or lost access.
-
#time ⇒ DateTime
The time of this change (RFC 3339 date-time).
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.
162 163 164 |
# File 'generated/google/apis/drive_v3/classes.rb', line 162 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
138 139 140 |
# File 'generated/google/apis/drive_v3/classes.rb', line 138 def file @file end |
#file_id ⇒ String
The ID of the file which has changed.
Corresponds to the JSON property fileId
143 144 145 |
# File 'generated/google/apis/drive_v3/classes.rb', line 143 def file_id @file_id end |
#kind ⇒ String
This is always drive#change.
Corresponds to the JSON property kind
148 149 150 |
# File 'generated/google/apis/drive_v3/classes.rb', line 148 def kind @kind end |
#removed ⇒ Boolean Also known as: removed?
Whether the file has been removed from the view of the changes list, for
example by deletion or lost access.
Corresponds to the JSON property removed
154 155 156 |
# File 'generated/google/apis/drive_v3/classes.rb', line 154 def removed @removed end |
#time ⇒ DateTime
The time of this change (RFC 3339 date-time).
Corresponds to the JSON property time
160 161 162 |
# File 'generated/google/apis/drive_v3/classes.rb', line 160 def time @time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
167 168 169 170 171 172 173 |
# File 'generated/google/apis/drive_v3/classes.rb', line 167 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) @time = args[:time] if args.key?(:time) end |