Class: Google::Apis::DriveactivityV2::RestrictionChange

Inherits:
Object
  • Object
show all
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

Information about restriction policy changes to a feature.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RestrictionChange

Returns a new instance of RestrictionChange.



1251
1252
1253
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1251

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

Instance Attribute Details

#featureString

The feature which had a change in restriction policy. Corresponds to the JSON property feature

Returns:

  • (String)


1244
1245
1246
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1244

def feature
  @feature
end

#new_restrictionString

The restriction in place after the change. Corresponds to the JSON property newRestriction

Returns:

  • (String)


1249
1250
1251
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1249

def new_restriction
  @new_restriction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1256
1257
1258
1259
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1256

def update!(**args)
  @feature = args[:feature] if args.key?(:feature)
  @new_restriction = args[:new_restriction] if args.key?(:new_restriction)
end