Class: VersSdk::VmSshKeyResponse
- Inherits:
-
Object
- Object
- VersSdk::VmSshKeyResponse
- Defined in:
- lib/vers_sdk/models.rb
Overview
Response body for GET /api/vm/vm_id/ssh_key
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_json(json_str) ⇒ Object
836 837 838 839 |
# File 'lib/vers_sdk/models.rb', line 836 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
841 842 843 844 845 846 |
# File 'lib/vers_sdk/models.rb', line 841 def to_h { "ssh_port" => @vm_ssh_key_response, "ssh_private_key" => @vm_ssh_key_response, } end |
#to_json(*args) ⇒ Object
848 849 850 |
# File 'lib/vers_sdk/models.rb', line 848 def to_json(*args) to_h.to_json(*args) end |