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.
624 625 626 627 628 |
# File 'lib/infrawrench/client.rb', line 624 def initialize(transport) @transport = transport @sessions = AgentsSessionsNamespace.new(@transport) @settings = AgentsSettingsNamespace.new(@transport) end |
Instance Attribute Details
#sessions ⇒ AgentsSessionsNamespace (readonly)
Returns client.agents.sessions.
618 619 620 |
# File 'lib/infrawrench/client.rb', line 618 def sessions @sessions end |
#settings ⇒ AgentsSettingsNamespace (readonly)
Returns client.agents.settings.
620 621 622 |
# File 'lib/infrawrench/client.rb', line 620 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
642 643 644 645 646 647 648 649 |
# File 'lib/infrawrench/client.rb', line 642 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 |