Class: VersSdk::NewVmResponse

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

Overview

Response body for new VM requests (new_root, from_commit, branch)

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_json(json_str) ⇒ Object



803
804
805
806
# File 'lib/vers_sdk/models.rb', line 803

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



808
809
810
811
812
# File 'lib/vers_sdk/models.rb', line 808

def to_h
  {
    "vm_id" => @new_vm_response,
  }
end

#to_json(*args) ⇒ Object



814
815
816
# File 'lib/vers_sdk/models.rb', line 814

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