Class: VersSdk::VmExecLogResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/vers_sdk/models.rb

Overview

Response for exec log tail requests.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_json(json_str) ⇒ Object



2063
2064
2065
2066
# File 'lib/vers_sdk/models.rb', line 2063

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_hObject



2068
2069
2070
2071
2072
2073
2074
# File 'lib/vers_sdk/models.rb', line 2068

def to_h
  {
    "entries" => @vm_exec_log_response,
    "eof" => @vm_exec_log_response,
    "next_offset" => @vm_exec_log_response,
  }
end

#to_json(*args) ⇒ Object



2076
2077
2078
# File 'lib/vers_sdk/models.rb', line 2076

def to_json(*args)
  to_h.to_json(*args)
end