Class: VersSdk::VmDeleteResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/vers_sdk/models.rb

Overview

Response body for DELETE /api/vm/vm_id

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_json(json_str) ⇒ Object



1264
1265
1266
1267
# File 'lib/vers_sdk/models.rb', line 1264

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_hObject



1269
1270
1271
1272
1273
# File 'lib/vers_sdk/models.rb', line 1269

def to_h
  {
    "vm_id" => @vm_delete_response,
  }
end

#to_json(*args) ⇒ Object



1275
1276
1277
# File 'lib/vers_sdk/models.rb', line 1275

def to_json(*args)
  to_h.to_json(*args)
end