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.
511 512 513 514 515 |
# File 'lib/infrawrench/client.rb', line 511 def initialize(transport) @transport = transport @sessions = AgentsSessionsNamespace.new(@transport) @settings = AgentsSettingsNamespace.new(@transport) end |
Instance Attribute Details
#sessions ⇒ AgentsSessionsNamespace (readonly)
Returns client.agents.sessions.
505 506 507 |
# File 'lib/infrawrench/client.rb', line 505 def sessions @sessions end |
#settings ⇒ AgentsSettingsNamespace (readonly)
Returns client.agents.settings.
507 508 509 |
# File 'lib/infrawrench/client.rb', line 507 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
529 530 531 532 533 534 535 536 |
# File 'lib/infrawrench/client.rb', line 529 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 |