From 7ffff1aae9d56ba1dce0999b688ef0de82f8168e Mon Sep 17 00:00:00 2001 From: "sachin.vm" Date: Thu, 24 Aug 2023 09:47:30 -0700 Subject: [PATCH 1/2] [CLIENT-2526] Expose the set_quotas API --- CHANGELOG.md | 3 +++ lib/aerospike/client.rb | 7 +++++++ lib/aerospike/version.rb | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3beb35d..92bf272 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog All notable changes to this project will be documented in this file. +## [2.28.1] 2023-08-24 +- **Updates** + - [CLIENT-2526] Expose the set_quota API from the Admin Command ## [2.28.0] 2023-06-23 - **New Features** 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 From dae2afbecda6a9435e0083bef68d471439fd1720 Mon Sep 17 00:00:00 2001 From: "sachin.vm" Date: Thu, 24 Aug 2023 10:24:57 -0700 Subject: [PATCH 2/2] [CLIENT-2526] bumped version as its a minor release --- CHANGELOG.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 92bf272..9a52fcf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,10 @@ # Changelog All notable changes to this project will be documented in this file. -## [2.28.1] 2023-08-24 + +## [2.29.0] 2023-08-24 - **Updates** - - [CLIENT-2526] Expose the set_quota API from the Admin Command + - [CLIENT-2526] Support for set quota for user defined roles ## [2.28.0] 2023-06-23 - **New Features**