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.
15112 15113 15114 15115 15116 |
# File 'lib/infrawrench/client.rb', line 15112 def initialize(transport) @transport = transport @schedule = WorkflowsScheduleNamespace.new(@transport) @secrets = WorkflowsSecretsNamespace.new(@transport) end |
Instance Attribute Details
#schedule ⇒ WorkflowsScheduleNamespace (readonly)
Returns client.workflows.schedule.
15106 15107 15108 |
# File 'lib/infrawrench/client.rb', line 15106 def schedule @schedule end |
#secrets ⇒ WorkflowsSecretsNamespace (readonly)
Returns client.workflows.secrets.
15108 15109 15110 |
# File 'lib/infrawrench/client.rb', line 15108 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
15143 15144 15145 15146 15147 15148 15149 15150 15151 |
# File 'lib/infrawrench/client.rb', line 15143 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 |