Class: Google::Apis::DriveactivityV2::AppliedLabelChangeDetail

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

A change made to a Label on the Target.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppliedLabelChangeDetail

Returns a new instance of AppliedLabelChangeDetail.



304
305
306
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 304

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

Instance Attribute Details

#field_changesArray<Google::Apis::DriveactivityV2::FieldValueChange>

Field Changes. Only present if types contains LABEL_FIELD_VALUE_CHANGED. Corresponds to the JSON property fieldChanges



285
286
287
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 285

def field_changes
  @field_changes
end

#labelString

The Label name representing the Label that changed. This name always contains the revision of the Label that was used when this Action occurred. The format is labels/id@revision. Corresponds to the JSON property label

Returns:

  • (String)


292
293
294
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 292

def label
  @label
end

#titleString

The human-readable title of the label that changed. Corresponds to the JSON property title

Returns:

  • (String)


297
298
299
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 297

def title
  @title
end

#typesArray<String>

The types of changes made to the Label on the Target. Corresponds to the JSON property types

Returns:

  • (Array<String>)


302
303
304
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 302

def types
  @types
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



309
310
311
312
313
314
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 309

def update!(**args)
  @field_changes = args[:field_changes] if args.key?(:field_changes)
  @label = args[:label] if args.key?(:label)
  @title = args[:title] if args.key?(:title)
  @types = args[:types] if args.key?(:types)
end