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



1357
1358
1359
1360
# File 'lib/vers_sdk/models.rb', line 1357

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



1362
1363
1364
1365
1366
1367
1368
# File 'lib/vers_sdk/models.rb', line 1362

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

#to_json(*args) ⇒ Object



1370
1371
1372
# File 'lib/vers_sdk/models.rb', line 1370

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