Class: Infrawrench::AgentsNamespace
- Inherits:
-
Object
- Object
- Infrawrench::AgentsNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.agents
Instance Attribute Summary collapse
-
#sessions ⇒ AgentsSessionsNamespace
readonly
client.agents.sessions. -
#settings ⇒ AgentsSettingsNamespace
readonly
client.agents.settings.
Instance Method Summary collapse
-
#accounts(org_id: nil, request_options: nil) ⇒ Array<Hash>
List accounts whose plugins can create agent VMs.
-
#initialize(transport) ⇒ AgentsNamespace
constructor
private
A new instance of AgentsNamespace.
Constructor Details
#initialize(transport) ⇒ AgentsNamespace
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 AgentsNamespace.
508 509 510 511 512 |
# File 'lib/infrawrench/client.rb', line 508 def initialize(transport) @transport = transport @sessions = AgentsSessionsNamespace.new(@transport) @settings = AgentsSettingsNamespace.new(@transport) end |
Instance Attribute Details
#sessions ⇒ AgentsSessionsNamespace (readonly)
Returns client.agents.sessions.
502 503 504 |
# File 'lib/infrawrench/client.rb', line 502 def sessions @sessions end |
#settings ⇒ AgentsSettingsNamespace (readonly)
Returns client.agents.settings.
504 505 506 |
# File 'lib/infrawrench/client.rb', line 504 def settings @settings end |
Instance Method Details
#accounts(org_id: nil, request_options: nil) ⇒ Array<Hash>
List accounts whose plugins can create agent VMs
Requires permission: accounts:read.
GET /api/org/orgId/agents/accounts
526 527 528 529 530 531 532 533 |
# File 'lib/infrawrench/client.rb', line 526 def accounts(org_id: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/agents/accounts", path_params: { "orgId" => org_id }, request_options: ) end |