Class: Infrawrench::AgentsSettingsNamespace
- Inherits:
-
Object
- Object
- Infrawrench::AgentsSettingsNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.agents.settings
Instance Method Summary collapse
-
#get(org_id: nil, request_options: nil) ⇒ Hash?
Get saved Agents defaults.
-
#initialize(transport) ⇒ AgentsSettingsNamespace
constructor
private
A new instance of AgentsSettingsNamespace.
-
#update(body:, org_id: nil, request_options: nil) ⇒ Hash
Save Agents defaults.
Constructor Details
#initialize(transport) ⇒ AgentsSettingsNamespace
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 AgentsSettingsNamespace.
450 451 452 |
# File 'lib/infrawrench/client.rb', line 450 def initialize(transport) @transport = transport end |
Instance Method Details
#get(org_id: nil, request_options: nil) ⇒ Hash?
Get saved Agents defaults
Requires permission: accounts:read.
GET /api/org/orgId/agents/settings
466 467 468 469 470 471 472 473 |
# File 'lib/infrawrench/client.rb', line 466 def get(org_id: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/agents/settings", path_params: { "orgId" => org_id }, request_options: ) end |
#update(body:, org_id: nil, request_options: nil) ⇒ Hash
Save Agents defaults
Requires permission: accounts:write.
PUT /api/org/orgId/agents/settings
488 489 490 491 492 493 494 495 496 |
# File 'lib/infrawrench/client.rb', line 488 def update(body:, org_id: nil, request_options: nil) @transport.request( http_method: "PUT", path: "/api/org/{orgId}/agents/settings", path_params: { "orgId" => org_id }, body: body, request_options: ) end |