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.
15592 15593 15594 |
# File 'lib/infrawrench/client.rb', line 15592 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
15613 15614 15615 15616 15617 15618 15619 15620 |
# File 'lib/infrawrench/client.rb', line 15613 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
15640 15641 15642 15643 15644 15645 15646 15647 15648 |
# File 'lib/infrawrench/client.rb', line 15640 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 |