Class: Vellum::AsyncWorkflowDeploymentsClient
- Inherits:
-
Object
- Object
- Vellum::AsyncWorkflowDeploymentsClient
- Defined in:
- lib/vellum_ai/workflow_deployments/client.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
- #initialize(request_client:) ⇒ Vellum::AsyncWorkflowDeploymentsClient constructor
-
#list(limit: nil, offset: nil, ordering: nil, status: nil, request_options: nil) ⇒ Object
api.workflow_deployments.list.
-
#list_workflow_deployment_event_executions(id:, filters: nil, limit: nil, offset: nil, request_options: nil) ⇒ Object
api.workflow_deployments.list_workflow_deployment_event_executions(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::AsyncWorkflowDeploymentsClient
382 383 384 |
# File 'lib/vellum_ai/workflow_deployments/client.rb', line 382 def initialize(request_client:) @request_client = request_client end |
Instance Attribute Details
#request_client ⇒ Vellum::AsyncRequestClient (readonly)
377 378 379 |
# File 'lib/vellum_ai/workflow_deployments/client.rb', line 377 def request_client @request_client end |
Instance Method Details
#list(limit: nil, offset: nil, ordering: nil, status: nil, request_options: nil) ⇒ Object
api.workflow_deployments.list
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 list(limit: nil, offset: nil, ordering: nil, status: nil, request_options: nil) Async do 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, "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 end |
#list_workflow_deployment_event_executions(id:, filters: nil, limit: nil, offset: nil, request_options: nil) ⇒ Object
api.workflow_deployments.list_workflow_deployment_event_executions(id: “id”)
475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 |
# File 'lib/vellum_ai/workflow_deployments/client.rb', line 475 def list_workflow_deployment_event_executions(id:, filters: nil, limit: nil, offset: nil, request_options: nil) Async do 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 }.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 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”)
595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 |
# File 'lib/vellum_ai/workflow_deployments/client.rb', line 595 def (id:, limit: nil, offset: nil, ordering: nil, source: nil, request_options: nil) Async do 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 end |
#retrieve(id:, request_options: nil) ⇒ Object
api.workflow_deployments.retrieve(id: “id”)
436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 |
# File 'lib/vellum_ai/workflow_deployments/client.rb', line 436 def retrieve(id:, request_options: nil) Async do 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 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”)
716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 |
# File 'lib/vellum_ai/workflow_deployments/client.rb', line 716 def retrieve_workflow_deployment_release(id:, release_id_or_release_tag:, request_options: nil) Async do 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 end |
#retrieve_workflow_release_tag(id:, name:, request_options: nil) ⇒ Object
api.workflow_deployments.retrieve_workflow_release_tag(id: “id”, name: “name”)
634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 |
# File 'lib/vellum_ai/workflow_deployments/client.rb', line 634 def retrieve_workflow_release_tag(id:, name:, request_options: nil) Async do 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 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”)
676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 |
# File 'lib/vellum_ai/workflow_deployments/client.rb', line 676 def update_workflow_release_tag(id:, name:, history_item_id: nil, request_options: nil) Async do 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 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”)
510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 |
# File 'lib/vellum_ai/workflow_deployments/client.rb', line 510 def workflow_deployment_event_execution(execution_id:, id:, request_options: nil) Async do 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 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”)
553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 |
# File 'lib/vellum_ai/workflow_deployments/client.rb', line 553 def workflow_deployment_history_item_retrieve(history_id_or_release_tag:, id:, request_options: nil) Async do 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 end |