Class: Google::Apis::RedisV1::Entitlement
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1::Entitlement
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/redis_v1/classes.rb,
lib/google/apis/redis_v1/representations.rb,
lib/google/apis/redis_v1/representations.rb
Overview
Proto representing the access that a user has to a specific feature/service. NextId: 3.
Instance Attribute Summary collapse
-
#entitlement_state ⇒ String
The current state of user's accessibility to a feature/benefit.
-
#type ⇒ String
An enum that represents the type of this entitlement.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Entitlement
constructor
A new instance of Entitlement.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Entitlement
Returns a new instance of Entitlement.
1144 1145 1146 |
# File 'lib/google/apis/redis_v1/classes.rb', line 1144 def initialize(**args) update!(**args) end |
Instance Attribute Details
#entitlement_state ⇒ String
The current state of user's accessibility to a feature/benefit.
Corresponds to the JSON property entitlementState
1137 1138 1139 |
# File 'lib/google/apis/redis_v1/classes.rb', line 1137 def entitlement_state @entitlement_state end |
#type ⇒ String
An enum that represents the type of this entitlement.
Corresponds to the JSON property type
1142 1143 1144 |
# File 'lib/google/apis/redis_v1/classes.rb', line 1142 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1149 1150 1151 1152 |
# File 'lib/google/apis/redis_v1/classes.rb', line 1149 def update!(**args) @entitlement_state = args[:entitlement_state] if args.key?(:entitlement_state) @type = args[:type] if args.key?(:type) end |