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



1939
1940
1941
1942
# File 'lib/vers_sdk/models.rb', line 1939

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



1944
1945
1946
1947
1948
# File 'lib/vers_sdk/models.rb', line 1944

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

#to_json(*args) ⇒ Object



1950
1951
1952
# File 'lib/vers_sdk/models.rb', line 1950

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