Class: Google::Apis::DriveactivityV2::ActionDetail

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/driveactivity_v2/classes.rb,
lib/google/apis/driveactivity_v2/representations.rb,
lib/google/apis/driveactivity_v2/representations.rb

Overview

Data describing the type and additional information of an action.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ActionDetail

Returns a new instance of ActionDetail.



134
135
136
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 134

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#applied_label_changeGoogle::Apis::DriveactivityV2::AppliedLabelChange

Label changes that were made on the Target. Corresponds to the JSON property appliedLabelChange



77
78
79
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 77

def applied_label_change
  @applied_label_change
end

#commentGoogle::Apis::DriveactivityV2::Comment

A change about comments on an object. Corresponds to the JSON property comment



82
83
84
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 82

def comment
  @comment
end

#createGoogle::Apis::DriveactivityV2::Create

An object was created. Corresponds to the JSON property create



87
88
89
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 87

def create
  @create
end

#deleteGoogle::Apis::DriveactivityV2::Delete

An object was deleted. Corresponds to the JSON property delete



92
93
94
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 92

def delete
  @delete
end

#dlp_changeGoogle::Apis::DriveactivityV2::DataLeakPreventionChange

A change in the object's data leak prevention status. Corresponds to the JSON property dlpChange



97
98
99
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 97

def dlp_change
  @dlp_change
end

#editGoogle::Apis::DriveactivityV2::Edit

An empty message indicating an object was edited. Corresponds to the JSON property edit



102
103
104
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 102

def edit
  @edit
end

#moveGoogle::Apis::DriveactivityV2::Move

An object was moved. Corresponds to the JSON property move



107
108
109
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 107

def move
  @move
end

#permission_changeGoogle::Apis::DriveactivityV2::PermissionChange

A change of the permission setting on an item. Corresponds to the JSON property permissionChange



112
113
114
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 112

def permission_change
  @permission_change
end

#referenceGoogle::Apis::DriveactivityV2::ApplicationReference

Activity in applications other than Drive. Corresponds to the JSON property reference



117
118
119
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 117

def reference
  @reference
end

#renameGoogle::Apis::DriveactivityV2::Rename

An object was renamed. Corresponds to the JSON property rename



122
123
124
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 122

def rename
  @rename
end

#restoreGoogle::Apis::DriveactivityV2::Restore

A deleted object was restored. Corresponds to the JSON property restore



127
128
129
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 127

def restore
  @restore
end

#settings_changeGoogle::Apis::DriveactivityV2::SettingsChange

Information about settings changes. Corresponds to the JSON property settingsChange



132
133
134
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 132

def settings_change
  @settings_change
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



139
140
141
142
143
144
145
146
147
148
149
150
151
152
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 139

def update!(**args)
  @applied_label_change = args[:applied_label_change] if args.key?(:applied_label_change)
  @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