Class: Google::Apis::DriveactivityV2::ActionDetail
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::ActionDetail
- 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
Data describing the type and additional information of an action.
Instance Attribute Summary collapse
-
#comment ⇒ Google::Apis::DriveactivityV2::Comment
A change about comments on an object.
-
#create ⇒ Google::Apis::DriveactivityV2::Create
An object was created.
-
#delete ⇒ Google::Apis::DriveactivityV2::Delete
An object was deleted.
-
#dlp_change ⇒ Google::Apis::DriveactivityV2::DataLeakPreventionChange
A change in the object's data leak prevention status.
-
#edit ⇒ Google::Apis::DriveactivityV2::Edit
An empty message indicating an object was edited.
-
#move ⇒ Google::Apis::DriveactivityV2::Move
An object was moved.
-
#permission_change ⇒ Google::Apis::DriveactivityV2::PermissionChange
A change of the permission setting on an item.
-
#reference ⇒ Google::Apis::DriveactivityV2::ApplicationReference
Activity in applications other than Drive.
-
#rename ⇒ Google::Apis::DriveactivityV2::Rename
An object was renamed.
-
#restore ⇒ Google::Apis::DriveactivityV2::Restore
A deleted object was restored.
-
#settings_change ⇒ Google::Apis::DriveactivityV2::SettingsChange
Information about settings changes.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ActionDetail
constructor
A new instance of ActionDetail.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ActionDetail
Returns a new instance of ActionDetail.
127 128 129 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 127 def initialize(**args) update!(**args) end |
Instance Attribute Details
#comment ⇒ Google::Apis::DriveactivityV2::Comment
A change about comments on an object.
Corresponds to the JSON property comment
75 76 77 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 75 def comment @comment end |
#create ⇒ Google::Apis::DriveactivityV2::Create
An object was created.
Corresponds to the JSON property create
80 81 82 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 80 def create @create end |
#delete ⇒ Google::Apis::DriveactivityV2::Delete
An object was deleted.
Corresponds to the JSON property delete
85 86 87 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 85 def delete @delete end |
#dlp_change ⇒ Google::Apis::DriveactivityV2::DataLeakPreventionChange
A change in the object's data leak prevention status.
Corresponds to the JSON property dlpChange
90 91 92 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 90 def dlp_change @dlp_change end |
#edit ⇒ Google::Apis::DriveactivityV2::Edit
An empty message indicating an object was edited.
Corresponds to the JSON property edit
95 96 97 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 95 def edit @edit end |
#move ⇒ Google::Apis::DriveactivityV2::Move
An object was moved.
Corresponds to the JSON property move
100 101 102 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 100 def move @move end |
#permission_change ⇒ Google::Apis::DriveactivityV2::PermissionChange
A change of the permission setting on an item.
Corresponds to the JSON property permissionChange
105 106 107 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 105 def @permission_change end |
#reference ⇒ Google::Apis::DriveactivityV2::ApplicationReference
Activity in applications other than Drive.
Corresponds to the JSON property reference
110 111 112 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 110 def reference @reference end |
#rename ⇒ Google::Apis::DriveactivityV2::Rename
An object was renamed.
Corresponds to the JSON property rename
115 116 117 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 115 def rename @rename end |
#restore ⇒ Google::Apis::DriveactivityV2::Restore
A deleted object was restored.
Corresponds to the JSON property restore
120 121 122 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 120 def restore @restore end |
#settings_change ⇒ Google::Apis::DriveactivityV2::SettingsChange
Information about settings changes.
Corresponds to the JSON property settingsChange
125 126 127 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 125 def settings_change @settings_change end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 132 def update!(**args) @comment = args[:comment] if args.key?(:comment) @create = args[:create] if args.key?(:create) @delete = args[:delete] if args.key?(:delete) @dlp_change = args[:dlp_change] if args.key?(:dlp_change) @edit = args[:edit] if args.key?(:edit) @move = args[:move] if args.key?(:move) @permission_change = args[:permission_change] if args.key?(:permission_change) @reference = args[:reference] if args.key?(:reference) @rename = args[:rename] if args.key?(:rename) @restore = args[:restore] if args.key?(:restore) @settings_change = args[:settings_change] if args.key?(:settings_change) end |