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

Parameters:

  • os_deployment_plan (OneviewSDK::API300::Synergy::OSDeploymentPlan)

    the OSDeploymentPlan resource with valid URI

  • custom_attributes (Array(Hash<String, String>)) (defaults to: [])

    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



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