Class: Aerospike::Role

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

Instance Method Summary collapse

Instance Attribute Details

#allowlistObject

List of allowable IP addresses



29
30
31
# File 'lib/aerospike/role.rb', line 29

def allowlist
  @allowlist
end

#nameObject

Role name



23
24
25
# File 'lib/aerospike/role.rb', line 23

def name
  @name
end

#privilegesObject

List of assigned privileges



26
27
28
# File 'lib/aerospike/role.rb', line 26

def privileges
  @privileges
end

#read_quotaObject

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_quotaObject

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_sObject

: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