Skip to content

Commit

Permalink
[CLIENT-2526] Expose the set_quotas API
Browse files Browse the repository at this point in the history
  • Loading branch information
vmsachin committed Aug 24, 2023
1 parent 0684af6 commit 7ffff1a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions 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**
Expand Down
7 changes: 7 additions & 0 deletions lib/aerospike/client.rb
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/aerospike/version.rb
@@ -1,4 +1,4 @@
# encoding: utf-8
module Aerospike
VERSION = "2.28.0"
VERSION = "2.28.1"
end

0 comments on commit 7ffff1a

Please sign in to comment.