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.
15044 15045 15046 |
# File 'lib/infrawrench/client.rb', line 15044 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
15065 15066 15067 15068 15069 15070 15071 15072 |
# File 'lib/infrawrench/client.rb', line 15065 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
15092 15093 15094 15095 15096 15097 15098 15099 15100 |
# File 'lib/infrawrench/client.rb', line 15092 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 |