Class: Google::Apis::DriveactivityV2::AppliedLabelChangeDetail
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::AppliedLabelChangeDetail
- 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
-
#field_changes ⇒ Array<Google::Apis::DriveactivityV2::FieldValueChange>
Field Changes.
-
#label ⇒ String
The Label name representing the Label that changed.
-
#title ⇒ String
The human-readable title of the label that changed.
-
#types ⇒ Array<String>
The types of changes made to the Label on the Target.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AppliedLabelChangeDetail
constructor
A new instance of AppliedLabelChangeDetail.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_changes ⇒ Array<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 |
#label ⇒ String
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
292 293 294 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 292 def label @label end |
#title ⇒ String
The human-readable title of the label that changed.
Corresponds to the JSON property title
297 298 299 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 297 def title @title end |
#types ⇒ Array<String>
The types of changes made to the Label on the Target.
Corresponds to the JSON property types
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 |