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.
566 567 568 |
# File 'lib/infrawrench/client.rb', line 566 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
582 583 584 585 586 587 588 589 |
# File 'lib/infrawrench/client.rb', line 582 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
604 605 606 607 608 609 610 611 612 |
# File 'lib/infrawrench/client.rb', line 604 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 |