Class: Infrawrench::WorkflowsNamespace
- Inherits:
-
Object
- Object
- Infrawrench::WorkflowsNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.workflows
Instance Attribute Summary collapse
-
#schedule ⇒ WorkflowsScheduleNamespace
readonly
client.workflows.schedule. -
#secrets ⇒ WorkflowsSecretsNamespace
readonly
client.workflows.secrets.
Instance Method Summary collapse
-
#initialize(transport) ⇒ WorkflowsNamespace
constructor
private
A new instance of WorkflowsNamespace.
-
#typings(id:, org_id: nil, enrich: nil, request_options: nil) ⇒ Hash
Generated infra.d.ts for a workflow.
Constructor Details
#initialize(transport) ⇒ WorkflowsNamespace
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 WorkflowsNamespace.
15367 15368 15369 15370 15371 |
# File 'lib/infrawrench/client.rb', line 15367 def initialize(transport) @transport = transport @schedule = WorkflowsScheduleNamespace.new(@transport) @secrets = WorkflowsSecretsNamespace.new(@transport) end |
Instance Attribute Details
#schedule ⇒ WorkflowsScheduleNamespace (readonly)
Returns client.workflows.schedule.
15361 15362 15363 |
# File 'lib/infrawrench/client.rb', line 15361 def schedule @schedule end |
#secrets ⇒ WorkflowsSecretsNamespace (readonly)
Returns client.workflows.secrets.
15363 15364 15365 |
# File 'lib/infrawrench/client.rb', line 15363 def secrets @secrets end |
Instance Method Details
#typings(id:, org_id: nil, enrich: nil, request_options: nil) ⇒ Hash
Generated infra.d.ts for a workflow
The ambient TypeScript declarations workflow source is written against,
specialized with this organization's connected accounts, resource types,
SSH key names, and the workflow's trigger + metrics. Default is the fast
static surface (create fields are Record<string, string>). Pass
enrich=1 for a second pass that hits provider APIs for precise create()
field unions and live sidecar capability flags — the editor loads static
first and upgrades when that finishes.
Requires permission: workflows:read.
GET /api/org/orgId/workflows/id/typings
Raises on 404: Not found
15398 15399 15400 15401 15402 15403 15404 15405 15406 |
# File 'lib/infrawrench/client.rb', line 15398 def typings(id:, org_id: nil, enrich: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/workflows/{id}/typings", path_params: { "orgId" => org_id, "id" => id }, query: { "enrich" => enrich }, request_options: ) end |