Class: Infrawrench::WorkflowsSecretsNamespace
- Inherits:
-
Object
- Object
- Infrawrench::WorkflowsSecretsNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.workflows.secrets
Instance Method Summary collapse
-
#get(id:, org_id: nil, request_options: nil) ⇒ Hash
List a workflow's assigned secrets.
-
#initialize(transport) ⇒ WorkflowsSecretsNamespace
constructor
private
A new instance of WorkflowsSecretsNamespace.
-
#update(id:, body:, org_id: nil, request_options: nil) ⇒ Hash
Replace a workflow's secret assignments.
Constructor Details
#initialize(transport) ⇒ WorkflowsSecretsNamespace
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 WorkflowsSecretsNamespace.
16515 16516 16517 |
# File 'lib/infrawrench/client.rb', line 16515 def initialize(transport) @transport = transport end |
Instance Method Details
#get(id:, org_id: nil, request_options: nil) ⇒ Hash
List a workflow's assigned secrets
Returns assigned ids and metadata only, never values.
Requires permission: secrets:read.
GET /api/org/orgId/workflows/id/secrets
Raises on 404: Not found
16536 16537 16538 16539 16540 16541 16542 16543 |
# File 'lib/infrawrench/client.rb', line 16536 def get(id:, org_id: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/workflows/{id}/secrets", path_params: { "orgId" => org_id, "id" => id }, request_options: ) end |
#update(id:, body:, org_id: nil, request_options: nil) ⇒ Hash
Replace a workflow's secret assignments
Requires permission: workflows:write.
PUT /api/org/orgId/workflows/id/secrets
Raises on 400: Bad request
Raises on 404: Not found
16563 16564 16565 16566 16567 16568 16569 16570 16571 |
# File 'lib/infrawrench/client.rb', line 16563 def update(id:, body:, org_id: nil, request_options: nil) @transport.request( http_method: "PUT", path: "/api/org/{orgId}/workflows/{id}/secrets", path_params: { "orgId" => org_id, "id" => id }, body: body, request_options: ) end |