Class: Infrawrench::KvNamespace
- Inherits:
-
Object
- Object
- Infrawrench::KvNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.kv
Instance Method Summary collapse
-
#command(body:, org_id: nil, request_options: nil) ⇒ Hash
Run a Redis-style KV command.
-
#initialize(transport) ⇒ KvNamespace
constructor
private
A new instance of KvNamespace.
Constructor Details
#initialize(transport) ⇒ KvNamespace
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of KvNamespace.
1858 1859 1860 |
# File 'lib/infrawrench/client.rb', line 1858 def initialize(transport) @transport = transport end |
Instance Method Details
#command(body:, org_id: nil, request_options: nil) ⇒ Hash
Run a Redis-style KV command
Requires permission: resources:execute.
POST /api/org/orgId/kv/command
Raises on 400: Bad request
Raises on 404: Not found
1878 1879 1880 1881 1882 1883 1884 1885 1886 |
# File 'lib/infrawrench/client.rb', line 1878 def command(body:, org_id: nil, request_options: nil) @transport.request( http_method: "POST", path: "/api/org/{orgId}/kv/command", path_params: { "orgId" => org_id }, body: body, request_options: ) end |