Class: Infrawrench::SessionRecordingsSettingsNamespace
- Inherits:
-
Object
- Object
- Infrawrench::SessionRecordingsSettingsNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.session_recordings.settings
Instance Method Summary collapse
-
#get(org_id: nil, request_options: nil) ⇒ Hash
Get the recording policy.
-
#initialize(transport) ⇒ SessionRecordingsSettingsNamespace
constructor
private
A new instance of SessionRecordingsSettingsNamespace.
-
#update(org_id: nil, body: nil, request_options: nil) ⇒ Hash
Update the recording policy.
Constructor Details
#initialize(transport) ⇒ SessionRecordingsSettingsNamespace
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 SessionRecordingsSettingsNamespace.
12869 12870 12871 |
# File 'lib/infrawrench/client.rb', line 12869 def initialize(transport) @transport = transport end |
Instance Method Details
#get(org_id: nil, request_options: nil) ⇒ Hash
Get the recording policy
The organization's recording policy plus what it currently stores. Usage rides along with the policy because the only question anyone asks about retention is what it costs.
Requires permission: session-recordings:read.
GET /api/org/orgId/session-recordings/settings
12889 12890 12891 12892 12893 12894 12895 12896 |
# File 'lib/infrawrench/client.rb', line 12889 def get(org_id: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/session-recordings/settings", path_params: { "orgId" => org_id }, request_options: ) end |
#update(org_id: nil, body: nil, request_options: nil) ⇒ Hash
Update the recording policy
Partial update — omitted fields keep their current value. Recording is opt-in and off by default. Audit-logged with the before/after policy.
Requires permission: session-recordings:write.
PUT /api/org/orgId/session-recordings/settings
Raises on 400: Bad request
12916 12917 12918 12919 12920 12921 12922 12923 12924 |
# File 'lib/infrawrench/client.rb', line 12916 def update(org_id: nil, body: nil, request_options: nil) @transport.request( http_method: "PUT", path: "/api/org/{orgId}/session-recordings/settings", path_params: { "orgId" => org_id }, body: body, request_options: ) end |