func expandHostPortGroupSpec(d *schema.ResourceData) *types.HostPortGroupSpec {
	obj := &types.HostPortGroupSpec{
		Name:        d.Get("name").(string),
		VlanId:      int32(d.Get("vlan_id").(int)),
		VswitchName: d.Get("virtual_switch_name").(string),
		Policy:      *expandHostNetworkPolicy(d),
	}
	return obj
}
func expandHostPortGroupSpec(d *schema.ResourceData) *types.HostPortGroupSpec {
	obj := &types.HostPortGroupSpec{
		Name:        d.Get("name").(string),
		VlanId:      int32(d.Get("vlan_id").(int)),
		VswitchName: d.Get("virtual_switch_name").(string),
		Policy:      *expandHostNetworkPolicy(d),
	}
	return obj
}
func expandHostPortGroupSpec ( d * schema . ResourceData ) * types . HostPortGroupSpec { obj := & types . HostPortGroupSpec { Name : d . Get ( " " ) . ( string ) , VlanId : int32 ( d . Get ( " " ) . ( int ) ) , VswitchName : d . Get ( " " ) . ( string ) , Policy : * expandHostNetworkPolicy ( d ) , } return obj }
// expandHostPortGroupSpec reads certain ResourceData keys and returns a
// HostPortGroupSpec.
expandHostPortGroupSpec reads certain ResourceData keys and returns a HostPortGroupSpec .