Class: VersSdk::VmUpdateStateRequest
- Inherits:
-
Object
- Object
- VersSdk::VmUpdateStateRequest
- Defined in:
- lib/vers_sdk/models.rb
Overview
Request body for PATCH /api/vm/vm_id/state
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_json(json_str) ⇒ Object
113 114 115 116 |
# File 'lib/vers_sdk/models.rb', line 113 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
118 119 120 121 122 |
# File 'lib/vers_sdk/models.rb', line 118 def to_h { "state" => @vm_update_state_request, } end |
#to_json(*args) ⇒ Object
124 125 126 |
# File 'lib/vers_sdk/models.rb', line 124 def to_json(*args) to_h.to_json(*args) end |