Class: Vellum::TestSuiteRunWorkflowSandboxExecConfigDataRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/vellum_ai/types/test_suite_run_workflow_sandbox_exec_config_data_request.rb

Constant Summary collapse

OMIT =
Object.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(workflow_sandbox_id:, additional_properties: nil) ⇒ Vellum::TestSuiteRunWorkflowSandboxExecConfigDataRequest

Parameters:

  • workflow_sandbox_id (String)

    The ID of the Workflow Sandbox to run the Test Suite against.

  • additional_properties (OpenStruct) (defaults to: nil)

    Additional properties unmapped to the current class definition



20
21
22
23
24
# File 'lib/vellum_ai/types/test_suite_run_workflow_sandbox_exec_config_data_request.rb', line 20

def initialize(workflow_sandbox_id:, additional_properties: nil)
  @workflow_sandbox_id = workflow_sandbox_id
  @additional_properties = additional_properties
  @_field_set = { "workflow_sandbox_id": workflow_sandbox_id }
end

Instance Attribute Details

#additional_propertiesOpenStruct (readonly)

Returns Additional properties unmapped to the current class definition.

Returns:

  • (OpenStruct)

    Additional properties unmapped to the current class definition



10
11
12
# File 'lib/vellum_ai/types/test_suite_run_workflow_sandbox_exec_config_data_request.rb', line 10

def additional_properties
  @additional_properties
end

#workflow_sandbox_idString (readonly)

Returns The ID of the Workflow Sandbox to run the Test Suite against.

Returns:

  • (String)

    The ID of the Workflow Sandbox to run the Test Suite against.



8
9
10
# File 'lib/vellum_ai/types/test_suite_run_workflow_sandbox_exec_config_data_request.rb', line 8

def workflow_sandbox_id
  @workflow_sandbox_id
end

Class Method Details

.from_json(json_object:) ⇒ Vellum::TestSuiteRunWorkflowSandboxExecConfigDataRequest

Parameters:

  • json_object (String)

Returns:



30
31
32
33
34
35
# File 'lib/vellum_ai/types/test_suite_run_workflow_sandbox_exec_config_data_request.rb', line 30

def self.from_json(json_object:)
  struct = JSON.parse(json_object, object_class: OpenStruct)
  parsed_json = JSON.parse(json_object)
  workflow_sandbox_id = parsed_json["workflow_sandbox_id"]
  new(workflow_sandbox_id: workflow_sandbox_id, additional_properties: struct)
end

.validate_raw(obj:) ⇒ Void

Parameters:

  • obj (Object)

Returns:

  • (Void)


49
50
51
# File 'lib/vellum_ai/types/test_suite_run_workflow_sandbox_exec_config_data_request.rb', line 49

def self.validate_raw(obj:)
  obj.workflow_sandbox_id.is_a?(String) != false || raise("Passed value for field obj.workflow_sandbox_id is not the expected type, validation failed.")
end

Instance Method Details

#to_jsonString

Returns:

  • (String)


40
41
42
# File 'lib/vellum_ai/types/test_suite_run_workflow_sandbox_exec_config_data_request.rb', line 40

def to_json
  @_field_set&.to_json
end