Class: VersSdk::VmExecResponse
- Inherits:
-
Object
- Object
- VersSdk::VmExecResponse
- Defined in:
- lib/vers_sdk/models.rb
Overview
Response body for POST /api/vm/vm_id/exec
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_json(json_str) ⇒ Object
405 406 407 408 |
# File 'lib/vers_sdk/models.rb', line 405 def self.from_json(json_str) obj = json_str.is_a?(String) ? JSON.parse(json_str) : json_str new(obj) end |
Instance Method Details
#to_h ⇒ Object
410 411 412 413 414 415 416 417 |
# File 'lib/vers_sdk/models.rb', line 410 def to_h { "exec_id" => @vm_exec_response, "exit_code" => @vm_exec_response, "stderr" => @vm_exec_response, "stdout" => @vm_exec_response, } end |
#to_json(*args) ⇒ Object
419 420 421 |
# File 'lib/vers_sdk/models.rb', line 419 def to_json(*args) to_h.to_json(*args) end |