Class: OneviewSDK::API1600::C7000::HypervisorClusterProfile

Inherits:
OneviewSDK::API1200::C7000::HypervisorClusterProfile show all
Defined in:
lib/oneview-sdk/resource/api1600/c7000/hypervisor_cluster_profile.rb

Overview

Hypervisor cluster profile resource implementation for API1600 C7000

Constant Summary

Constants inherited from OneviewSDK::API800::C7000::HypervisorClusterProfile

OneviewSDK::API800::C7000::HypervisorClusterProfile::BASE_URI

Constants inherited from Resource

Resource::BASE_URI, Resource::DEFAULT_REQUEST_HEADER, Resource::UNIQUE_IDENTIFIERS

Instance Attribute Summary

Attributes inherited from Resource

#api_version, #client, #data, #logger

Instance Method Summary collapse

Methods inherited from OneviewSDK::API800::C7000::HypervisorClusterProfile

#compliance_preview, #initialize

Methods inherited from Resource

#==, #[], #[]=, build_query, #create, #create!, #deep_merge!, #each, #eql?, #exists?, find_by, find_with_pagination, from_file, get_all, get_all_with_query, #initialize, #like?, #refresh, #retrieve!, #schema, schema, #set, #set_all, #to_file, #update

Constructor Details

This class inherits a constructor from OneviewSDK::API800::C7000::HypervisorClusterProfile

Instance Method Details

#delete(soft_delete = false, force = false) ⇒ Object

softDelete is mandatory argument in API1600



21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/oneview-sdk/resource/api1600/c7000/hypervisor_cluster_profile.rb', line 21

def delete(soft_delete = false, force = false)
  ensure_client && ensure_uri
  uri = @data['uri']
  uri += if force == true
           "?softDelete=#{soft_delete}" + "&force=#{force}"
         else
           "?softDelete=#{soft_delete}"
         end
  response = @client.rest_delete(uri, DEFAULT_REQUEST_HEADER, @api_version)
  @client.response_handler(response)
  true
end