Class: Aerospike::Role
- Inherits:
-
Object
- Object
- Aerospike::Role
- Defined in:
- lib/aerospike/role.rb
Overview
Role provides granular access to database entities for users.
Constant Summary collapse
- USER_ADMIN =
The following aliases are for backward compatibility reasons
Privilege::USER_ADMIN
- SYS_ADMIN =
:nodoc:
Privilege::SYS_ADMIN
- DATA_ADMIN =
:nodoc:
Privilege::DATA_ADMIN
- UDF_ADMIN =
:nodoc:
Privilege::UDF_ADMIN
- SINDEX_ADMIN =
:nodoc:
Privilege::SINDEX_ADMIN
- READ_WRITE_UDF =
:nodoc:
Privilege::READ_WRITE_UDF
- READ_WRITE =
:nodoc:
Privilege::READ_WRITE
- READ =
:nodoc:
Privilege::READ
- WRITE =
:nodoc:
Privilege::WRITE
- TRUNCATE =
:nodoc:
Privilege::TRUNCATE
Instance Attribute Summary collapse
-
#allowlist ⇒ Object
List of allowable IP addresses.
-
#name ⇒ Object
Role name.
-
#privileges ⇒ Object
List of assigned privileges.
-
#read_quota ⇒ Object
Maximum reads per second limit for the role.
-
#write_quota ⇒ Object
Maximum writes per second limit for the role.
Instance Method Summary collapse
-
#to_s ⇒ Object
:nodoc:.
Instance Attribute Details
#allowlist ⇒ Object
List of allowable IP addresses
29 30 31 |
# File 'lib/aerospike/role.rb', line 29 def allowlist @allowlist end |
#name ⇒ Object
Role name
23 24 25 |
# File 'lib/aerospike/role.rb', line 23 def name @name end |
#privileges ⇒ Object
List of assigned privileges
26 27 28 |
# File 'lib/aerospike/role.rb', line 26 def privileges @privileges end |
#read_quota ⇒ Object
Maximum reads per second limit for the role
32 33 34 |
# File 'lib/aerospike/role.rb', line 32 def read_quota @read_quota end |
#write_quota ⇒ Object
Maximum writes per second limit for the role
35 36 37 |
# File 'lib/aerospike/role.rb', line 35 def write_quota @write_quota end |
Instance Method Details
#to_s ⇒ Object
:nodoc:
49 50 51 |
# File 'lib/aerospike/role.rb', line 49 def to_s "Role [name=#{@name}, privileges=#{@privileges}, allowlist=#{@allowlist}, readQuota=#{@read_quota}, writeQuota=#{@write_quota}]"; end |