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
551 552 553 554 |
# File 'lib/vers_sdk/models.rb', line 551 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
556 557 558 559 560 |
# File 'lib/vers_sdk/models.rb', line 556 def to_h { "state" => @vm_update_state_request, } end |
#to_json(*args) ⇒ Object
562 563 564 |
# File 'lib/vers_sdk/models.rb', line 562 def to_json(*args) to_h.to_json(*args) end |