class Vellum::TestSuiteRunDeploymentReleaseTagExecConfigData
def self.from_json(json_object:)
-
(TestSuiteRunDeploymentReleaseTagExecConfigData)-
Parameters:
-
json_object(JSON) --
def self.from_json(json_object:) struct = JSON.parse(json_object, object_class: OpenStruct) JSON.parse(json_object) deployment_id = struct.deployment_id tag = struct.tag new(deployment_id: deployment_id, tag: tag, additional_properties: struct) end
def self.validate_raw(obj:)
-
(Void)-
Parameters:
-
obj(Object) --
def self.validate_raw(obj:) obj.deployment_id.is_a?(String) != false || raise("Passed value for field obj.deployment_id is not the expected type, validation failed.") obj.tag&.is_a?(String) != false || raise("Passed value for field obj.tag is not the expected type, validation failed.") end
def initialize(deployment_id:, tag: nil, additional_properties: nil)
-
(TestSuiteRunDeploymentReleaseTagExecConfigData)-
Parameters:
-
additional_properties(OpenStruct) -- Additional properties unmapped to the current class definition -
tag(String) -- A tag identifying which release of the Prompt Deployment to run the Test Suite against. Useful for testing past versions of the Prompt Deployment -
deployment_id(String) -- The ID of the Prompt Deployment to run the Test Suite against.
def initialize(deployment_id:, tag: nil, additional_properties: nil) # @type [String] The ID of the Prompt Deployment to run the Test Suite against. @deployment_id = deployment_id # @type [String] A tag identifying which release of the Prompt Deployment to run the Test Suite against. Useful for testing past versions of the Prompt Deployment @tag = tag # @type [OpenStruct] Additional properties unmapped to the current class definition @additional_properties = additional_properties end
def to_json(*_args)
-
(JSON)-
def to_json(*_args) { "deployment_id": @deployment_id, "tag": @tag }.to_json end