Class: Google::Apis::DriveactivityV2::RestrictionChange
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::RestrictionChange
- 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
-
#feature ⇒ String
The feature which had a change in restriction policy.
-
#new_restriction ⇒ String
The restriction in place after the change.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RestrictionChange
constructor
A new instance of RestrictionChange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ RestrictionChange
Returns a new instance of RestrictionChange
1123 1124 1125 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1123 def initialize(**args) update!(**args) end |
Instance Attribute Details
#feature ⇒ String
The feature which had a change in restriction policy.
Corresponds to the JSON property feature
1116 1117 1118 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1116 def feature @feature end |
#new_restriction ⇒ String
The restriction in place after the change.
Corresponds to the JSON property newRestriction
1121 1122 1123 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1121 def new_restriction @new_restriction end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1128 1129 1130 1131 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1128 def update!(**args) @feature = args[:feature] if args.key?(:feature) @new_restriction = args[:new_restriction] if args.key?(:new_restriction) end |