diff --git a/CHANGELOG.md b/CHANGELOG.md index 3beb35d..9a52fcf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. +## [2.29.0] 2023-08-24 +- **Updates** + - [CLIENT-2526] Support for set quota for user defined roles + ## [2.28.0] 2023-06-23 - **New Features** - [CLIENT-1432] Support minimum connections in connection pools diff --git a/lib/aerospike/client.rb b/lib/aerospike/client.rb index 2ed63fc..0031025 100644 --- a/lib/aerospike/client.rb +++ b/lib/aerospike/client.rb @@ -894,6 +894,13 @@ def revoke_privileges(role_name, privileges, options = nil) command.revoke_privileges(@cluster, policy, role_name, privileges) end + # Set or update quota for a role. + def set_quotas(role_name, read_quota, write_quota, options = nil) + policy = create_policy(options, AdminPolicy, default_admin_policy) + command = AdminCommand.new + command.set_quotas(@cluster, policy, role_name, read_quota, write_quota) + end + private def set_default_policies(policies) diff --git a/lib/aerospike/version.rb b/lib/aerospike/version.rb index 179e0ae..b955623 100644 --- a/lib/aerospike/version.rb +++ b/lib/aerospike/version.rb @@ -1,4 +1,4 @@ # encoding: utf-8 module Aerospike - VERSION = "2.28.0" + VERSION = "2.28.1" end