Class: VersSdk::VmExecLogEntry

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

Overview

Individual log entry describing emitted stdout/stderr chunk.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_json(json_str) ⇒ Object



1384
1385
1386
1387
# File 'lib/vers_sdk/models.rb', line 1384

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



1389
1390
1391
1392
1393
1394
1395
1396
# File 'lib/vers_sdk/models.rb', line 1389

def to_h
  {
    "data_b64" => @vm_exec_log_entry,
    "exec_id" => @vm_exec_log_entry,
    "stream" => @vm_exec_log_entry,
    "timestamp" => @vm_exec_log_entry,
  }
end

#to_json(*args) ⇒ Object



1398
1399
1400
# File 'lib/vers_sdk/models.rb', line 1398

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