module OneviewSDK::API300::Synergy::ServerProfileHelper

Contains helper methods to include operation Server Profile

Public Instance Methods

set_os_deployment_settings(os_deployment_plan, custom_attributes = []) click to toggle source

Sets the OS deployment settings applicable when deployment is invoked through server profile @param [OneviewSDK::API300::Synergy::OSDeploymentPlan] os_deployment_plan the OSDeploymentPlan resource with valid URI @param [Array(Hash<String, String>)] custom_attributes The custom attributes to be configured on the OS deployment plan.

The internal hashes may contain:
- 'name' [String] name of the attribute
- 'value' [String] value of the attribute
# 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