Module: OneviewSDK::API300::Synergy::ServerProfileHelper

Overview

Contains helper methods to include operation Server Profile

Instance Method Summary collapse

Instance Method Details

#set_os_deployment_settings(os_deployment_plan, custom_attributes = []) ⇒ Object

Sets the OS deployment settings applicable when deployment is invoked through server profile



73
74
75
76
77
78
# File 'lib/oneview-sdk/resource/api300/synergy/server_profile.rb', line 73

def set_os_deployment_settings(os_deployment_plan, custom_attributes = [])
  os_deployment_plan.ensure_uri
  @data['osDeploymentSettings'] ||= {}
  @data['osDeploymentSettings']['osDeploymentPlanUri'] = os_deployment_plan['uri']
  @data['osDeploymentSettings']['osCustomAttributes'] = custom_attributes
end