Class: Vellum::WorkflowDeploymentsClient
- Inherits:
-
Object
- Object
- Vellum::WorkflowDeploymentsClient
- Defined in:
- lib/vellum_ai/workflow_deployments/client.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
- #initialize(request_client:) ⇒ Vellum::WorkflowDeploymentsClient constructor
-
#list(has_story_config: nil, is_public: nil, limit: nil, offset: nil, ordering: nil, owned_by: nil, status: nil, request_options: nil) ⇒ Object
api.workflow_deployments.list.
-
#list_workflow_deployment_event_executions(id:, filters: nil, limit: nil, offset: nil, ordering: nil, request_options: nil) ⇒ Object
api.workflow_deployments.list_workflow_deployment_event_executions(id: "id").
-
#list_workflow_deployment_releases(id:, limit: nil, offset: nil, ordering: nil, request_options: nil) ⇒ Object
api.workflow_deployments.list_workflow_deployment_releases(id: "id").
-
#list_workflow_release_tags(id:, limit: nil, offset: nil, ordering: nil, source: nil, request_options: nil) ⇒ Object
api.workflow_deployments.list_workflow_release_tags(id: "id").
-
#retrieve(id:, request_options: nil) ⇒ Object
api.workflow_deployments.retrieve(id: "id").
-
#retrieve_workflow_deployment_release(id:, release_id_or_release_tag:, request_options: nil) ⇒ Object
api.workflow_deployments.retrieve_workflow_deployment_release(id: "id", release_id_or_release_tag: "release_id_or_release_tag").
-
#retrieve_workflow_release_tag(id:, name:, request_options: nil) ⇒ Object
api.workflow_deployments.retrieve_workflow_release_tag(id: "id", name: "name").
-
#update_workflow_release_tag(id:, name:, history_item_id: nil, request_options: nil) ⇒ Object
api.workflow_deployments.update_workflow_release_tag(id: "id", name: "name").
-
#workflow_deployment_event_execution(execution_id:, id:, request_options: nil) ⇒ Object
api.workflow_deployments.workflow_deployment_event_execution(execution_id: "execution_id", id: "id").
-
#workflow_deployment_history_item_retrieve(history_id_or_release_tag:, id:, request_options: nil) ⇒ Object
api.workflow_deployments.workflow_deployment_history_item_retrieve(history_id_or_release_tag: "history_id_or_release_tag", id: "id").
Constructor Details
#initialize(request_client:) ⇒ Vellum::WorkflowDeploymentsClient
34 35 36 |
# File 'lib/vellum_ai/workflow_deployments/client.rb', line 34 def initialize(request_client:) @request_client = request_client end |
Instance Attribute Details
#request_client ⇒ Vellum::RequestClient (readonly)
29 30 31 |
# File 'lib/vellum_ai/workflow_deployments/client.rb', line 29 def request_client @request_client end |
Instance Method Details
#list(has_story_config: nil, is_public: nil, limit: nil, offset: nil, ordering: nil, owned_by: nil, status: nil, request_options: nil) ⇒ Object
api.workflow_deployments.list
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/vellum_ai/workflow_deployments/client.rb', line 61 def list(has_story_config: nil, is_public: nil, limit: nil, offset: nil, ordering: nil, owned_by: nil, status: nil, request_options: nil) response = @request_client.conn.get do | req | unless &.timeout_in_seconds.nil? req..timeout = .timeout_in_seconds end unless &.api_key.nil? req.headers["X-API-KEY"] = .api_key end unless &.api_version.nil? req.headers["X-API-Version"] = .api_version else req.headers["X-API-Version"] = "2025-07-30" end req.headers = { **(req.headers || {}), **@request_client.get_headers, **(&.additional_headers || {}) }.compact req.params = { **(&.additional_query_parameters || {}), "has_story_config": has_story_config, "is_public": is_public, "limit": limit, "offset": offset, "ordering": ordering, "owned_by": owned_by, "status": status }.compact unless .nil? || &.additional_body_parameters.nil? req.body = { **(&.additional_body_parameters || {}) }.compact end req.url "#{@request_client.get_url(environment: Default, request_options: )}/v1/workflow-deployments" end Vellum::PaginatedSlimWorkflowDeploymentList.from_json(json_object: response.body) end |
#list_workflow_deployment_event_executions(id:, filters: nil, limit: nil, offset: nil, ordering: nil, request_options: nil) ⇒ Object
api.workflow_deployments.list_workflow_deployment_event_executions(id: "id")
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
# File 'lib/vellum_ai/workflow_deployments/client.rb', line 133 def list_workflow_deployment_event_executions(id:, filters: nil, limit: nil, offset: nil, ordering: nil, request_options: nil) response = @request_client.conn.get do | req | unless &.timeout_in_seconds.nil? req..timeout = .timeout_in_seconds end unless &.api_key.nil? req.headers["X-API-KEY"] = .api_key end unless &.api_version.nil? req.headers["X-API-Version"] = .api_version else req.headers["X-API-Version"] = "2025-07-30" end req.headers = { **(req.headers || {}), **@request_client.get_headers, **(&.additional_headers || {}) }.compact req.params = { **(&.additional_query_parameters || {}), "filters": filters, "limit": limit, "offset": offset, "ordering": ordering }.compact unless .nil? || &.additional_body_parameters.nil? req.body = { **(&.additional_body_parameters || {}) }.compact end req.url "#{@request_client.get_url(environment: Default, request_options: )}/v1/workflow-deployments/#{id}/execution-events" end Vellum::WorkflowDeploymentEventExecutionsResponse.from_json(json_object: response.body) end |
#list_workflow_deployment_releases(id:, limit: nil, offset: nil, ordering: nil, request_options: nil) ⇒ Object
api.workflow_deployments.list_workflow_deployment_releases(id: "id")
362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 |
# File 'lib/vellum_ai/workflow_deployments/client.rb', line 362 def list_workflow_deployment_releases(id:, limit: nil, offset: nil, ordering: nil, request_options: nil) response = @request_client.conn.get do | req | unless &.timeout_in_seconds.nil? req..timeout = .timeout_in_seconds end unless &.api_key.nil? req.headers["X-API-KEY"] = .api_key end unless &.api_version.nil? req.headers["X-API-Version"] = .api_version else req.headers["X-API-Version"] = "2025-07-30" end req.headers = { **(req.headers || {}), **@request_client.get_headers, **(&.additional_headers || {}) }.compact req.params = { **(&.additional_query_parameters || {}), "limit": limit, "offset": offset, "ordering": ordering }.compact unless .nil? || &.additional_body_parameters.nil? req.body = { **(&.additional_body_parameters || {}) }.compact end req.url "#{@request_client.get_url(environment: Default, request_options: )}/v1/workflow-deployments/#{id}/releases" end Vellum::PaginatedWorkflowDeploymentReleaseList.from_json(json_object: response.body) end |
#list_workflow_release_tags(id:, limit: nil, offset: nil, ordering: nil, source: nil, request_options: nil) ⇒ Object
api.workflow_deployments.list_workflow_release_tags(id: "id")
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 |
# File 'lib/vellum_ai/workflow_deployments/client.rb', line 247 def (id:, limit: nil, offset: nil, ordering: nil, source: nil, request_options: nil) response = @request_client.conn.get do | req | unless &.timeout_in_seconds.nil? req..timeout = .timeout_in_seconds end unless &.api_key.nil? req.headers["X-API-KEY"] = .api_key end unless &.api_version.nil? req.headers["X-API-Version"] = .api_version else req.headers["X-API-Version"] = "2025-07-30" end req.headers = { **(req.headers || {}), **@request_client.get_headers, **(&.additional_headers || {}) }.compact req.params = { **(&.additional_query_parameters || {}), "limit": limit, "offset": offset, "ordering": ordering, "source": source }.compact unless .nil? || &.additional_body_parameters.nil? req.body = { **(&.additional_body_parameters || {}) }.compact end req.url "#{@request_client.get_url(environment: Default, request_options: )}/v1/workflow-deployments/#{id}/release-tags" end Vellum::PaginatedWorkflowReleaseTagReadList.from_json(json_object: response.body) end |
#retrieve(id:, request_options: nil) ⇒ Object
api.workflow_deployments.retrieve(id: "id")
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/vellum_ai/workflow_deployments/client.rb', line 95 def retrieve(id:, request_options: nil) response = @request_client.conn.get do | req | unless &.timeout_in_seconds.nil? req..timeout = .timeout_in_seconds end unless &.api_key.nil? req.headers["X-API-KEY"] = .api_key end unless &.api_version.nil? req.headers["X-API-Version"] = .api_version else req.headers["X-API-Version"] = "2025-07-30" end req.headers = { **(req.headers || {}), **@request_client.get_headers, **(&.additional_headers || {}) }.compact unless .nil? || &.additional_query_parameters.nil? req.params = { **(&.additional_query_parameters || {}) }.compact end unless .nil? || &.additional_body_parameters.nil? req.body = { **(&.additional_body_parameters || {}) }.compact end req.url "#{@request_client.get_url(environment: Default, request_options: )}/v1/workflow-deployments/#{id}" end Vellum::WorkflowDeploymentRead.from_json(json_object: response.body) end |
#retrieve_workflow_deployment_release(id:, release_id_or_release_tag:, request_options: nil) ⇒ Object
api.workflow_deployments.retrieve_workflow_deployment_release(id: "id", release_id_or_release_tag: "release_id_or_release_tag")
400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 |
# File 'lib/vellum_ai/workflow_deployments/client.rb', line 400 def retrieve_workflow_deployment_release(id:, release_id_or_release_tag:, request_options: nil) response = @request_client.conn.get do | req | unless &.timeout_in_seconds.nil? req..timeout = .timeout_in_seconds end unless &.api_key.nil? req.headers["X-API-KEY"] = .api_key end unless &.api_version.nil? req.headers["X-API-Version"] = .api_version else req.headers["X-API-Version"] = "2025-07-30" end req.headers = { **(req.headers || {}), **@request_client.get_headers, **(&.additional_headers || {}) }.compact unless .nil? || &.additional_query_parameters.nil? req.params = { **(&.additional_query_parameters || {}) }.compact end unless .nil? || &.additional_body_parameters.nil? req.body = { **(&.additional_body_parameters || {}) }.compact end req.url "#{@request_client.get_url(environment: Default, request_options: )}/v1/workflow-deployments/#{id}/releases/#{release_id_or_release_tag}" end Vellum::WorkflowDeploymentRelease.from_json(json_object: response.body) end |
#retrieve_workflow_release_tag(id:, name:, request_options: nil) ⇒ Object
api.workflow_deployments.retrieve_workflow_release_tag(id: "id", name: "name")
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 |
# File 'lib/vellum_ai/workflow_deployments/client.rb', line 284 def retrieve_workflow_release_tag(id:, name:, request_options: nil) response = @request_client.conn.get do | req | unless &.timeout_in_seconds.nil? req..timeout = .timeout_in_seconds end unless &.api_key.nil? req.headers["X-API-KEY"] = .api_key end unless &.api_version.nil? req.headers["X-API-Version"] = .api_version else req.headers["X-API-Version"] = "2025-07-30" end req.headers = { **(req.headers || {}), **@request_client.get_headers, **(&.additional_headers || {}) }.compact unless .nil? || &.additional_query_parameters.nil? req.params = { **(&.additional_query_parameters || {}) }.compact end unless .nil? || &.additional_body_parameters.nil? req.body = { **(&.additional_body_parameters || {}) }.compact end req.url "#{@request_client.get_url(environment: Default, request_options: )}/v1/workflow-deployments/#{id}/release-tags/#{name}" end Vellum::WorkflowReleaseTagRead.from_json(json_object: response.body) end |
#update_workflow_release_tag(id:, name:, history_item_id: nil, request_options: nil) ⇒ Object
api.workflow_deployments.update_workflow_release_tag(id: "id", name: "name")
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 |
# File 'lib/vellum_ai/workflow_deployments/client.rb', line 324 def update_workflow_release_tag(id:, name:, history_item_id: nil, request_options: nil) response = @request_client.conn.patch do | req | unless &.timeout_in_seconds.nil? req..timeout = .timeout_in_seconds end unless &.api_key.nil? req.headers["X-API-KEY"] = .api_key end unless &.api_version.nil? req.headers["X-API-Version"] = .api_version else req.headers["X-API-Version"] = "2025-07-30" end req.headers = { **(req.headers || {}), **@request_client.get_headers, **(&.additional_headers || {}) }.compact unless .nil? || &.additional_query_parameters.nil? req.params = { **(&.additional_query_parameters || {}) }.compact end req.body = { **(&.additional_body_parameters || {}), history_item_id: history_item_id }.compact req.url "#{@request_client.get_url(environment: Default, request_options: )}/v1/workflow-deployments/#{id}/release-tags/#{name}" end Vellum::WorkflowReleaseTagRead.from_json(json_object: response.body) end |
#workflow_deployment_event_execution(execution_id:, id:, request_options: nil) ⇒ Object
api.workflow_deployments.workflow_deployment_event_execution(execution_id: "execution_id", id: "id")
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 |
# File 'lib/vellum_ai/workflow_deployments/client.rb', line 166 def workflow_deployment_event_execution(execution_id:, id:, request_options: nil) response = @request_client.conn.get do | req | unless &.timeout_in_seconds.nil? req..timeout = .timeout_in_seconds end unless &.api_key.nil? req.headers["X-API-KEY"] = .api_key end unless &.api_version.nil? req.headers["X-API-Version"] = .api_version else req.headers["X-API-Version"] = "2025-07-30" end req.headers = { **(req.headers || {}), **@request_client.get_headers, **(&.additional_headers || {}) }.compact unless .nil? || &.additional_query_parameters.nil? req.params = { **(&.additional_query_parameters || {}) }.compact end unless .nil? || &.additional_body_parameters.nil? req.body = { **(&.additional_body_parameters || {}) }.compact end req.url "#{@request_client.get_url(environment: Default, request_options: )}/v1/workflow-deployments/#{execution_id}/execution-events/#{id}" end Vellum::WorkflowEventExecutionRead.from_json(json_object: response.body) end |
#workflow_deployment_history_item_retrieve(history_id_or_release_tag:, id:, request_options: nil) ⇒ Object
api.workflow_deployments.workflow_deployment_history_item_retrieve(history_id_or_release_tag: "history_id_or_release_tag", id: "id")
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
# File 'lib/vellum_ai/workflow_deployments/client.rb', line 207 def workflow_deployment_history_item_retrieve(history_id_or_release_tag:, id:, request_options: nil) response = @request_client.conn.get do | req | unless &.timeout_in_seconds.nil? req..timeout = .timeout_in_seconds end unless &.api_key.nil? req.headers["X-API-KEY"] = .api_key end unless &.api_version.nil? req.headers["X-API-Version"] = .api_version else req.headers["X-API-Version"] = "2025-07-30" end req.headers = { **(req.headers || {}), **@request_client.get_headers, **(&.additional_headers || {}) }.compact unless .nil? || &.additional_query_parameters.nil? req.params = { **(&.additional_query_parameters || {}) }.compact end unless .nil? || &.additional_body_parameters.nil? req.body = { **(&.additional_body_parameters || {}) }.compact end req.url "#{@request_client.get_url(environment: Default, request_options: )}/v1/workflow-deployments/#{history_id_or_release_tag}/history/#{id}" end Vellum::WorkflowDeploymentHistoryItem.from_json(json_object: response.body) end |