class OneviewSDK::API800::C7000::HypervisorClusterProfile
Hypervisor Cluster profile resource implementation
Constants
- BASE_URI
Public Class Methods
new(client, params = {}, api_ver = nil)
click to toggle source
Create a resource object, associate it with a client, and set its properties. @param [OneviewSDK::Client] client The client object for the OneView appliance @param [Hash] params The options for this resource (key-value pairs) @param [Integer] api_ver The api version to use when interracting with this resource.
Calls superclass method
OneviewSDK::Resource::new
# File lib/oneview-sdk/resource/api800/c7000/hypervisor_cluster_profile.rb, line 25 def initialize(client, params = {}, api_ver = nil) super # Default values @data['type'] ||= 'HypervisorClusterProfileListV3' end
Public Instance Methods
compliance_preview()
click to toggle source
Gets the preview of manual and automatic updates required to make the cluster profile consistent with its template.
# File lib/oneview-sdk/resource/api800/c7000/hypervisor_cluster_profile.rb, line 32 def compliance_preview ensure_client && ensure_uri @client.response_handler(@client.rest_get(@data['uri'] + '/compliance-preview', {}, @api_version)) end