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
51 52 53 54 |
# File 'lib/vers_sdk/models.rb', line 51 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
56 57 58 59 60 61 |
# File 'lib/vers_sdk/models.rb', line 56 def to_h { "ssh_port" => @vm_ssh_key_response, "ssh_private_key" => @vm_ssh_key_response, } end |
#to_json(*args) ⇒ Object
63 64 65 |
# File 'lib/vers_sdk/models.rb', line 63 def to_json(*args) to_h.to_json(*args) end |