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.
1302 1303 1304 1305 1306 |
# File 'lib/infrawrench/client.rb', line 1302 def initialize(transport) @transport = transport @sessions = AgentsSessionsNamespace.new(@transport) @settings = AgentsSettingsNamespace.new(@transport) end |
Instance Attribute Details
#sessions ⇒ AgentsSessionsNamespace (readonly)
Returns client.agents.sessions.
1296 1297 1298 |
# File 'lib/infrawrench/client.rb', line 1296 def sessions @sessions end |
#settings ⇒ AgentsSettingsNamespace (readonly)
Returns client.agents.settings.
1298 1299 1300 |
# File 'lib/infrawrench/client.rb', line 1298 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
1320 1321 1322 1323 1324 1325 1326 1327 |
# File 'lib/infrawrench/client.rb', line 1320 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 |