Class: Google::Apis::RedisV1beta1::Entitlement

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/redis_v1beta1/classes.rb,
lib/google/apis/redis_v1beta1/representations.rb,
lib/google/apis/redis_v1beta1/representations.rb

Overview

Proto representing the access that a user has to a specific feature/service. NextId: 3.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Entitlement

Returns a new instance of Entitlement.



1388
1389
1390
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1388

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

Instance Attribute Details

#entitlement_stateString

The current state of user's accessibility to a feature/benefit. Corresponds to the JSON property entitlementState

Returns:

  • (String)


1381
1382
1383
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1381

def entitlement_state
  @entitlement_state
end

#typeString

An enum that represents the type of this entitlement. Corresponds to the JSON property type

Returns:

  • (String)


1386
1387
1388
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1386

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1393
1394
1395
1396
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1393

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