Class: VersSdk::VmCommitResponse
- Inherits:
-
Object
- Object
- VersSdk::VmCommitResponse
- Defined in:
- lib/vers_sdk/models.rb
Overview
The response body for POST /api/vm/vm_id/commit
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_json(json_str) ⇒ Object
1448 1449 1450 1451 |
# File 'lib/vers_sdk/models.rb', line 1448 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
1453 1454 1455 1456 1457 |
# File 'lib/vers_sdk/models.rb', line 1453 def to_h { "commit_id" => @vm_commit_response, } end |
#to_json(*args) ⇒ Object
1459 1460 1461 |
# File 'lib/vers_sdk/models.rb', line 1459 def to_json(*args) to_h.to_json(*args) end |