Class: Google::Apis::DriveactivityV2::Create
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::Create
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/driveactivity_v2/classes.rb,
generated/google/apis/driveactivity_v2/representations.rb,
generated/google/apis/driveactivity_v2/representations.rb
Overview
An object was created.
Instance Attribute Summary collapse
-
#copy ⇒ Google::Apis::DriveactivityV2::Copy
An object was created by copying an existing object.
-
#new ⇒ Google::Apis::DriveactivityV2::New
An object was created from scratch.
-
#upload ⇒ Google::Apis::DriveactivityV2::Upload
An object was uploaded into Drive.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Create
constructor
A new instance of Create.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Create
Returns a new instance of Create.
384 385 386 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 384 def initialize(**args) update!(**args) end |
Instance Attribute Details
#copy ⇒ Google::Apis::DriveactivityV2::Copy
An object was created by copying an existing object.
Corresponds to the JSON property copy
372 373 374 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 372 def copy @copy end |
#new ⇒ Google::Apis::DriveactivityV2::New
An object was created from scratch.
Corresponds to the JSON property new
377 378 379 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 377 def new @new end |
#upload ⇒ Google::Apis::DriveactivityV2::Upload
An object was uploaded into Drive.
Corresponds to the JSON property upload
382 383 384 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 382 def upload @upload end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
389 390 391 392 393 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 389 def update!(**args) @copy = args[:copy] if args.key?(:copy) @new = args[:new] if args.key?(:new) @upload = args[:upload] if args.key?(:upload) end |