Class: VersSdk::VmReadFileResponse

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

Overview

Response body for GET /api/vm/vm_id/files

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_json(json_str) ⇒ Object



883
884
885
886
# File 'lib/vers_sdk/models.rb', line 883

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



888
889
890
891
892
# File 'lib/vers_sdk/models.rb', line 888

def to_h
  {
    "content_b64" => @vm_read_file_response,
  }
end

#to_json(*args) ⇒ Object



894
895
896
# File 'lib/vers_sdk/models.rb', line 894

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