Class: VersSdk::NewVmResponse
- Inherits:
-
Object
- Object
- VersSdk::NewVmResponse
- 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
1596 1597 1598 1599 |
# File 'lib/vers_sdk/models.rb', line 1596 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_h ⇒ Object
1601 1602 1603 1604 1605 |
# File 'lib/vers_sdk/models.rb', line 1601 def to_h { "vm_id" => @new_vm_response, } end |
#to_json(*args) ⇒ Object
1607 1608 1609 |
# File 'lib/vers_sdk/models.rb', line 1607 def to_json(*args) to_h.to_json(*args) end |