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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Create
Returns a new instance of Create
378 379 380 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 378 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
366 367 368 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 366 def copy @copy end |
#new ⇒ Google::Apis::DriveactivityV2::New
An object was created from scratch.
Corresponds to the JSON property new
371 372 373 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 371 def new @new end |
#upload ⇒ Google::Apis::DriveactivityV2::Upload
An object was uploaded into Drive.
Corresponds to the JSON property upload
376 377 378 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 376 def upload @upload end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
383 384 385 386 387 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 383 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 |